![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
#include <coins.h>#include <crypto/sha256.h>#include <kernel/chainstatemanager_opts.h>#include <primitives/block.h>#include <primitives/transaction.h>#include <test/fuzz/FuzzedDataProvider.h>#include <test/fuzz/fuzz.h>#include <test/fuzz/util.h>#include <test/util/setup_common.h>#include <util/threadpool.h>#include <cassert>#include <cstdint>#include <memory>#include <optional>#include <vector>Go to the source code of this file.
Functions | |
| StartPoolIfNeeded () | |
| sim_caches[0] | Wipe () |
| FuzzedDataProvider | provider (buffer.data(), buffer.size()) |
| LIMITED_WHILE (provider.remaining_bytes(), 10000) | |
| for (const auto &cache :caches) | |
| for (unsigned sim_idx=1;sim_idx<=caches.size();++sim_idx) | |
| for (uint32_t outpointidx=0;outpointidx< NUM_OUTPOINTS;++outpointidx) | |
Variables | |
| static const PrecomputedData | data |
| Precomputed COutPoint and CCoins values. More... | |
| CoinsViewBottom | bottom |
| Dummy coinsview instance (base of the hierarchy). More... | |
| std::vector< std::unique_ptr< CCoinsViewCache > > | caches |
| Real CCoinsViewCache objects. More... | |
| std::unique_ptr< OverlayFetchScope > | overlay_fetch_scope |
| Long-lived StartFetching guard (nullptr unless corresponding level is a CoinsViewOverlay). More... | |
| CacheLevel | sim_caches [MAX_CACHES+1] |
| Simulated cache data (sim_caches[0] matches bottom, sim_caches[i+1] matches caches[i]). More... | |
| uint32_t | current_height = 1U |
| Current height in the simulation. More... | |
| auto | lookup |
| Helper lookup function in the simulated cache stack. More... | |
| auto | flush |
| Flush changes in top cache to the one below. More... | |
| for | ( | const auto &cache :caches | ) |
| for | ( | ) |
| for | ( | unsigned | sim_idx = 1; sim_idx <= caches.size(); ++sim_idx | ) |
| LIMITED_WHILE | ( | provider. | remaining_bytes(), |
| 10000 | |||
| ) |
Definition at line 271 of file coinscache_sim.cpp.
| FuzzedDataProvider provider | ( | buffer. | data(), |
| buffer. | size() | ||
| ) |
| StartPoolIfNeeded | ( | ) |
| sim_caches[0] Wipe | ( | ) |
| CoinsViewBottom bottom |
Dummy coinsview instance (base of the hierarchy).
Definition at line 226 of file coinscache_sim.cpp.
| std::vector<std::unique_ptr<CCoinsViewCache> > caches |
Real CCoinsViewCache objects.
Definition at line 228 of file coinscache_sim.cpp.
| uint32_t current_height = 1U |
Current height in the simulation.
Definition at line 234 of file coinscache_sim.cpp.
|
static |
Precomputed COutPoint and CCoins values.
Definition at line 223 of file coinscache_sim.cpp.
| auto flush |
Flush changes in top cache to the one below.
Definition at line 256 of file coinscache_sim.cpp.
| auto lookup |
Helper lookup function in the simulated cache stack.
Definition at line 240 of file coinscache_sim.cpp.
| std::unique_ptr<OverlayFetchScope> overlay_fetch_scope |
Long-lived StartFetching guard (nullptr unless corresponding level is a CoinsViewOverlay).
Definition at line 230 of file coinscache_sim.cpp.
| CacheLevel sim_caches[MAX_CACHES+1] |
Simulated cache data (sim_caches[0] matches bottom, sim_caches[i+1] matches caches[i]).
Definition at line 232 of file coinscache_sim.cpp.