You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0ed48ff
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(dash-spv): rewrite the peer-to-peer network module
Replaces the old network layer with a self-coordinating PeerNetworkManager
(broker): it owns request de-duplication, pacing, per-peer in-flight sizing,
timeouts, retries and peer hot-swap, so the sync pipelines just declare what
they want. Highlights:
- Restore sync/ from dev and re-wire it to the broker; delete the per-pipeline
DownloadCoordinator.
- Minimal `NetworkManager` trait + in-memory `MockNetworkManager`; the client is
generic over the network (`DashSpvClient<W, N, S>`) with the network injected.
- Strict-priority message scheduler: control, then blocks, filters, filter
headers, block headers.
- Drop peer storage and the peer-reputation system (unused; to be redone).
- Un-Box the `NetworkMessage` variants to stay close to dev.
- Storage kept as on dev (minus the removed peer storage).
- Restore dev's integration tests and the network-dependent unit tests via the mock.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CUb3bkX9C1gBFA65GFsN53
0 commit comments