mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
Don't recalculate fast catchup time to avoid hitting an assert.
This commit is contained in:
parent
6a96b0c392
commit
fd941fe46a
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue