-
Notifications
You must be signed in to change notification settings - Fork 274
Reenable alpha fees #2353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devnet-ready
Are you sure you want to change the base?
Reenable alpha fees #2353
Conversation
… in the share pool
…p_coldkey and swap_hotkey
shamil-gadelshin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
A couple of comments:
- What is the reason we copy zstd-* libs in our repo? I would move zstd-libs into separate crates and reference them like our
blspatch. - We need to merge #2251 to integrate "swap coldkey changes" first
- Consider hiding Alpha map access behind some "temporary interface". It'll allow implementing Alphav2 logic easily. We would remove the interface after the migration period.
- I don't see effects on the root claim (it should work as expected)
| (key, sf) | ||
| }); | ||
|
|
||
| legacy.chain(v2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deduplication, maybe?
|
|
||
| // Same thing as populate_root_coldkey_staking_maps, but for AlphaV2 | ||
| pub fn populate_root_coldkey_staking_maps_v2() { | ||
| // Get starting key for the batch. Get the first key if we restart the process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
| let mut staking_hotkeys = StakingHotkeys::<T>::get(&coldkey); | ||
| weight.saturating_accrue(T::DbWeight::get().reads(1)); | ||
| if staking_hotkeys.contains(old_hotkey) && !staking_hotkeys.contains(new_hotkey) { | ||
| staking_hotkeys.push(new_hotkey.clone()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we remove the old hotkey here?
Description
Allow paying transaction fees in alpha when no tao balance is available.
See issue #2336 for details.
Related Issue(s)
Type of Change
Breaking Change
The
AlphaandTotalHotkeySharesmaps will be deprecated in favor of high precisionAlphaV2andTotalHotkeySharesV2.Checklist
./scripts/fix_rust.shto ensure my code is formatted and linted correctly