|
|
|
@ -2803,7 +2803,7 @@ bool CChainState::InvalidateBlock(CValidationState& state, const CChainParams& c
|
|
|
|
|
bool ret = DisconnectTip(state, chainparams, &disconnectpool);
|
|
|
|
|
// DisconnectTip will add transactions to disconnectpool.
|
|
|
|
|
// Adjust the mempool to be consistent with the new tip, adding
|
|
|
|
|
// transactions back to the mempool if disconnecting was succesful,
|
|
|
|
|
// transactions back to the mempool if disconnecting was successful,
|
|
|
|
|
// and we're not doing a very deep invalidation (in which case
|
|
|
|
|
// keeping the mempool up to date is probably futile anyway).
|
|
|
|
|
UpdateMempoolForReorg(disconnectpool, /* fAddToMempool = */ (++disconnected <= 10) && ret);
|
|
|
|
|