mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
PeerGroup.ChainDownloadSpeedCalculator: Log chain height with end of sync.
This commit is contained in:
parent
80228d7954
commit
66403d1946
@ -1799,7 +1799,7 @@ public class PeerGroup implements TransactionBroadcaster {
|
||||
int chainHeight = chain != null ? chain.getBestChainHeight() : -1;
|
||||
int mostCommonChainHeight = getMostCommonChainHeight();
|
||||
if (!syncDone && mostCommonChainHeight > 0 && chainHeight >= mostCommonChainHeight) {
|
||||
log.info("End of sync detected.");
|
||||
log.info("End of sync detected at height {}.", chainHeight);
|
||||
syncDone = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user