See related issue. This PR fixes a bug where current root members cannot become a Senate member after attaining the requirements after registering on the root network, initially.
This PR adds the call subtensorModule.adjust_senate(hotkey) to attempt to join the Senate when eligible.
Related Issue(s)
Closes #430
Type of Change
[x] Bug fix (non-breaking change which fixes an issue)
[x] 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):
TODO
[ ] Benchmarking weights
Breaking Change
NA
Checklist
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have run cargo fmt and cargo clippy to ensure my code is formatted and linted correctly
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
Screenshots (if applicable)
NA
Additional Notes
An alternative solution is to call join_senate_if_eligible during a root_register call if the hotkey is already registered
Devnet companion: #557
Description
See related issue. This PR fixes a bug where current root members cannot become a Senate member after attaining the requirements after registering on the root network, initially.
This PR adds the call
subtensorModule.adjust_senate(hotkey)
to attempt to join the Senate when eligible.Related Issue(s)
Type of Change
TODO
Breaking Change
NA
Checklist
cargo fmt
andcargo clippy
to ensure my code is formatted and linted correctlyScreenshots (if applicable)
NA
Additional Notes
An alternative solution is to call
join_senate_if_eligible
during aroot_register
call if the hotkey is already registered