Skip to content

Commit

Permalink
Retry mechanism when getting a broadcasted block fail on all peers (h…
Browse files Browse the repository at this point in the history
…yperledger#4271)

Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 authored and garyschulte committed Sep 7, 2022
1 parent 88cd730 commit b546306
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 48 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Additions and Improvements
- Upgrade besu-native to 0.6.0 and use Blake2bf native implementation if available by default [#4264](https://github.com/hyperledger/besu/pull/4264)
- Better management of jemalloc presence/absence in startup script [#4237](https://github.com/hyperledger/besu/pull/4237)
- Retry mechanism when getting a broadcasted block fail on all peers [#4271](https://github.com/hyperledger/besu/pull/4271)
- Filter out disconnected peers when fetching available peers [#4269](https://github.com/hyperledger/besu/pull/4269)
- Updated the default value of fast-sync-min-peers post merge [#4298](https://github.com/hyperledger/besu/pull/4298)
- Log imported block info post merge [#4310](https://github.com/hyperledger/besu/pull/4310)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ protected void handleTaskError(final Throwable error) {

if (cause instanceof NoAvailablePeersException) {
LOG.debug(
"No useful peer found, checking remaining current peers for usefulness: {}",
"No useful peer found, wait max 5 seconds for new peer to connect: current peers {}",
ethContext.getEthPeers().peerCount());
// Wait for new peer to connect

final WaitForPeerTask waitTask = WaitForPeerTask.create(ethContext, metricsSystem);
executeSubTask(
() ->
Expand Down
Loading

0 comments on commit b546306

Please sign in to comment.