Bitcoin Core  24.99.0
P2P Digital Currency
Functions
util.cpp File Reference
#include <consensus/amount.h>
#include <net_processing.h>
#include <netmessagemaker.h>
#include <pubkey.h>
#include <test/fuzz/util.h>
#include <test/util/script.h>
#include <util/overflow.h>
#include <util/rbf.h>
#include <util/time.h>
#include <version.h>
#include <memory>
Include dependency graph for util.cpp:

Go to the source code of this file.

Functions

void FillNode (FuzzedDataProvider &fuzzed_data_provider, ConnmanTestMsg &connman, CNode &node) 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 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
 
CAddress ConsumeAddress (FuzzedDataProvider &fuzzed_data_provider) noexcept
 

Function Documentation

◆ ConsumeAddress()

CAddress ConsumeAddress ( FuzzedDataProvider fuzzed_data_provider)
noexcept

Definition at line 529 of file util.cpp.

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

◆ ConsumeMoney()

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

Definition at line 302 of file util.cpp.

Here is the caller graph for this function:

◆ ConsumeNetAddr()

CNetAddr ConsumeNetAddr ( FuzzedDataProvider fuzzed_data_provider)
noexcept

Definition at line 507 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 bool  maybe_p2wsh 
)
noexcept

Definition at line 366 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 356 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 432 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 307 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 315 of file util.cpp.

Here is the call graph for this function:

◆ ConsumeTxDestination()

CTxDestination ConsumeTxDestination ( FuzzedDataProvider fuzzed_data_provider)
noexcept

Definition at line 443 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 481 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 496 of file util.cpp.

Here is the call graph for this function:

◆ FillNode()

void FillNode ( FuzzedDataProvider fuzzed_data_provider,
ConnmanTestMsg connman,
CNode node 
)
noexcept

Definition at line 292 of file util.cpp.

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