diff options
author | Russell Yanofsky <russ@chaincode.com> | 2016-10-25 15:30:55 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2016-10-25 15:30:55 -0400 |
commit | 67c6326abd1788e6f411feb4f44b69774e76aae2 (patch) | |
tree | 1be00e6abed77ca62b4b86615c599fef0dfc3e7d /src | |
parent | b42291334651fff46dbfe5947a726f65cb9d7dfe (diff) |
Send tip change notification from invalidateblock
This change is needed to prevent sync_blocks timeouts in the mempool_reorg
test after the sync_blocks update in the upcoming commit
"[qa] Change sync_blocks to pick smarter maxheight".
This change was initially suggested by Suhas Daftuar <sdaftuar@chaincode.com>
in https://github.com/bitcoin/bitcoin/pull/8680#r78209060
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index e868e3c5f9..305f431a31 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3201,6 +3201,7 @@ bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, C InvalidChainFound(pindex); mempool.removeForReorg(pcoinsTip, chainActive.Tip()->nHeight + 1, STANDARD_LOCKTIME_VERIFY_FLAGS); + uiInterface.NotifyBlockTip(IsInitialBlockDownload(), pindex->pprev); return true; } |