opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
145 stars 149 forks source link

Add migration to populate SubnetCreator #436

Closed gztensor closed 1 month ago

gztensor commented 4 months ago

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

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

gztensor commented 4 months ago

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

distributedstatemachine commented 2 months ago

Closed at Stale

distributedstatemachine commented 2 months ago

Closed at Stale