Add block fetch TRACE logging to Synchronizer

This commit is contained in:
catbref 2021-02-20 13:36:54 +00:00
parent 1fdd7f156c
commit 3920933fc7

View File

@ -488,7 +488,9 @@ public class Synchronizer {
peerBlockSignatures.remove(0); peerBlockSignatures.remove(0);
++ourHeight; ++ourHeight;
LOGGER.trace(String.format("Fetching block %d, sig %.8s from %s", ourHeight, Base58.encode(latestPeerSignature), peer));
Block newBlock = this.fetchBlock(repository, peer, latestPeerSignature); Block newBlock = this.fetchBlock(repository, peer, latestPeerSignature);
LOGGER.trace(String.format("Fetched block %d, sig %.8s from %s", ourHeight, Base58.encode(latestPeerSignature), peer));
if (newBlock == null) { if (newBlock == null) {
LOGGER.info(String.format("Peer %s failed to respond with block for height %d, sig %.8s", peer, LOGGER.info(String.format("Peer %s failed to respond with block for height %d, sig %.8s", peer,