MCPcopy Create free account
hub / github.com/ElementsProject/elements / ConsumeMoney

Function ConsumeMoney

src/test/fuzz/util.cpp:276–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276CAmount ConsumeMoney(FuzzedDataProvider& fuzzed_data_provider, const std::optional<CAmount>& max) noexcept
277{
278 return fuzzed_data_provider.ConsumeIntegralInRange<CAmount>(0, max.value_or(MAX_MONEY));
279}
280
281int64_t ConsumeTime(FuzzedDataProvider& fuzzed_data_provider, const std::optional<int64_t>& min, const std::optional<int64_t>& max) noexcept
282{

Callers 9

FUZZ_TARGET_INITFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
FUZZ_TARGETFunction · 0.85
FinishFunction · 0.85
FUZZ_TARGETFunction · 0.85
ConsumeTxMemPoolEntryFunction · 0.85
FUZZ_TARGETFunction · 0.85
FUZZ_TARGETFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected