Skip to content

fix: localnet scaffold failing end to end#14

Open
kkowalski-reef wants to merge 1 commit into
unarbos:mainfrom
bittensor-church:fix/scaffold-netuid-from-event
Open

fix: localnet scaffold failing end to end#14
kkowalski-reef wants to merge 1 commit into
unarbos:mainfrom
bittensor-church:fix/scaffold-netuid-from-event

Conversation

@kkowalski-reef

Copy link
Copy Markdown
  • Netuid detection — read from the NetworkAdded event instead of a before/after subnet-set diff, whose "before" came from a disk cache that survives localnet restarts (stale set → empty diff → abort).
  • Admin freeze window — zero AdminFreezeWindow up front; otherwise the first hyperparameter call dies with AdminActionProhibitedDuringWeightsWindow (exit 13).
  • Dead hyperparameter — drop max_weight_limit; removed from the runtime entirely (subtensor#2141), so its set call was a no-op everywhere and unused.

- **Netuid detection** — read from the `NetworkAdded` event instead of a before/after subnet-set diff, whose "before" came from a disk cache that survives localnet restarts (stale set → empty diff → abort).
- **Admin freeze window** — zero `AdminFreezeWindow` up front; otherwise the first hyperparameter call dies with `AdminActionProhibitedDuringWeightsWindow` (exit 13).
- **Dead hyperparameter** — drop `max_weight_limit`; removed from the runtime entirely (subtensor#2141), so its set call was a no-op everywhere and unused.

Co-Authored-By: Claude Opus 4.8 (1M context) <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