Bitcoin Core
29.1.0
P2P Digital Currency
src
test
fuzz
util
mempool.h
Go to the documentation of this file.
1
// Copyright (c) 2022 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
8
#include <
kernel/mempool_entry.h
>
9
#include <validation.h>
10
11
class
CTransaction
;
12
class
CTxMemPool
;
13
class
FuzzedDataProvider
;
14
15
class
DummyChainState
final :
public
Chainstate
16
{
17
public
:
18
void
SetMempool
(
CTxMemPool
* mempool)
19
{
20
m_mempool
= mempool;
21
}
22
};
23
24
[[nodiscard]]
CTxMemPoolEntry
ConsumeTxMemPoolEntry
(
FuzzedDataProvider
& fuzzed_data_provider,
const
CTransaction
& tx) noexcept;
25
26
#endif // BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H
Chainstate::m_mempool
CTxMemPool * m_mempool
Optional mempool that is kept in sync with the chain.
Definition:
validation.h:516
DummyChainState
Definition:
mempool.h:15
ConsumeTxMemPoolEntry
CTxMemPoolEntry ConsumeTxMemPoolEntry(FuzzedDataProvider &fuzzed_data_provider, const CTransaction &tx) noexcept
Definition:
mempool.cpp:17
DummyChainState::SetMempool
void SetMempool(CTxMemPool *mempool)
Definition:
mempool.h:18
CTxMemPoolEntry
CTxMemPoolEntry stores data about the corresponding transaction, as well as data about all in-mempool...
Definition:
mempool_entry.h:65
Chainstate
Chainstate stores and provides an API to update our local knowledge of the current best chain...
Definition:
validation.h:504
FuzzedDataProvider
Definition:
FuzzedDataProvider.h:32
mempool_entry.h
CTxMemPool
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition:
txmempool.h:303
CTransaction
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition:
transaction.h:295
Generated on Wed Sep 3 2025 12:00:00 for Bitcoin Core by
1.8.14