 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_POLICY_RBF_H
6 #define BITCOIN_POLICY_RBF_H
75 const std::set<uint256>& direct_conflicts,
98 size_t replacement_vsize,
102 #endif // BITCOIN_POLICY_RBF_H
std::set< txiter, CompareIteratorByHash > setEntries
std::optional< std::string > PaysMoreThanConflicts(const CTxMemPool::setEntries &iters_conflicting, CFeeRate replacement_feerate, const uint256 &txid)
Check that the feerate of the replacement transaction(s) is higher than the feerate of each of the tr...
RBFTransactionState
The rbf state of unconfirmed transactions.
static constexpr uint32_t MAX_BIP125_REPLACEMENT_CANDIDATES
Maximum number of transactions that can be replaced by BIP125 RBF (Rule #5).
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
std::optional< std::string > GetEntriesForConflicts(const CTransaction &tx, CTxMemPool &pool, const CTxMemPool::setEntries &iters_conflicting, CTxMemPool::setEntries &all_conflicts) EXCLUSIVE_LOCKS_REQUIRED(pool.cs)
Get all descendants of iters_conflicting.
Fee rate in satoshis per kilobyte: CAmount / kB.
RBFTransactionState IsRBFOptIn(const CTransaction &tx, const CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs)
Determine whether an unconfirmed transaction is signaling opt-in to RBF according to BIP 125 This inv...
The basic transaction that is broadcasted on the network and contained in blocks.
int64_t CAmount
Amount in satoshis (Can be negative)
std::optional< std::string > HasNoNewUnconfirmed(const CTransaction &tx, const CTxMemPool &pool, const CTxMemPool::setEntries &iters_conflicting) EXCLUSIVE_LOCKS_REQUIRED(pool.cs)
BIP125 Rule #2: "The replacement transaction may only include an unconfirmed input if that input was ...
@ FINAL
Neither this tx nor a mempool ancestor signals rbf.
#define EXCLUSIVE_LOCKS_REQUIRED(...)
RBFTransactionState IsRBFOptInEmptyMempool(const CTransaction &tx)
@ UNKNOWN
Unconfirmed tx that does not signal rbf and is not in the mempool.
std::optional< std::string > EntriesAndTxidsDisjoint(const CTxMemPool::setEntries &ancestors, const std::set< uint256 > &direct_conflicts, const uint256 &txid)
Check the intersection between two sets of transactions (a set of mempool entries and a set of txids)...
@ REPLACEABLE_BIP125
Either this tx or a mempool ancestor signals rbf.
std::optional< std::string > PaysForRBF(CAmount original_fees, CAmount replacement_fees, size_t replacement_vsize, CFeeRate relay_fee, const uint256 &txid)
Enforce BIP125 Rule #3 "The replacement transaction pays an absolute fee of at least the sum paid by ...