Conversation
- Subtensor handles CRv4/commit-reveal automatically based on chain config - Fetch weights from platform-server each epoch - Submit burn weights (UID 0) if no challenges available - Reveal pending commits in RevealWindowOpen (for non-CRv4) - Clean centralized architecture (no P2P)
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe validator-node crate undergoes dependency cleanup and major control-flow refactoring. Cargo.toml removes unused platform and utility crates while standardizing workspace dependencies. Main.rs integrates Subtensor persistence with CRv4-aware submission, updates CLI arguments, and modifies handle_block_event to wire in new signer and Subtensor parameters throughout the event loop. Changes
Sequence DiagramsequenceDiagram
participant EvtLoop as Event Loop
participant Handler as handle_block_event
participant PSClient as PlatformServerClient
participant Subtensor
participant Signer as BittensorSigner
EvtLoop->>Handler: block_event + platform_client + subtensor + signer + netuid + version_key
rect rgb(230, 245, 240)
Note over Handler: COMMIT WINDOW
Handler->>PSClient: fetch platform weights
PSClient-->>Handler: weights
Handler->>Handler: translate to mechanism weights
Handler->>Signer: create signature
Signer-->>Handler: signature
Handler->>Subtensor: submit weights via ExtrinsicWait
Subtensor-->>Handler: submission confirmed
end
rect rgb(245, 240, 230)
Note over Handler: REVEAL WINDOW
Handler->>Subtensor: trigger automatic reveal (CRv4)
Subtensor-->>Handler: reveal complete
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40 minutes Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Comment |
Summary by CodeRabbit
Release Notes
New Features
Updates
✏️ Tip: You can customize this high-level summary in your review settings.