Raven Core
3.0.0
P2P Digital Currency
src
policy
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
13
enum
RBFTransactionState
{
14
RBF_TRANSACTIONSTATE_UNKNOWN
,
15
RBF_TRANSACTIONSTATE_REPLACEABLE_BIP125
,
16
RBF_TRANSACTIONSTATE_FINAL
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.
27
RBFTransactionState
IsRBFOptIn
(
const
CTransaction
&tx,
CTxMemPool
&pool);
28
29
#endif // RAVEN_POLICY_RBF_H
RBFTransactionState
RBFTransactionState
Definition:
rbf.h:13
IsRBFOptIn
RBFTransactionState IsRBFOptIn(const CTransaction &tx, CTxMemPool &pool)
Definition:
rbf.cpp:18
RBF_TRANSACTIONSTATE_REPLACEABLE_BIP125
Definition:
rbf.h:15
txmempool.h
SignalsOptInRBF
bool SignalsOptInRBF(const CTransaction &tx)
Definition:
rbf.cpp:8
CTxMemPool
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition:
txmempool.h:416
RBF_TRANSACTIONSTATE_UNKNOWN
Definition:
rbf.h:14
CTransaction
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition:
transaction.h:270
RBF_TRANSACTIONSTATE_FINAL
Definition:
rbf.h:16
Generated on Mon Jul 29 2019 02:32:19 for Raven Core by
1.8.13