Skip to content

Commit 67c6326

Browse files
committed
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 bitcoin/bitcoin#8680 (comment)
1 parent b422913 commit 67c6326

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
@@ -3201,6 +3201,7 @@ bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, C
32013201

32023202
InvalidChainFound(pindex);
32033203
mempool.removeForReorg(pcoinsTip, chainActive.Tip()->nHeight + 1, STANDARD_LOCKTIME_VERIFY_FLAGS);
3204+
uiInterface.NotifyBlockTip(IsInitialBlockDownload(), pindex->pprev);
32043205
return true;
32053206
}
32063207

0 commit comments

Comments
 (0)