Skip to content

Bugfix for: hotkey_swap on a single subnet wipes all root dividend accumulations#2527

Open
evgeny-s wants to merge 3 commits intodevnet-readyfrom
fix-hotkey-swap-root-claimable
Open

Bugfix for: hotkey_swap on a single subnet wipes all root dividend accumulations#2527
evgeny-s wants to merge 3 commits intodevnet-readyfrom
fix-hotkey-swap-root-claimable

Conversation

@evgeny-s
Copy link
Collaborator

Description

Fixes #2515

Related Issue(s)

  • Closes #[issue number]

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please describe):

Breaking Change

If this PR introduces a breaking change, please provide a detailed description of the impact and the migration path for existing applications.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have run ./scripts/fix_rust.sh to ensure my code is formatted and linted correctly
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Screenshots (if applicable)

Please include any relevant screenshots or GIFs that demonstrate the changes made.

Additional Notes

Please provide any additional information or context that may be helpful for reviewers.

@evgeny-s evgeny-s changed the title - Fixes the issue for hotkey swap for the single subnet Fixes the issue for hotkey swap for the single subnet Mar 20, 2026
@evgeny-s evgeny-s changed the title Fixes the issue for hotkey swap for the single subnet Bugfix for: hotkey_swap on a single subnet wipes all root dividend accumulations Mar 20, 2026
pub const InitialStartCallDelay: u64 = 0;
pub const SubtensorInitialKeySwapOnSubnetCost: TaoBalance = TaoBalance::new(1_000_000); // 0.001 TAO
pub const HotkeySwapOnSubnetInterval : BlockNumber = 24 * 60 * 60 / 12; // 1 day
pub const HotkeySwapOnSubnetInterval : BlockNumber = prod_or_fast!(24 * 60 * 60 / 12, 1); // 1 day
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For zombinet tests

@evgeny-s evgeny-s changed the base branch from e2e-tests-moonwall to devnet-ready March 20, 2026 14:59
@evgeny-s evgeny-s added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Mar 20, 2026
@sam0x17 sam0x17 self-requested a review March 21, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants