Skip to content

fix: Migrate identity + hyperparams to current prod metadata#16

Open
kkowalski-reef wants to merge 1 commit into
unarbos:mainfrom
bittensor-church:fix/metadata-migration
Open

fix: Migrate identity + hyperparams to current prod metadata#16
kkowalski-reef wants to merge 1 commit into
unarbos:mainfrom
bittensor-church:fix/metadata-migration

Conversation

@kkowalski-reef

Copy link
Copy Markdown

Ad hoc fix to restore compilation against the live finney runtime (pallet_registry dropped, activity_cutoff widened). Holds until the next runtime change.

  • Identity readRegistry::IdentityOfSubtensorModule::IdentitiesV2; fields now plain Vec<u8>, so the Data-enum decoder is gone and github/description populate.
  • Identity writeRegistry::set_identitySubtensorModule::set_identity (seven byte vectors). No clear_identity; clearing writes empty.
  • Hyperparamsactivity_cutoff u16 → u64 on the read API; sudo setter still u16.

Prunes dead Registry error variants; identity failures now surface as InvalidIdentity.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant