Bitcoin Core  0.19.99
P2P Digital Currency
rbf.h
Go to the documentation of this file.
1 // Copyright (c) 2016-2018 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 
10 enum class RBFTransactionState {
11  UNKNOWN,
13  FINAL
14 };
15 
16 // Determine whether an in-mempool transaction is signaling opt-in to RBF
17 // according to BIP 125
18 // This involves checking sequence numbers of the transaction, as well
19 // as the sequence numbers of all in-mempool ancestors.
21 
22 #endif // BITCOIN_POLICY_RBF_H
RBFTransactionState
Definition: rbf.h:10
RBFTransactionState IsRBFOptIn(const CTransaction &tx, const CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs)
Definition: rbf.cpp:8
#define EXCLUSIVE_LOCKS_REQUIRED(...)
Definition: threadsafety.h:51
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:445
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:270
RecursiveMutex cs
This mutex needs to be locked when accessing mapTx or other members that are guarded by it...
Definition: txmempool.h:520