1 // Copyright (c) 2016-2019 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_UTIL_RBF_H 6 #define BITCOIN_UTIL_RBF_H 7 8 #include <cstdint> 9 10 class CTransaction; 11 12 static const uint32_t MAX_BIP125_RBF_SEQUENCE = 0xfffffffd; 13 14 // Check whether the sequence numbers on this transaction are signaling 15 // opt-in to replace-by-fee, according to BIP 125 16 bool SignalsOptInRBF(const CTransaction &tx); 17 18 #endif // BITCOIN_UTIL_RBF_H 19