Bitcoin Core  0.20.99
P2P Digital Currency
Enumerations | Functions
rbf.h File Reference
#include <txmempool.h>
Include dependency graph for rbf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  RBFTransactionState { RBFTransactionState::UNKNOWN, RBFTransactionState::REPLACEABLE_BIP125, RBFTransactionState::FINAL }
 The rbf state of unconfirmed transactions. More...
 

Functions

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 involves checking sequence numbers of the transaction, as well as the sequence numbers of all in-mempool ancestors. More...
 
RBFTransactionState IsRBFOptInEmptyMempool (const CTransaction &tx)
 

Enumeration Type Documentation

◆ RBFTransactionState

enum RBFTransactionState
strong

The rbf state of unconfirmed transactions.

Enumerator
UNKNOWN 

Unconfirmed tx that does not signal rbf and is not in the mempool.

REPLACEABLE_BIP125 

Either this tx or a mempool ancestor signals rbf.

FINAL 

Neither this tx nor a mempool ancestor signals rbf.

Definition at line 11 of file rbf.h.

Function Documentation

◆ IsRBFOptIn()

RBFTransactionState IsRBFOptIn ( const CTransaction tx,
const CTxMemPool pool 
)

Determine whether an unconfirmed transaction is signaling opt-in to RBF according to BIP 125 This involves checking sequence numbers of the transaction, as well as the sequence numbers of all in-mempool ancestors.

Parameters
txThe unconfirmed transaction
poolThe mempool, which may contain the tx
Returns
The rbf state

Definition at line 8 of file rbf.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsRBFOptInEmptyMempool()

RBFTransactionState IsRBFOptInEmptyMempool ( const CTransaction tx)

Definition at line 40 of file rbf.cpp.

Here is the call graph for this function: