/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/test/fuzz/util/mempool.h
26 строк
779 B
MarcoFalke
fuzz: Avoid integer sanitizer warnings in policy_estimator target
27 мар 2025, 13:54
27 мар 2025, 13:54
fa6a007
Код
Авторство
О чём код?
// Copyright (c) 2022-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H #define BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H #include <kernel/mempool_entry.h> #include <validation.h> class CTransaction; class CTxMemPool; class FuzzedDataProvider; class DummyChainState final : public Chainstate { public: void SetMempool(CTxMemPool* mempool) { m_mempool = mempool; } }; [[nodiscard]] CTxMemPoolEntry ConsumeTxMemPoolEntry(FuzzedDataProvider& fuzzed_data_provider, const CTransaction& tx, uint32_t max_height=std::numeric_limits<uint32_t>::max()) noexcept; #endif // BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H