Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 2,841 Lines • ▼ Show 20 Lines | if (fBlocksDisconnected || !disconnectpool.isEmpty()) { | ||||
// if disconnectpool is empty. The disconnectpool may also be non-empty | // if disconnectpool is empty. The disconnectpool may also be non-empty | ||||
// if the mempool was imported due to new validation rules being in | // if the mempool was imported due to new validation rules being in | ||||
// effect. | // effect. | ||||
LogPrint(BCLog::MEMPOOL, "Updating mempool due to reorganization or " | LogPrint(BCLog::MEMPOOL, "Updating mempool due to reorganization or " | ||||
"rules upgrade/downgrade\n"); | "rules upgrade/downgrade\n"); | ||||
disconnectpool.updateMempoolForReorg(config, *this, true, m_mempool); | disconnectpool.updateMempoolForReorg(config, *this, true, m_mempool); | ||||
} | } | ||||
m_mempool.check(*this); | m_mempool.check(this->CoinsTip(), this->m_chain.Height() + 1); | ||||
// Callbacks/notifications for a new best chain. | // Callbacks/notifications for a new best chain. | ||||
if (fInvalidFound) { | if (fInvalidFound) { | ||||
CheckForkWarningConditionsOnNewFork(pindexMostWork); | CheckForkWarningConditionsOnNewFork(pindexMostWork); | ||||
} else { | } else { | ||||
CheckForkWarningConditions(); | CheckForkWarningConditions(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 3,322 Lines • Show Last 20 Lines |