Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <test/util/setup_common.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/warnings.h>
#include <noui.h>
#include <policy/fees.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 | |
void | SetupCommonTestArgs (ArgsManager &argsman) |
Register common test args. More... | |
static void | ExitFailure (std::string_view str_err) |
Test setup failure. More... | |
CBlock | getBlock13b8a () |
std::ostream & | operator<< (std::ostream &os, const arith_uint256 &num) |
std::ostream & | operator<< (std::ostream &os, const uint160 &num) |
std::ostream & | operator<< (std::ostream &os, const uint256 &num) |
Variables | |
const std::function< std::string(const char *)> | G_TRANSLATION_FUN = nullptr |
Translate string to current locale using Qt. More... | |
constexpr auto | TEST_DIR_PATH_ELEMENT {"test_common bitcoin"} |
static FastRandomContext | g_rng_temp_path |
Random context to get unique temp data dirs. More... | |
static const bool | g_rng_temp_path_init |
static NetworkSetup | g_networksetup_instance |
|
static |
Test setup failure.
Definition at line 102 of file setup_common.cpp.
CBlock getBlock13b8a | ( | ) |
Definition at line 593 of file setup_common.cpp.
std::ostream & operator<< | ( | std::ostream & | os, |
const arith_uint256 & | num | ||
) |
std::ostream & operator<< | ( | std::ostream & | os, |
const uint160 & | num | ||
) |
std::ostream & operator<< | ( | std::ostream & | os, |
const uint256 & | num | ||
) |
void SetupCommonTestArgs | ( | ArgsManager & | argsman | ) |
Register common test args.
Shared across binaries that rely on the test framework.
Definition at line 95 of file setup_common.cpp.
|
static |
Definition at line 93 of file setup_common.cpp.
|
static |
Random context to get unique temp data dirs.
Separate from m_rng, which can be seeded from a const env var
Definition at line 79 of file setup_common.cpp.
|
static |
Definition at line 80 of file setup_common.cpp.
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 75 of file setup_common.cpp.
|
inlineconstexpr |
Definition at line 77 of file setup_common.cpp.