Fabcoin Core
0.16.2
P2P Digital Currency
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
src
policy
rbf.h
Go to the documentation of this file.
1
// Copyright (c)2016-2017 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 FABCOIN_POLICY_RBF_H
6
#define FABCOIN_POLICY_RBF_H
7
8
#include <
txmempool.h
>
9
10
static
const
uint32_t MAX_BIP125_RBF_SEQUENCE = 0xfffffffd;
11
12
enum
RBFTransactionState
{
13
RBF_TRANSACTIONSTATE_UNKNOWN
,
14
RBF_TRANSACTIONSTATE_REPLACEABLE_BIP125
,
15
RBF_TRANSACTIONSTATE_FINAL
16
};
17
18
// Check whether the sequence numbers on this transaction are signaling
19
// opt-in to replace-by-fee, according to BIP 125
20
bool
SignalsOptInRBF
(
const
CTransaction
&tx);
21
22
// Determine whether an in-mempool transaction is signaling opt-in to RBF
23
// according to BIP 125
24
// This involves checking sequence numbers of the transaction, as well
25
// as the sequence numbers of all in-mempool ancestors.
26
RBFTransactionState
IsRBFOptIn
(
const
CTransaction
&tx,
CTxMemPool
&pool);
27
28
#endif // FABCOIN_POLICY_RBF_H
RBFTransactionState
RBFTransactionState
Definition:
rbf.h:12
IsRBFOptIn
RBFTransactionState IsRBFOptIn(const CTransaction &tx, CTxMemPool &pool)
Definition:
rbf.cpp:17
RBF_TRANSACTIONSTATE_REPLACEABLE_BIP125
Definition:
rbf.h:14
txmempool.h
SignalsOptInRBF
bool SignalsOptInRBF(const CTransaction &tx)
Definition:
rbf.cpp:7
CTxMemPool
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition:
txmempool.h:465
RBF_TRANSACTIONSTATE_UNKNOWN
Definition:
rbf.h:13
CTransaction
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition:
transaction.h:275
RBF_TRANSACTIONSTATE_FINAL
Definition:
rbf.h:15
Generated on Mon Oct 22 2018 15:15:35 for Fabcoin Core by
1.8.11