log message changes (#3658)

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/3661/head
Sally MacFarlane 3 years ago committed by GitHub
parent 6d5596789e
commit 81b4ca61ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/task/AbstractRetryingPeerTask.java
  2. 4
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/FastSyncTargetManager.java

@ -93,7 +93,7 @@ public abstract class AbstractRetryingPeerTask<T> extends AbstractEthTask<T> {
if (error != null) { if (error != null) {
handleTaskError(error); handleTaskError(error);
} else { } else {
// If we get a partial success reset the retry counter. // If we get a partial success, reset the retry counter.
if (!isEmptyResponse.test(peerResult)) { if (!isEmptyResponse.test(peerResult)) {
retryCount = 0; retryCount = 0;
} }
@ -114,7 +114,7 @@ public abstract class AbstractRetryingPeerTask<T> extends AbstractEthTask<T> {
if (cause instanceof NoAvailablePeersException) { if (cause instanceof NoAvailablePeersException) {
LOG.info( LOG.info(
"No useful peer available, waiting for more peers: {}", "No useful peer found, checking remaining current peers for usefulness: {}",
ethContext.getEthPeers().peerCount()); ethContext.getEthPeers().peerCount());
// Wait for new peer to connect // Wait for new peer to connect
final WaitForPeerTask waitTask = WaitForPeerTask.create(ethContext, metricsSystem); final WaitForPeerTask waitTask = WaitForPeerTask.create(ethContext, metricsSystem);

@ -64,7 +64,9 @@ class FastSyncTargetManager extends SyncTargetManager {
final BlockHeader pivotBlockHeader = fastSyncState.getPivotBlockHeader().get(); final BlockHeader pivotBlockHeader = fastSyncState.getPivotBlockHeader().get();
final Optional<EthPeer> maybeBestPeer = ethContext.getEthPeers().bestPeerWithHeightEstimate(); final Optional<EthPeer> maybeBestPeer = ethContext.getEthPeers().bestPeerWithHeightEstimate();
if (!maybeBestPeer.isPresent()) { if (!maybeBestPeer.isPresent()) {
LOG.info("No sync target, waiting for peers: {}", ethContext.getEthPeers().peerCount()); LOG.info(
"No sync target, checking current peers for usefulness: {}",
ethContext.getEthPeers().peerCount());
return completedFuture(Optional.empty()); return completedFuture(Optional.empty());
} else { } else {
final EthPeer bestPeer = maybeBestPeer.get(); final EthPeer bestPeer = maybeBestPeer.get();

Loading…
Cancel
Save