Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 602 Lines • ▼ Show 20 Lines | public: | ||||
// lack of CValidationInterface::TransactionAddedToMempool callbacks). | // lack of CValidationInterface::TransactionAddedToMempool callbacks). | ||||
void addUnchecked(const CTxMemPoolEntry &entry) | void addUnchecked(const CTxMemPoolEntry &entry) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | ||||
void addUnchecked(const CTxMemPoolEntry &entry, setEntries &setAncestors) | void addUnchecked(const CTxMemPoolEntry &entry, setEntries &setAncestors) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | ||||
void removeRecursive(const CTransaction &tx, MemPoolRemovalReason reason) | void removeRecursive(const CTransaction &tx, MemPoolRemovalReason reason) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs); | EXCLUSIVE_LOCKS_REQUIRED(cs); | ||||
void removeForReorg(const Config &config, CChainState &active_chainstate, | /** | ||||
int flags) EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | * After reorg, check if mempool entries are now non-final, premature | ||||
* coinbase spends, or have invalid lockpoints. Update lockpoints and | |||||
* remove entries (and descendants of entries) that are no longer valid. | |||||
*/ | |||||
void removeForReorg(const Config &config, CChain &chain, | |||||
std::function<bool(txiter)> check_final_and_mature) | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | |||||
void removeConflicts(const CTransaction &tx) EXCLUSIVE_LOCKS_REQUIRED(cs); | void removeConflicts(const CTransaction &tx) EXCLUSIVE_LOCKS_REQUIRED(cs); | ||||
void removeForBlock(const std::vector<CTransactionRef> &vtx, | void removeForBlock(const std::vector<CTransactionRef> &vtx, | ||||
unsigned int nBlockHeight) EXCLUSIVE_LOCKS_REQUIRED(cs); | unsigned int nBlockHeight) EXCLUSIVE_LOCKS_REQUIRED(cs); | ||||
void clear(); | void clear(); | ||||
// lock free | // lock free | ||||
void _clear() EXCLUSIVE_LOCKS_REQUIRED(cs); | void _clear() EXCLUSIVE_LOCKS_REQUIRED(cs); | ||||
bool CompareDepthAndScore(const TxId &txida, const TxId &txidb); | bool CompareDepthAndScore(const TxId &txida, const TxId &txidb); | ||||
▲ Show 20 Lines • Show All 453 Lines • Show Last 20 Lines |