From fd941fe46a4744b7009a98de199bb8b24fd070dc Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 8 Oct 2012 17:13:37 +0200 Subject: [PATCH] Don't recalculate fast catchup time to avoid hitting an assert. --- core/src/main/java/com/google/bitcoin/core/PeerGroup.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java index 1789a42b0..b0b7ebbea 100644 --- a/core/src/main/java/com/google/bitcoin/core/PeerGroup.java +++ b/core/src/main/java/com/google/bitcoin/core/PeerGroup.java @@ -418,6 +418,8 @@ public class PeerGroup { } private synchronized void recalculateFastCatchupTime() { + // Fully verifying mode doesn't use this optimization (it can't as it needs to see all transactions). + if (chain.shouldVerifyTransactions()) return; long earliestKeyTime = Long.MAX_VALUE; for (Wallet w : wallets) { earliestKeyTime = Math.min(earliestKeyTime, w.getEarliestKeyCreationTime());