aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@chaincode.com>2016-10-25 15:30:55 -0400
committerLuke Dashjr <luke-jr+git@utopios.org>2016-12-02 07:50:37 +0000
commit0c09d9f00e39c4b1aee0fcb091fba068845b8edd (patch)
treec860c865f010811ad2a68ee3c7eaa9d6b0c3f33d /src
parent6f7841c4d490de01c2e458d45ba5cd1ac8ee97d5 (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 Github-Pull: #9196 Rebased-From: 67c6326abd1788e6f411feb4f44b69774e76aae2
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 083ea194ab..10e2fa983b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3176,6 +3176,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;
}