Bitcoin
src
policy
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
,
12
REPLACEABLE_BIP125
,
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.
20
RBFTransactionState
IsRBFOptIn
(
const
CTransaction
& tx,
const
CTxMemPool
& pool)
EXCLUSIVE_LOCKS_REQUIRED
(pool.cs);
21
22
#endif // BITCOIN_POLICY_RBF_H
EXCLUSIVE_LOCKS_REQUIRED
#define EXCLUSIVE_LOCKS_REQUIRED(...)
Definition:
thread_annotations.h:13
RBFTransactionState::REPLACEABLE_BIP125
RBFTransactionState::UNKNOWN
RBFTransactionState
RBFTransactionState
Definition:
rbf.h:10
IsRBFOptIn
RBFTransactionState IsRBFOptIn(const CTransaction &tx, const CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs)
Definition:
rbf.cpp:8
txmempool.h
CTransaction
Definition:
transaction.h:270
CTxMemPool
Definition:
txmempool.h:443
RBFTransactionState::FINAL
Generated by
1.8.15