![]() |
Bitcoin Core
24.99.0
P2P Digital Currency
|
#include <test/util/setup_common.h>
#include <kernel/validation_cache_sizes.h>
#include <addrman.h>
#include <banman.h>
#include <chainparams.h>
#include <common/url.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 <net.h>
#include <net_processing.h>
#include <node/blockstorage.h>
#include <node/chainstate.h>
#include <node/context.h>
#include <node/mempool_args.h>
#include <node/miner.h>
#include <node/validation_cache_args.h>
#include <noui.h>
#include <policy/fees.h>
#include <policy/fees_args.h>
#include <pow.h>
#include <rpc/blockchain.h>
#include <rpc/register.h>
#include <rpc/server.h>
#include <scheduler.h>
#include <script/sigcache.h>
#include <shutdown.h>
#include <streams.h>
#include <test/util/txmempool.h>
#include <timedata.h>
#include <txdb.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.
Functions | |
static uint256 | GetUintFromEnv (const std::string &env_name) |
Return the unsigned from the environment var if available, otherwise 0. More... | |
void | Seed (FastRandomContext &ctx) |
Seed the given random ctx or use the seed passed in via an environment var. More... | |
std::ostream & | operator<< (std::ostream &os, const uint256 &num) |
CBlock | getBlock13b8a () |
Variables | |
const std::function< std::string(const char *)> | G_TRANSLATION_FUN = nullptr |
Translate string to current locale using Qt. More... | |
UrlDecodeFn *const | URL_DECODE = nullptr |
FastRandomContext | g_insecure_rand_ctx |
This global and the helpers that use it are not thread-safe. More... | |
static FastRandomContext | g_insecure_rand_ctx_temp_path |
Random context to get unique temp data dirs. More... | |
CBlock getBlock13b8a | ( | ) |
Definition at line 434 of file setup_common.cpp.
|
static |
Return the unsigned from the environment var if available, otherwise 0.
Definition at line 76 of file setup_common.cpp.
std::ostream& operator<< | ( | std::ostream & | os, |
const uint256 & | num | ||
) |
void Seed | ( | FastRandomContext & | ctx | ) |
Seed the given random ctx or use the seed passed in via an environment var.
Definition at line 83 of file setup_common.cpp.
FastRandomContext g_insecure_rand_ctx |
This global and the helpers that use it are not thread-safe.
If thread-safety is needed, the global could be made thread_local (given that thread_local is supported on all architectures we support) or a per-thread instance could be used in the multi-threaded test.
Definition at line 71 of file setup_common.cpp.
|
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 73 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 68 of file setup_common.cpp.
UrlDecodeFn* const URL_DECODE = nullptr |
Definition at line 69 of file setup_common.cpp.