Changeset View
Changeset View
Standalone View
Standalone View
src/kernel/disconnected_transactions.h
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | public: | ||||
* | * | ||||
* Note: we assume that disconnectpool only contains transactions that are | * Note: we assume that disconnectpool only contains transactions that are | ||||
* NOT confirmed in the current chain nor already in the mempool (otherwise, | * NOT confirmed in the current chain nor already in the mempool (otherwise, | ||||
* in-mempool descendants of such transactions would be removed). | * in-mempool descendants of such transactions would be removed). | ||||
* | * | ||||
* Passing fAddToMempool=false will skip trying to add the transactions | * Passing fAddToMempool=false will skip trying to add the transactions | ||||
* back, and instead just erase from the mempool as needed. | * back, and instead just erase from the mempool as needed. | ||||
*/ | */ | ||||
void updateMempoolForReorg(const Config &config, | void updateMempoolForReorg(Chainstate &active_chainstate, | ||||
Chainstate &active_chainstate, | |||||
bool fAddToMempool, CTxMemPool &pool) | bool fAddToMempool, CTxMemPool &pool) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main, pool.cs); | EXCLUSIVE_LOCKS_REQUIRED(cs_main, pool.cs); | ||||
}; | }; | ||||
#endif // BITCOIN_KERNEL_DISCONNECTED_TRANSACTIONS_H | #endif // BITCOIN_KERNEL_DISCONNECTED_TRANSACTIONS_H |