From 189d634889f1c063e51ee368bb816d2f94a69521 Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Tue, 7 May 2024 11:36:04 +1000 Subject: [PATCH] World state halt and chain halt fixes (#7027) (#7059) Signed-off-by: Jason Frame Signed-off-by: stefan.pingel@consensys.net --- CHANGELOG.md | 1 + .../options/unstable/SynchronizerOptions.java | 13 ++--- .../cli/options/SynchronizerOptionsTest.java | 2 +- .../eth/sync/SynchronizerConfiguration.java | 20 ++++---- .../FastSyncDownloadPipelineFactory.java | 2 +- .../fastsync/PivotSelectorFromSafeBlock.java | 3 +- .../FullSyncDownloadPipelineFactory.java | 2 +- .../eth/sync/range/SyncTargetRangeSource.java | 37 +++++++++----- .../snapsync/DynamicPivotBlockSelector.java | 2 +- .../sync/snapsync/SnapWorldDownloadState.java | 48 ++++++++++------- .../SnapWorldStateDownloadProcess.java | 51 +++++++++++++++++++ .../snapsync/SnapWorldStateDownloader.java | 4 +- .../snapsync/SnapWorldDownloadStateTest.java | 17 ++++++- 13 files changed, 145 insertions(+), 57 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bcabc7592..3130fa01fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,7 @@ - Snap client fixes discovered during snap server testing [#6847](https://github.com/hyperledger/besu/pull/6847) - Correctly initialize the txpool as disabled on creation [#6890](https://github.com/hyperledger/besu/pull/6890) - Fix worldstate download halt when using snap sync during initial sync [#6981](https://github.com/hyperledger/besu/pull/6981) +- Fix chain halt due to peers only partially responding with headers. And worldstate halts caused by a halt in the chain sync [#7027](https://github.com/hyperledger/besu/pull/7027) ### Download Links diff --git a/besu/src/main/java/org/hyperledger/besu/cli/options/unstable/SynchronizerOptions.java b/besu/src/main/java/org/hyperledger/besu/cli/options/unstable/SynchronizerOptions.java index da5199f85d..1adf708058 100644 --- a/besu/src/main/java/org/hyperledger/besu/cli/options/unstable/SynchronizerOptions.java +++ b/besu/src/main/java/org/hyperledger/besu/cli/options/unstable/SynchronizerOptions.java @@ -39,6 +39,8 @@ public class SynchronizerOptions implements CLIOptions