diff --git a/doc/release-notes.md b/doc/release-notes.md --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -7,3 +7,4 @@ - Remove the bip9_softforks result from the getblockchaininfo RPC call. - Remove the rules, vbavailable and vbrequired result from the getblocktemplate RPC call. - Remove the rules argument from the getblocktemplate RPC call. + - Log difference between block header time and received time when competing blocks are received for the same chain height. diff --git a/src/validation.cpp b/src/validation.cpp --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3870,11 +3870,9 @@ chainActive.Tip() ? std::llabs(chainActive.Tip()->GetReceivedTimeDiff()) : 0; - bool isSameHeightAndMoreHonestlyMined = - chainActive.Tip() && - (pindex->nChainWork == chainActive.Tip()->nChainWork) && - (newBlockTimeDiff < chainTipTimeDiff); - if (isSameHeightAndMoreHonestlyMined) { + bool isSameHeight = chainActive.Tip() && + (pindex->nChainWork == chainActive.Tip()->nChainWork); + if (isSameHeight) { LogPrintf("Chain tip timestamp-to-received-time difference: hash=%s, " "diff=%d\n", chainActive.Tip()->GetBlockHash().ToString(),