subtensor
subtensor copied to clipboard
Add migration to populate SubnetCreator
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.)'''
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
Closed at Stale
Closed at Stale