Skip to content

⬆️ deps: bittensor 10.5 + btcli 9.23 for multi-mechanism chain runtime - #194

Merged
george-connito merged 2 commits into
masterfrom
fix/bittensor-10-5-chain-compat
Jul 24, 2026
Merged

⬆️ deps: bittensor 10.5 + btcli 9.23 for multi-mechanism chain runtime#194
george-connito merged 2 commits into
masterfrom
fix/bittensor-10-5-chain-compat

Conversation

@george-connito

Copy link
Copy Markdown
Collaborator

bittensor 10.1.0 can no longer query the live chain: the multi-mechanism runtime migration wrapped netuid storage keys in a NetUid newtype, so Subtensor.metagraph(netuid) dies with "Invalid type for data: 102 of type <class 'int'>" on both finney and archive. Validator bootstrap calls metagraph() (run._sync_lite_metagraph), so any :stable container restart crash-loops fleet-wide.

Bump to bittensor 10.5.0 / bittensor-cli 9.23.2 and move the async-substrate-interface pin to the cyscale-based 2.2.1 (both new pins require it; the old scalecodec-era 1.6.4 hack is obsolete — btcli no longer pulls py-scale-codec).

Verified in a clean python:3.10 container and layered over the :stable image on a live host: deps resolve with no scalecodec, all connito validator/shared modules import, metagraph returns n=256 on netuid 102, and the validator bootstraps through chain-commit fetch and model load. bittensor 11.0.0 was rejected: it removes Subtensor.metagraph and needs a real migration.

george-connito and others added 2 commits July 20, 2026 21:43
bittensor 10.1.0 can no longer query the live chain: the multi-mechanism
runtime migration wrapped netuid storage keys in a NetUid newtype, so
Subtensor.metagraph(netuid) dies with "Invalid type for data: 102 of type
<class 'int'>" on both finney and archive. Validator bootstrap calls
metagraph() (run._sync_lite_metagraph), so any :stable container restart
crash-loops fleet-wide.

Bump to bittensor 10.5.0 / bittensor-cli 9.23.2 and move the
async-substrate-interface pin to the cyscale-based 2.2.1 (both new pins
require it; the old scalecodec-era 1.6.4 hack is obsolete — btcli no
longer pulls py-scale-codec).

Verified in a clean python:3.10 container and layered over the :stable
image on a live host (137.184.170.154): deps resolve with no scalecodec,
all connito validator/shared modules import, metagraph returns n=256 on
netuid 102, and the validator bootstraps through chain-commit fetch and
model load. bittensor 11.0.0 was rejected: it removes Subtensor.metagraph
and needs a real migration.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…r 0.26)

CI's clean-image build caught two conflicts the layered container test
could not: bittensor 10.5.0 requires requests>=2.33 (repo pinned
2.32.3) and bittensor-cli 9.23.2 requires typer~=0.26 (repo pinned
0.24.1). Verified with a full pip dry-run resolve of requirements.txt
in a clean python:3.10 container against the cu124 index.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@george-connito
george-connito merged commit 4c72763 into master Jul 24, 2026
1 check passed
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