diff --git a/core/src/main/java/com/google/bitcoin/core/AbstractBlockChain.java b/core/src/main/java/com/google/bitcoin/core/AbstractBlockChain.java index d0d587cb9..e0808fb57 100644 --- a/core/src/main/java/com/google/bitcoin/core/AbstractBlockChain.java +++ b/core/src/main/java/com/google/bitcoin/core/AbstractBlockChain.java @@ -732,7 +732,9 @@ public abstract class AbstractBlockChain { } cursor = blockStore.get(cursor.getHeader().getPrevBlockHash()); } - log.info("Difficulty transition traversal took {}msec", System.currentTimeMillis() - now); + long elapsed = System.currentTimeMillis() - now; + if (elapsed > 50) + log.info("Difficulty transition traversal took {}msec", elapsed); Block blockIntervalAgo = cursor.getHeader(); int timespan = (int) (prev.getTimeSeconds() - blockIntervalAgo.getTimeSeconds());