Bitcoin Core  22.99.0
P2P Digital Currency
Functions
util.cpp File Reference
#include <pubkey.h>
#include <test/fuzz/util.h>
#include <test/util/script.h>
#include <util/rbf.h>
#include <util/time.h>
#include <version.h>
Include dependency graph for util.cpp:

Go to the source code of this file.

Functions

void FillNode (FuzzedDataProvider &fuzzed_data_provider, CNode &node, bool init_version) noexcept
 
CAmount ConsumeMoney (FuzzedDataProvider &fuzzed_data_provider, const std::optional< CAmount > &max) noexcept
 
int64_t ConsumeTime (FuzzedDataProvider &fuzzed_data_provider, const std::optional< int64_t > &min, const std::optional< int64_t > &max) noexcept
 
CMutableTransaction ConsumeTransaction (FuzzedDataProvider &fuzzed_data_provider, const std::optional< std::vector< uint256 >> &prevout_txids, const int max_num_in, const int max_num_out) noexcept
 
CScriptWitness ConsumeScriptWitness (FuzzedDataProvider &fuzzed_data_provider, const size_t max_stack_elem_size) noexcept
 
CScript ConsumeScript (FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length, const bool maybe_p2wsh) noexcept
 
uint32_t ConsumeSequence (FuzzedDataProvider &fuzzed_data_provider) noexcept
 
CTxDestination ConsumeTxDestination (FuzzedDataProvider &fuzzed_data_provider) noexcept
 
CTxMemPoolEntry ConsumeTxMemPoolEntry (FuzzedDataProvider &fuzzed_data_provider, const CTransaction &tx) noexcept
 
bool ContainsSpentInput (const CTransaction &tx, const CCoinsViewCache &inputs) noexcept
 
CNetAddr ConsumeNetAddr (FuzzedDataProvider &fuzzed_data_provider) noexcept
 

Function Documentation

◆ ConsumeMoney()

CAmount ConsumeMoney ( FuzzedDataProvider fuzzed_data_provider,
const std::optional< CAmount > &  max 
)
noexcept

Definition at line 221 of file util.cpp.

Here is the caller graph for this function:

◆ ConsumeNetAddr()

CNetAddr ConsumeNetAddr ( FuzzedDataProvider fuzzed_data_provider)
noexcept

Definition at line 373 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConsumeScript()

CScript ConsumeScript ( FuzzedDataProvider fuzzed_data_provider,
const std::optional< size_t > &  max_length,
const bool  maybe_p2wsh 
)
noexcept

Definition at line 285 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConsumeScriptWitness()

CScriptWitness ConsumeScriptWitness ( FuzzedDataProvider fuzzed_data_provider,
const size_t  max_stack_elem_size 
)
noexcept

Definition at line 275 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConsumeSequence()

uint32_t ConsumeSequence ( FuzzedDataProvider fuzzed_data_provider)
noexcept

Definition at line 298 of file util.cpp.

Here is the caller graph for this function:

◆ ConsumeTime()

int64_t ConsumeTime ( FuzzedDataProvider fuzzed_data_provider,
const std::optional< int64_t > &  min,
const std::optional< int64_t > &  max 
)
noexcept

Definition at line 226 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConsumeTransaction()

CMutableTransaction ConsumeTransaction ( FuzzedDataProvider fuzzed_data_provider,
const std::optional< std::vector< uint256 >> &  prevout_txids,
const int  max_num_in,
const int  max_num_out 
)
noexcept

Definition at line 234 of file util.cpp.

Here is the call graph for this function:

◆ ConsumeTxDestination()

CTxDestination ConsumeTxDestination ( FuzzedDataProvider fuzzed_data_provider)
noexcept

Definition at line 309 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConsumeTxMemPoolEntry()

CTxMemPoolEntry ConsumeTxMemPoolEntry ( FuzzedDataProvider fuzzed_data_provider,
const CTransaction tx 
)
noexcept

Definition at line 347 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ContainsSpentInput()

bool ContainsSpentInput ( const CTransaction tx,
const CCoinsViewCache inputs 
)
noexcept

Definition at line 362 of file util.cpp.

Here is the call graph for this function:

◆ FillNode()

void FillNode ( FuzzedDataProvider fuzzed_data_provider,
CNode node,
bool  init_version 
)
noexcept

Definition at line 202 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: