Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Functions | Variables
setup_common.cpp File Reference
#include <test/util/setup_common.h>
#include <kernel/validation_cache_sizes.h>
#include <addrman.h>
#include <banman.h>
#include <chainparams.h>
#include <common/system.h>
#include <consensus/consensus.h>
#include <consensus/params.h>
#include <consensus/validation.h>
#include <crypto/sha256.h>
#include <init.h>
#include <init/common.h>
#include <interfaces/chain.h>
#include <kernel/mempool_entry.h>
#include <logging.h>
#include <net.h>
#include <net_processing.h>
#include <node/blockstorage.h>
#include <node/chainstate.h>
#include <node/context.h>
#include <node/kernel_notifications.h>
#include <node/mempool_args.h>
#include <node/miner.h>
#include <node/peerman_args.h>
#include <node/validation_cache_args.h>
#include <noui.h>
#include <policy/fees.h>
#include <policy/fees_args.h>
#include <pow.h>
#include <random.h>
#include <rpc/blockchain.h>
#include <rpc/register.h>
#include <rpc/server.h>
#include <scheduler.h>
#include <script/sigcache.h>
#include <streams.h>
#include <test/util/txmempool.h>
#include <txdb.h>
#include <util/chaintype.h>
#include <util/check.h>
#include <util/fs_helpers.h>
#include <util/rbf.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <util/thread.h>
#include <util/threadnames.h>
#include <util/time.h>
#include <util/translation.h>
#include <util/vector.h>
#include <validation.h>
#include <validationinterface.h>
#include <walletinitinterface.h>
#include <algorithm>
#include <functional>
#include <stdexcept>

Go to the source code of this file.

Classes

struct  NetworkSetup
 

Functions

std::ostream & operator<< (std::ostream &os, const uint256 &num)
 
static void SetupUnitTestArgs (ArgsManager &argsman)
 Register test-only arguments. More...
 
static void ExitFailure (std::string_view str_err)
 Test setup failure. More...
 
CBlock getBlock13b8a ()
 

Variables

const std::function< std::string(const char *)> G_TRANSLATION_FUN = nullptr
 Translate string to current locale using Qt. More...
 
static FastRandomContext g_insecure_rand_ctx_temp_path
 Random context to get unique temp data dirs. More...
 
static NetworkSetup g_networksetup_instance
 

Function Documentation

◆ ExitFailure()

static void ExitFailure ( std::string_view  str_err)
static

Test setup failure.

Definition at line 110 of file setup_common.cpp.

Here is the caller graph for this function:

◆ getBlock13b8a()

CBlock getBlock13b8a ( )
Returns
a real block (0000000000013b8ab2cd513b0261a14096412195a72a0c4827d229dcc7e0f7af) with 9 txs.

Definition at line 579 of file setup_common.cpp.

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

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const uint256 num 
)

Definition at line 87 of file setup_common.cpp.

Here is the call graph for this function:

◆ SetupUnitTestArgs()

static void SetupUnitTestArgs ( ArgsManager argsman)
static

Register test-only arguments.

Definition at line 103 of file setup_common.cpp.

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

Variable Documentation

◆ g_insecure_rand_ctx_temp_path

FastRandomContext g_insecure_rand_ctx_temp_path
static

Random context to get unique temp data dirs.

Separate from g_insecure_rand_ctx, which can be seeded from a const env var

Definition at line 85 of file setup_common.cpp.

◆ g_networksetup_instance

NetworkSetup g_networksetup_instance
static

Definition at line 100 of file setup_common.cpp.

◆ G_TRANSLATION_FUN

const std::function<std::string(const char*)> G_TRANSLATION_FUN = nullptr

Translate string to current locale using Qt.

Translate a message to the native language of the user.

Definition at line 82 of file setup_common.cpp.