PeerGroup.ChainDownloadSpeedCalculator: Log chain height with end of sync.

This commit is contained in:
Andreas Schildbach 2019-12-14 17:11:11 +01:00
parent 80228d7954
commit 66403d1946

View File

@ -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;
}