Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jan 14, 2025
1 parent d38de52 commit 3e25421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/p2p/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ where S: ShareChain
None => 0,
};
missing_parents
.retain(|(height, _)| *height >= peer_height.saturating_sub(10).saturating_sub(self.share_window));
.retain(|(height, _)| *height >= peer_height.saturating_sub(10).saturating_sub(self.share_window * 2));

if depth + 1 > self.config.max_missing_blocks_sync_depth {
info!(target: SYNC_REQUEST_LOG_TARGET, "Sync depth reached max depth of {}", self.config.max_missing_blocks_sync_depth);
Expand Down

0 comments on commit 3e25421

Please sign in to comment.