Raven Core  3.0.0
P2P Digital Currency
rbf.h
Go to the documentation of this file.
1 // Copyright (c) 2016 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_POLICY_RBF_H
7 #define RAVEN_POLICY_RBF_H
8 
9 #include "txmempool.h"
10 
11 static const uint32_t MAX_BIP125_RBF_SEQUENCE = 0xfffffffd;
12 
17 };
18 
19 // Check whether the sequence numbers on this transaction are signaling
20 // opt-in to replace-by-fee, according to BIP 125
21 bool SignalsOptInRBF(const CTransaction &tx);
22 
23 // Determine whether an in-mempool transaction is signaling opt-in to RBF
24 // according to BIP 125
25 // This involves checking sequence numbers of the transaction, as well
26 // as the sequence numbers of all in-mempool ancestors.
28 
29 #endif // RAVEN_POLICY_RBF_H
RBFTransactionState
Definition: rbf.h:13
RBFTransactionState IsRBFOptIn(const CTransaction &tx, CTxMemPool &pool)
Definition: rbf.cpp:18
bool SignalsOptInRBF(const CTransaction &tx)
Definition: rbf.cpp:8
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:416
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:270