diff --git a/core/src/main/java/org/bitcoinj/core/AbstractBlockChain.java b/core/src/main/java/org/bitcoinj/core/AbstractBlockChain.java index ea559519e6f..0ecfcfd91c1 100644 --- a/core/src/main/java/org/bitcoinj/core/AbstractBlockChain.java +++ b/core/src/main/java/org/bitcoinj/core/AbstractBlockChain.java @@ -531,6 +531,7 @@ private void connectBlock(final Block block, StoredBlock storedPrev, boolean exp final Integer count = versionTally.getCountAtOrAbove(block.getVersion() + 1); if (count != null && count >= params.getMajorityRejectBlockOutdated()) { + log.error("Block with hash {} has outdated version: version # = {}" , block.getHashAsString(), block.getVersion()); throw new VerificationException.BlockVersionOutOfDate(block.getVersion()); } }