Browse Source

Added missing return statement if a peer fails to respond with blocks when fast syncing.

sync-multiple-blocks
CalDescent 4 years ago
parent
commit
2556855bd7
  1. 1
      src/main/java/org/qortal/controller/Synchronizer.java

1
src/main/java/org/qortal/controller/Synchronizer.java

@ -607,6 +607,7 @@ public class Synchronizer {
if (blocks == null || blocks.isEmpty()) { if (blocks == null || blocks.isEmpty()) {
LOGGER.info(String.format("Peer %s failed to respond with more blocks after height %d, sig %.8s", peer, LOGGER.info(String.format("Peer %s failed to respond with more blocks after height %d, sig %.8s", peer,
ourHeight, Base58.encode(latestPeerSignature))); ourHeight, Base58.encode(latestPeerSignature)));
return SynchronizationResult.NO_REPLY;
} }
LOGGER.trace(String.format("Received %d blocks after height %d, sig %.8s from %s", blocks.size(), ourHeight, Base58.encode(latestPeerSignature), peer)); LOGGER.trace(String.format("Received %d blocks after height %d, sig %.8s from %s", blocks.size(), ourHeight, Base58.encode(latestPeerSignature), peer));

Loading…
Cancel
Save