mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
Don't print difficulty transition times when it's less than 50 msec.
This commit is contained in:
parent
2e895e4e09
commit
301299cff9
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user