mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-06 10:18:44 -05:00
aaaaad6ac9
-BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
22 lines
733 B
C
22 lines
733 B
C
// Copyright (c) 2016-2019 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_POLICY_RBF_H
|
|
#define BITCOIN_POLICY_RBF_H
|
|
|
|
#include <txmempool.h>
|
|
|
|
enum class RBFTransactionState {
|
|
UNKNOWN,
|
|
REPLACEABLE_BIP125,
|
|
FINAL
|
|
};
|
|
|
|
// Determine whether an in-mempool transaction is signaling opt-in to RBF
|
|
// according to BIP 125
|
|
// This involves checking sequence numbers of the transaction, as well
|
|
// as the sequence numbers of all in-mempool ancestors.
|
|
RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);
|
|
|
|
#endif // BITCOIN_POLICY_RBF_H
|