subtensor icon indicating copy to clipboard operation
subtensor copied to clipboard

Add migration to populate SubnetCreator

Open gztensor opened this issue 1 year ago • 3 comments

A new state map was added in DTAO and needs a migration to be populated:

SubnetCreator::<T>::insert(netuid_to_register, hotkey.clone()); // Set the creator hotkey (which is forever.)'''

gztensor avatar May 17 '24 22:05 gztensor

Done.

The migration to populate SubnetCreator: https://github.com/opentensor/subtensor/blob/de987e32bccdd3e8cc15141cf030eaa6245d1dcd/pallets/subtensor/src/migration.rs#L539

Making it run on the network update: https://github.com/opentensor/subtensor/blob/de987e32bccdd3e8cc15141cf030eaa6245d1dcd/pallets/subtensor/src/lib.rs#L1368

gztensor avatar May 17 '24 23:05 gztensor

Closed at Stale

distributedstatemachine avatar Jul 31 '24 15:07 distributedstatemachine

Closed at Stale

distributedstatemachine avatar Jul 31 '24 15:07 distributedstatemachine