aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2016-10-25 15:30:55 -0400
committerRussell Yanofsky <[email protected]>2016-10-25 15:30:55 -0400
commit67c6326abd1788e6f411feb4f44b69774e76aae2 (patch)
tree1be00e6abed77ca62b4b86615c599fef0dfc3e7d /src/main.cpp
parentMerge #9136: sync_blocks cleanup (diff)
downloaddiscoin-67c6326abd1788e6f411feb4f44b69774e76aae2.tar.xz
discoin-67c6326abd1788e6f411feb4f44b69774e76aae2.zip
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 <[email protected]> in https://github.com/bitcoin/bitcoin/pull/8680#r78209060
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e868e3c5f..305f431a3 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;
}