![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <txmempool.h>
Public Types | |
| using | TxHandle = CTxMemPool::txiter |
Public Member Functions | |
| ChangeSet (CTxMemPool *pool) | |
| ~ChangeSet () EXCLUSIVE_LOCKS_REQUIRED(m_pool -> cs) | |
| ChangeSet (const ChangeSet &)=delete | |
| ChangeSet & | operator= (const ChangeSet &)=delete |
| TxHandle | StageAddition (const CTransactionRef &tx, const CAmount fee, int64_t time, unsigned int entry_height, uint64_t entry_sequence, bool spends_coinbase, int64_t sigops_cost, LockPoints lp) |
| void | StageRemoval (CTxMemPool::txiter it) |
| const CTxMemPool::setEntries & | GetRemovals () const |
| bool | CheckMemPoolPolicyLimits () |
| Check if any cluster limits are exceeded. More... | |
| CTxMemPool::setEntries | CalculateMemPoolAncestors (TxHandle tx) |
| std::vector< CTransactionRef > | GetAddedTxns () const |
| util::Result< std::pair< std::vector< FeeFrac >, std::vector< FeeFrac > > > | CalculateChunksForRBF () |
| Calculate the sorted chunks for the old and new mempool relating to the clusters that would be affected by a potential replacement transaction. More... | |
| size_t | GetTxCount () const |
| const CTransaction & | GetAddedTxn (size_t index) const |
| void | Apply () EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
Private Member Functions | |
| void | ProcessDependencies () |
Private Attributes | |
| CTxMemPool * | m_pool |
| CTxMemPool::indexed_transaction_set | m_to_add |
| std::vector< CTxMemPool::txiter > | m_entry_vec |
| std::map< CTxMemPool::txiter, CTxMemPool::setEntries, CompareIteratorByHash > | m_ancestors |
| CTxMemPool::setEntries | m_to_remove |
| bool | m_dependencies_processed {false} |
Friends | |
| class | CTxMemPool |
Definition at line 649 of file txmempool.h.
Definition at line 663 of file txmempool.h.
|
inlineexplicit |
Definition at line 651 of file txmempool.h.
|
inline |
|
delete |
| void CTxMemPool::ChangeSet::Apply | ( | ) |
Definition at line 1019 of file txmempool.cpp.
| util::Result< std::pair< std::vector< FeeFrac >, std::vector< FeeFrac > > > CTxMemPool::ChangeSet::CalculateChunksForRBF | ( | ) |
Calculate the sorted chunks for the old and new mempool relating to the clusters that would be affected by a potential replacement transaction.
Definition at line 977 of file txmempool.cpp.
|
inline |
| bool CTxMemPool::ChangeSet::CheckMemPoolPolicyLimits | ( | ) |
Check if any cluster limits are exceeded.
Returns true if pass, false if fail.
Definition at line 1054 of file txmempool.cpp.
|
inline |
Definition at line 706 of file txmempool.h.
|
inline |
Definition at line 688 of file txmempool.h.
|
inline |
Definition at line 669 of file txmempool.h.
|
inline |
Definition at line 705 of file txmempool.h.
|
private |
Definition at line 1032 of file txmempool.cpp.
| CTxMemPool::ChangeSet::TxHandle CTxMemPool::ChangeSet::StageAddition | ( | const CTransactionRef & | tx, |
| const CAmount | fee, | ||
| int64_t | time, | ||
| unsigned int | entry_height, | ||
| uint64_t | entry_sequence, | ||
| bool | spends_coinbase, | ||
| int64_t | sigops_cost, | ||
| LockPoints | lp | ||
| ) |
Definition at line 988 of file txmempool.cpp.
| void CTxMemPool::ChangeSet::StageRemoval | ( | CTxMemPool::txiter | it | ) |
Definition at line 1012 of file txmempool.cpp.
|
friend |
Definition at line 721 of file txmempool.h.
|
private |
Definition at line 717 of file txmempool.h.
|
private |
Definition at line 719 of file txmempool.h.
|
private |
Definition at line 715 of file txmempool.h.
|
private |
Definition at line 713 of file txmempool.h.
|
private |
Definition at line 714 of file txmempool.h.
|
private |
Definition at line 718 of file txmempool.h.