![]() |
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, 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 620 of file txmempool.h.
Definition at line 634 of file txmempool.h.
|
inlineexplicit |
Definition at line 622 of file txmempool.h.
|
inline |
|
delete |
| void CTxMemPool::ChangeSet::Apply | ( | ) |
Definition at line 1037 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 994 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 1072 of file txmempool.cpp.
|
inline |
Definition at line 677 of file txmempool.h.
|
inline |
Definition at line 659 of file txmempool.h.
|
inline |
Definition at line 640 of file txmempool.h.
|
inline |
Definition at line 676 of file txmempool.h.
|
private |
Definition at line 1050 of file txmempool.cpp.
| CTxMemPool::ChangeSet::TxHandle CTxMemPool::ChangeSet::StageAddition | ( | const CTransactionRef & | tx, |
| 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 1005 of file txmempool.cpp.
| void CTxMemPool::ChangeSet::StageRemoval | ( | CTxMemPool::txiter | it | ) |
Definition at line 1030 of file txmempool.cpp.
|
friend |
Definition at line 692 of file txmempool.h.
|
private |
Definition at line 688 of file txmempool.h.
|
private |
Definition at line 690 of file txmempool.h.
|
private |
Definition at line 686 of file txmempool.h.
|
private |
Definition at line 684 of file txmempool.h.
|
private |
Definition at line 685 of file txmempool.h.
|
private |
Definition at line 689 of file txmempool.h.