Skip to content

Commit

Permalink
use last_common as start in BlockFetch
Browse files Browse the repository at this point in the history
Signed-off-by: Eval EXEC <[email protected]>
  • Loading branch information
eval-exec committed Nov 20, 2024
1 parent fdc3a50 commit 831a4ed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sync/src/synchronizer/block_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,11 @@ impl BlockFetcher {
let state = self.sync_shared.state();

let mut start = {
match self.ibd {
IBDState::In => self.sync_shared.shared().get_unverified_tip().number() + 1,
IBDState::Out => last_common.number() + 1,
}
last_common.number() + 1
// match self.ibd {
// IBDState::In => self.sync_shared.shared().get_unverified_tip().number() + 1,
// IBDState::Out => last_common.number() + 1,
// }
};
let mut end = min(best_known.number(), start + BLOCK_DOWNLOAD_WINDOW);
let n_fetch = min(
Expand Down

0 comments on commit 831a4ed

Please sign in to comment.