diff --git a/src/protocols/light_client/peers.rs b/src/protocols/light_client/peers.rs index 3cbd1b3..7bc62aa 100644 --- a/src/protocols/light_client/peers.rs +++ b/src/protocols/light_client/peers.rs @@ -1856,6 +1856,15 @@ impl Peers { None } }) + .or_else(|| { + peer.state.get_last_state().and_then(|state| { + if now > state.update_ts + MESSAGE_TIMEOUT { + Some(*peer_index) + } else { + None + } + }) + }) .or_else(|| { peer.get_blocks_proof_request().and_then(|req| { if now > req.when_sent + MESSAGE_TIMEOUT {