Bitcoin Core
21.99.0
P2P Digital Currency
src
policy
rbf.h
Go to the documentation of this file.
1
// Copyright (c) 2016-2020 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_POLICY_RBF_H
6
#define BITCOIN_POLICY_RBF_H
7
8
#include <
txmempool.h
>
9
11
enum class
RBFTransactionState
{
13
UNKNOWN
,
15
REPLACEABLE_BIP125
,
17
FINAL
,
18
};
19
31
RBFTransactionState
IsRBFOptIn
(
const
CTransaction
& tx,
const
CTxMemPool
& pool)
EXCLUSIVE_LOCKS_REQUIRED
(pool.cs);
32
RBFTransactionState
IsRBFOptInEmptyMempool
(
const
CTransaction
& tx);
33
34
#endif // BITCOIN_POLICY_RBF_H
RBFTransactionState
RBFTransactionState
The rbf state of unconfirmed transactions.
Definition:
rbf.h:11
CTxMemPool
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition:
txmempool.h:477
IsRBFOptIn
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...
Definition:
rbf.cpp:8
CTransaction
The basic transaction that is broadcasted on the network and contained in blocks.
Definition:
transaction.h:259
txmempool.h
RBFTransactionState::FINAL
@ FINAL
Neither this tx nor a mempool ancestor signals rbf.
EXCLUSIVE_LOCKS_REQUIRED
#define EXCLUSIVE_LOCKS_REQUIRED(...)
Definition:
threadsafety.h:49
IsRBFOptInEmptyMempool
RBFTransactionState IsRBFOptInEmptyMempool(const CTransaction &tx)
Definition:
rbf.cpp:40
RBFTransactionState::UNKNOWN
@ UNKNOWN
Unconfirmed tx that does not signal rbf and is not in the mempool.
RBFTransactionState::REPLACEABLE_BIP125
@ REPLACEABLE_BIP125
Either this tx or a mempool ancestor signals rbf.
Generated on Wed Apr 21 2021 20:03:46 for Bitcoin Core by
1.8.17