mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
Don't recalculate fast catchup time to avoid hitting an assert.
This commit is contained in:
parent
6a96b0c392
commit
fd941fe46a
@ -418,6 +418,8 @@ public class PeerGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private synchronized void recalculateFastCatchupTime() {
|
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;
|
long earliestKeyTime = Long.MAX_VALUE;
|
||||||
for (Wallet w : wallets) {
|
for (Wallet w : wallets) {
|
||||||
earliestKeyTime = Math.min(earliestKeyTime, w.getEarliestKeyCreationTime());
|
earliestKeyTime = Math.min(earliestKeyTime, w.getEarliestKeyCreationTime());
|
||||||
|
Loading…
Reference in New Issue
Block a user