statesync: stop pinning each prefix to one peer
Once a peer answered for a prefix, the statesync client sent it every later request for that prefix until the sync finished. The pin was needed while the execution client split each pass at 99% of the target: the second part asked for no deletions and selected leaves by the serving node's own versions, which differ between nodes, so only the peer that served the first part returned the right leaves. category-labs/monad#2849 ends every pass at the target. This PR bumps monad-execution to include it (833104bca → 616b74399, which also brings in the other execution main commits since the current pin) and drops the pin.
Dropping the pin fixes a stall. A server that cannot serve a pass, for example because a restart cleared its deletions, sends the client nothing, so the request times out, and every retry went back to the same peer. Retries now go to the peers that timed out least recently, as first requests do.
The pin also made the first peer to answer a request its only source. A response is now accepted only from the peer the request is in flight to, so a late answer from a peer the request timed out on is never combined with another peer's chunks.
Testing
Two new tests in outbound_requests.rs, both of which fail on the pinning code:
timed_out_pass_moves_off_peer_that_served_previous_pass: after a peer serves one pass of a prefix, a timed-out later pass of that prefix is retried on another peer.response_from_peer_whose_request_timed_out_is_dropped: once a request has moved to a new peer, a late response from the old peer is dropped and the new peer's response is accepted.
🤖 Generated with Claude Code