opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
145 stars 149 forks source link

Fix Senate membership changes #490

Closed camfairchild closed 2 months ago

camfairchild commented 4 months ago

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

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

sam0x17 commented 3 months ago

clippy