diff --git a/zilliqa/src/sync.rs b/zilliqa/src/sync.rs index c300780ef..b223afcc6 100644 --- a/zilliqa/src/sync.rs +++ b/zilliqa/src/sync.rs @@ -443,7 +443,6 @@ impl Sync { // If we have no chain_segments, we have nothing to do if let Some((peer_info, meta)) = self.chain_segments.last() { - let to_view = meta.view_number.saturating_add(Self::VIEW_DRIFT); let mut from_view = meta.view_number; let mut request_hashes = Vec::with_capacity(self.max_batch_size); let mut key = meta.parent_hash; // start from this block @@ -488,7 +487,11 @@ impl Sync { last_used: std::time::Instant::now(), score: u32::MAX, // used to indicate faux peer, will not be added to the group of peers }); - ExternalMessage::BlockRequest(BlockRequest { to_view, from_view }) + // do not add VIEW_DRIFT - the stored marker is accurate! + ExternalMessage::BlockRequest(BlockRequest { + to_view: meta.view_number, + from_view, + }) } }; self.message_sender