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

This commit is contained in:
CalDescent 2021-03-28 14:19:53 +01:00
parent 365662a2af
commit 2556855bd7

View File

@ -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));