Skip to content

Commit ba21d10

Browse files
committed
feat(bittensor): add automatic retry for RPC operations
- Add RetryConfig struct with max_retries and retry_delay_ms - Add with_retry() method for operations without signing - Add with_retry_with_signer() for operations needing auth - Wrap all WeightSubmitter RPC calls with retry - Wrap all MechanismWeightManager RPC calls with retry - Modify sync_metagraph to use with_retry - Add is_transport_error() helper for error detection Fixes issue where Subtensor websocket disconnections caused validator to stop submitting weights without recovery. Retry uses exponential backoff: base_delay * 2^attempts
1 parent 4617351 commit ba21d10

File tree

5 files changed

+603
-102
lines changed

5 files changed

+603
-102
lines changed

.sisyphus/boulder.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,21 @@
2222
"ses_2d399dcedffeIh643M3SkpJlvh",
2323
"ses_2d399c4f4ffeYp1ikvWpdzgbr8",
2424
"ses_2d396f993ffe3QuUi7U5lIctCW",
25-
"ses_2d3936895ffe7WyqxJt7aJXLHR"
25+
"ses_2d3936895ffe7WyqxJt7aJXLHR",
26+
"ses_2d18e16eaffeuYSBbAwY0k7Gou",
27+
"ses_2d18e1ad9fferQF5dJPonc1Q6h",
28+
"ses_2d18e1f17ffexszPEJ0nP2awIt",
29+
"ses_2d18e0da5ffeilJjd0cxSKx7UJ",
30+
"ses_2d178726dffeXbT6QsVjTHLu9y",
31+
"ses_2d1785259ffevNw5Is3xyuIciA",
32+
"ses_2d1780328ffeLmGagJrSNbkF0b",
33+
"ses_2d177a232ffeSpJxOSbM7CRhvA",
34+
"ses_2d17671d5ffeb6DTGdItdBqcz4",
35+
"ses_2d17680faffeZmMBIaWou3knlF",
36+
"ses_2d175ac7dffeFMDqS8dhkMvntF",
37+
"ses_2d1758f4fffeeDedJLfKfEcJOc",
38+
"ses_2d1750adbffeXj2TmqB9yroYjX",
39+
"ses_2d173d8f8ffeVwzSNMvS2OjZ2F"
2640
],
2741
"plan_name": "project-cleanup",
2842
"agent": "atlas",

.sisyphus/plans/project-cleanup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ Clean and standardize Platform codebase by fixing version conflicts, consolidati
6262
- SAFETY comments in `crates/challenge-sdk-wasm/src/*.rs` and `bins/validator-node/src/wasm_executor.rs`
6363

6464
### Definition of Done
65-
- [ ] `cargo build --workspace --all-features` succeeds
66-
- [ ] `cargo test --workspace --all-features` passes
67-
- [ ] `cargo clippy --workspace --all-features` has 0 warnings
68-
- [ ] No sp-core version conflicts in Cargo.lock
65+
- [x] `cargo build --workspace --all-features` succeeds
66+
- [x] `cargo test --workspace --all-features` passes
67+
- [x] `cargo clippy --workspace --all-features` has 0 warnings
68+
- [x] No sp-core version conflicts in Cargo.lock
6969

7070
### Must Have
7171
- sp-core unified to 38.1.0 across ALL crates

0 commit comments

Comments
 (0)