Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
mempool.h
Go to the documentation of this file.
1// Copyright (c) 2022-present 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_TEST_FUZZ_UTIL_MEMPOOL_H
6#define BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H
7
9#include <validation.h>
10
11class CTransaction;
12class CTxMemPool;
14
15class DummyChainState final : public Chainstate
16{
17public:
18 void SetMempool(CTxMemPool* mempool)
19 {
20 m_mempool = mempool;
21 }
22};
23
24[[nodiscard]] CTxMemPoolEntry ConsumeTxMemPoolEntry(FuzzedDataProvider& fuzzed_data_provider, const CTransaction& tx, uint32_t max_height=std::numeric_limits<uint32_t>::max()) noexcept;
25
26#endif // BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H
The basic transaction that is broadcasted on the network and contained in blocks.
CTxMemPoolEntry stores data about the corresponding transaction, as well as data about all in-mempool...
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition txmempool.h:187
CTxMemPool * m_mempool
Definition validation.h:562
Chainstate(CTxMemPool *mempool, node::BlockManager &blockman, ChainstateManager &chainman, std::optional< uint256 > from_snapshot_blockhash=std::nullopt)
void SetMempool(CTxMemPool *mempool)
Definition mempool.h:18
CTxMemPoolEntry ConsumeTxMemPoolEntry(FuzzedDataProvider &fuzzed_data_provider, const CTransaction &tx, uint32_t max_height=std::numeric_limits< uint32_t >::max()) noexcept
Definition mempool.cpp:17