Bitcoin Core  0.20.99
P2P Digital Currency
rbf.h
Go to the documentation of this file.
1 // Copyright (c) 2016-2019 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,
17  FINAL,
18 };
19 
33 
34 #endif // BITCOIN_POLICY_RBF_H
RBFTransactionState IsRBFOptInEmptyMempool(const CTransaction &tx)
Definition: rbf.cpp:40
Either this tx or a mempool ancestor signals rbf.
Unconfirmed tx that does not signal rbf and is not in the mempool.
RBFTransactionState
The rbf state of unconfirmed transactions.
Definition: rbf.h:11
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
#define EXCLUSIVE_LOCKS_REQUIRED(...)
Definition: threadsafety.h:49
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:488
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:253
RecursiveMutex cs
This mutex needs to be locked when accessing mapTx or other members that are guarded by it...
Definition: txmempool.h:576
Neither this tx nor a mempool ancestor signals rbf.