Bitcoin Core  24.1.0
P2P Digital Currency
mempool_utils.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_MEMPOOL_UTILS_H
6 #define BITCOIN_TEST_FUZZ_MEMPOOL_UTILS_H
7 
8 #include <validation.h>
9 
10 class DummyChainState final : public Chainstate
11 {
12 public:
13  void SetMempool(CTxMemPool* mempool)
14  {
15  m_mempool = mempool;
16  }
17 };
18 
19 #endif // BITCOIN_TEST_FUZZ_MEMPOOL_UTILS_H
CTxMemPool * m_mempool
Optional mempool that is kept in sync with the chain.
Definition: validation.h:468
void SetMempool(CTxMemPool *mempool)
Definition: mempool_utils.h:13
Chainstate stores and provides an API to update our local knowledge of the current best chain...
Definition: validation.h:437
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:431