diff options
author | Russell Yanofsky <russ@chaincode.com> | 2016-10-25 15:30:55 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-11-23 13:24:14 +0100 |
commit | cca151b3a468b872c8139457039f953c8b45c3cb (patch) | |
tree | 3272d93b0168613bfea6391de39e9dcb409f0dac | |
parent | ad99a798696ac2b66be561b5a026e795d765c9fe (diff) | |
download | bitcoin-cca151b3a468b872c8139457039f953c8b45c3cb.tar.xz |
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
-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 6dc2b3ba0c..3dd8f34aeb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2999,6 +2999,7 @@ bool InvalidateBlock(CValidationState& state, const Consensus::Params& consensus InvalidChainFound(pindex); mempool.removeForReorg(pcoinsTip, chainActive.Tip()->nHeight + 1, STANDARD_LOCKTIME_VERIFY_FLAGS); + uiInterface.NotifyBlockTip(IsInitialBlockDownload(), pindex->pprev); return true; } |