IsRBFOptIn

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.

Synopsis

Declared in <policy/rbf.h>

[[requires_capability(0x7f2e3130ebe0)]]
RBFTransactionState
IsRBFOptIn(
    CTransaction const& tx,
    CTxMemPool const& pool);

Return Value

The rbf state

Parameters

NameDescription
txThe unconfirmed transaction
poolThe mempool, which may contain the tx