From 35fd1d84552a4ec12dc2bd7c8f0bfdac17ff4137 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sun, 21 Mar 2021 14:12:04 +0000 Subject: [PATCH] Base58 encode signatures in recently added logs. --- src/main/java/org/qortal/controller/Synchronizer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/qortal/controller/Synchronizer.java b/src/main/java/org/qortal/controller/Synchronizer.java index 8601e4bc..84792895 100644 --- a/src/main/java/org/qortal/controller/Synchronizer.java +++ b/src/main/java/org/qortal/controller/Synchronizer.java @@ -402,7 +402,7 @@ public class Synchronizer { while (peerBlocks.size() < peerBlockSignatures.size()) { byte[] blockSignature = peerBlockSignatures.get(peerBlocks.size()); - LOGGER.debug(String.format("Fetching block with signature %s", blockSignature)); + LOGGER.debug(String.format("Fetching block with signature %.8s", Base58.encode(blockSignature))); int blockHeightToRequest = commonBlockHeight + peerBlocks.size() + 1; // +1 because we are requesting the next block, beyond what we already have in the peerBlocks array Block newBlock = this.fetchBlock(repository, peer, blockSignature); @@ -431,7 +431,7 @@ public class Synchronizer { // Reset retryCount because the last request succeeded retryCount = 0; - LOGGER.debug(String.format("Received block with height %d, sig: %.8s", newBlock.getBlockData().getHeight(), newBlock.getSignature())); + LOGGER.debug(String.format("Received block with height %d, sig: %.8s", newBlock.getBlockData().getHeight(), Base58.encode(blockSignature))); // Transactions are transmitted without approval status so determine that now for (Transaction transaction : newBlock.getTransactions())