26 static const auto testing_setup = MakeNoLogFileContext<>();
27 g_setup = testing_setup.get();
34 std::optional<CMutableTransaction> mtx = ConsumeDeserializable<CMutableTransaction>(fuzzed_data_provider);
43 const std::optional<CMutableTransaction> another_mtx = ConsumeDeserializable<CMutableTransaction>(fuzzed_data_provider);
48 if (fuzzed_data_provider.ConsumeBool() && !mtx->vin.empty()) {
49 mtx->
vin[0].prevout =
COutPoint{another_tx.GetHash(), 0};
55 if (fuzzed_data_provider.ConsumeBool()) {
RBFTransactionState IsRBFOptIn(const CTransaction &tx, const CTxMemPool &pool)
Determine whether an unconfirmed transaction is signaling opt-in to RBF according to BIP 125 This inv...
CTxMemPoolEntry ConsumeTxMemPoolEntry(FuzzedDataProvider &fuzzed_data_provider, const CTransaction &tx) noexcept
CTxMemPool::Options MemPoolOptionsForTest(const NodeContext &node)
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
const std::vector< CTxIn > vin
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.
An outpoint - a combination of a transaction hash and an index n into its vout.
int64_t ConsumeTime(FuzzedDataProvider &fuzzed_data_provider, const std::optional< int64_t > &min, const std::optional< int64_t > &max) noexcept
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
RecursiveMutex cs_main
Mutex to guard access to validation specific variables, such as reading or changing the chainstate...
The basic transaction that is broadcasted on the network and contained in blocks. ...
FUZZ_TARGET_INIT(rbf, initialize_rbf)