Commit 1b55113
EchoBT
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- bins/validator-node/src
- crates/bittensor-integration/src
5 files changed
+195
-126
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments