fix(network): ignore stale Zakura peer teardowns#486
Conversation
Carry connection registration ids into service sessions so a displaced duplicate connection cannot deregister the newer live peer when its old teardown runs.
Update the header-sync service and tests for registration-aware disconnect events used by stale teardown filtering.
Analyzed eight files, diff |
Summary
Test plan
cargo fmt --all -- --checkcargo test -p zebra-network deliver_rootless_solicited_headers_does_not_disconnect_the_peerStack
Depends on the header-root validation PR.
AI disclosure
Used Cursor to split PR #458 into stacked branches and prepare this PR.