fix: Migrate identity + hyperparams to current prod metadata#16
Open
kkowalski-reef wants to merge 1 commit into
Open
fix: Migrate identity + hyperparams to current prod metadata#16kkowalski-reef wants to merge 1 commit into
kkowalski-reef wants to merge 1 commit into
Conversation
Ad hoc fix to restore compilation against the live finney runtime (`pallet_registry` dropped, `activity_cutoff` widened). Holds until the next runtime change. - **Identity read** — `Registry::IdentityOf` → `SubtensorModule::IdentitiesV2`; fields now plain `Vec<u8>`, so the `Data`-enum decoder is gone and `github`/`description` populate. - **Identity write** — `Registry::set_identity` → `SubtensorModule::set_identity` (seven byte vectors). No `clear_identity`; clearing writes empty. - **Hyperparams** — `activity_cutoff` u16 → u64 on the read API; sudo setter still u16. Prunes dead Registry error variants; identity failures now surface as `InvalidIdentity`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ad hoc fix to restore compilation against the live finney runtime (
pallet_registrydropped,activity_cutoffwidened). Holds until the next runtime change.Registry::IdentityOf→SubtensorModule::IdentitiesV2; fields now plainVec<u8>, so theData-enum decoder is gone andgithub/descriptionpopulate.Registry::set_identity→SubtensorModule::set_identity(seven byte vectors). Noclear_identity; clearing writes empty.activity_cutoffu16 → u64 on the read API; sudo setter still u16.Prunes dead Registry error variants; identity failures now surface as
InvalidIdentity.