3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-30 23:02:15 +00:00

Don't recalculate fast catchup time to avoid hitting an assert.

This commit is contained in:
Mike Hearn 2012-10-08 17:13:37 +02:00
parent 6a96b0c392
commit fd941fe46a

View File

@ -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());