[LOGGING] Add logging for fail to confirm pivot block error (#7110)

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/7122/head 24.5.2-RC0
Sally MacFarlane 6 months ago committed by GitHub
parent bdec4b9583
commit 433ebd9418
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/SyncTargetManager.java

@ -147,7 +147,11 @@ public class SyncTargetManager extends AbstractSyncTargetManager {
})
.exceptionally(
error -> {
LOG.debug("Could not confirm best peer had pivot block", error);
LOG.debug(
"Could not confirm best peer {} had pivot block {}",
bestPeer.getLoggableId(),
pivotBlockHeader.getNumber(),
error);
return Optional.empty();
});
}

Loading…
Cancel
Save