5#include <chainparams.h>
19#include <boost/test/unit_test.hpp>
69 constexpr unsigned int queued_height{123};
77 unsigned int best_seen_height;
78 estimates_file >> version >> best_seen_height;
const CChainParams & Params()
Return the currently selected parameters.
#define Assert(val)
Identity function.
void SetConfigFilePath(fs::path) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
void ForceSetArg(const std::string &strArg, const std::string &strValue) EXCLUSIVE_LOCKS_REQUIRED(!cs_args)
Non-refcounted RAII wrapper for FILE*.
void DisconnectTestLogger() EXCLUSIVE_LOCKS_REQUIRED(!m_cs)
Only for testing.
TestInit(NodeContext &node)
std::unique_ptr< interfaces::WalletLoader > makeWalletLoader(interfaces::Chain &chain) override
std::unique_ptr< interfaces::Chain > makeChain() override
Interface giving clients (wallet processes, maybe other analysis tools in the future) ability to acce...
Initial interface created when a process is first started, and used to give and get access to other i...
BOOST_FIXTURE_TEST_SUITE(cuckoocache_tests, BasicTestingSetup)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END()
fs::path BlockPolicyFeeEstPath(const ArgsManager &argsman)
BOOST_CHECK_EQUAL(headers.FindFirst("key"), "value")
bool AppInitInterfaces(NodeContext &node)
Initialize node and wallet interface pointers.
bool AppInitMain(NodeContext &node, interfaces::BlockAndHeaderTipInfo *tip_info)
Bitcoin core main initialization.
void InitContext(NodeContext &node)
Initialize node context shutdown and args variables.
BCLog::Logger & LogInstance()
FILE * fopen(const fs::path &p, const char *mode)
std::unique_ptr< WalletLoader > MakeWalletLoader(Chain &chain, ArgsManager &args)
Return implementation of ChainClient interface for a wallet loader.
std::unique_ptr< Chain > MakeChain(node::NodeContext &node)
Return implementation of Chain interface.
BOOST_AUTO_TEST_CASE(init_test)
#define BOOST_CHECK(expr)
Like BasicTestingSetup, but using regtest network instead of mainnet.
NodeContext struct containing references to chain state and connection state.
std::unique_ptr< ValidationSignals > validation_signals
Issues calls about blocks and transactions.
std::unique_ptr< CScheduler > scheduler
interfaces::Init * init
Init interface for initializing current process and connecting to other processes.