Skip to content

Include all sn owner hotkeys in burn keys#1905

Merged
sam0x17 merged 3 commits intodevnet-readyfrom
fix/owner-burn-keys
Aug 21, 2025
Merged

Include all sn owner hotkeys in burn keys#1905
sam0x17 merged 3 commits intodevnet-readyfrom
fix/owner-burn-keys

Conversation

@gztensor
Copy link
Contributor

@gztensor gztensor commented Aug 1, 2025

Description

We currently burn alpha of subnet owner hotkey ("burn key"). This PR includes all subnet owner hotkeys in burn keys.

let subnet_owner_coldkey = SubnetOwner::<T>::get(netuid);
let hotkey_owner = Owner::<T>::get(&hotkey);
if hotkey_owner == subnet_owner_coldkey {
    burn = true;
}

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):

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 cargo fmt and cargo clippy 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

camfairchild
camfairchild previously approved these changes Aug 2, 2025
@gztensor gztensor added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Aug 15, 2025
@gztensor gztensor requested a review from camfairchild August 18, 2025 14:38
@sam0x17 sam0x17 merged commit 0d65e77 into devnet-ready Aug 21, 2025
53 of 56 checks passed
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.

3 participants