Skip to content

Commit cca151b

Browse files
ryanofskyMarcoFalke
authored andcommitted
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 #8680 (comment) Github-Pull: #9196 Rebased-From: 67c6326
1 parent ad99a79 commit cca151b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2999,6 +2999,7 @@ bool InvalidateBlock(CValidationState& state, const Consensus::Params& consensus
29992999

30003000
InvalidChainFound(pindex);
30013001
mempool.removeForReorg(pcoinsTip, chainActive.Tip()->nHeight + 1, STANDARD_LOCKTIME_VERIFY_FLAGS);
3002+
uiInterface.NotifyBlockTip(IsInitialBlockDownload(), pindex->pprev);
30023003
return true;
30033004
}
30043005

0 commit comments

Comments
 (0)