Permalink
Browse files

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 #8680 (comment)

Github-Pull: #9196
Rebased-From: 67c6326
  • Loading branch information...
1 parent ad99a79 commit cca151b3a468b872c8139457039f953c8b45c3cb @ryanofsky ryanofsky committed with MarcoFalke Oct 25, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main.cpp
View
@@ -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;
}

0 comments on commit cca151b

Please sign in to comment.