Skip to content

Commit 1b55113

Browse files
author
EchoBT
committed
refactor: Replace WeightSubmitter with bittensor_rs::Subtensor
Major simplification of weight submission using Subtensor API directly: - Remove WeightSubmitter wrapper, use bittensor_rs::Subtensor - Subtensor handles commit-reveal automatically: - CRv4: Timelock encryption (chain auto-reveals) - Legacy: Hash commit-reveal with persistence - Direct: When commit-reveal disabled - State persistence via Subtensor::with_persistence() - Automatic reveal of pending commits on restart - Re-export BittensorSigner, ExtrinsicWait from platform-bittensor Update bittensor-rs to b5720eb with new query methods: - get_current_epoch(netuid) - get_mechanism_count(netuid) - get_current_phase(netuid) - is_in_reveal_phase(netuid) - pending_commits_info()
1 parent 0f4eb83 commit 1b55113

File tree

5 files changed

+195
-126
lines changed

5 files changed

+195
-126
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ license = "Apache-2.0"
3030

3131
[workspace.dependencies]
3232
# Bittensor (with CRv4 timelock encryption support and new Subtensor API)
33-
bittensor-rs = { git = "https://github.com/CortexLM/bittensor-rs", rev = "0614e74" }
33+
bittensor-rs = { git = "https://github.com/CortexLM/bittensor-rs", rev = "b5720eb" }
3434

3535
# Async runtime
3636
tokio = { version = "1.40", features = ["full", "sync", "macros", "rt-multi-thread"] }

0 commit comments

Comments
 (0)