MCPcopy Create free account
hub / github.com/ElementsProject/elements / initialize_chain

Function initialize_chain

src/test/fuzz/utxo_snapshot.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21const std::vector<std::shared_ptr<CBlock>>* g_chain;
22
23void initialize_chain()
24{
25 const auto params{CreateChainParams(ArgsManager{}, CBaseChainParams::REGTEST)};
26 static const auto chain{CreateBlockChain(2 * COINBASE_MATURITY, *params)};
27 g_chain = &chain;
28}
29
30FUZZ_TARGET_INIT(utxo_snapshot, initialize_chain)
31{

Callers

nothing calls this directly

Calls 2

CreateChainParamsFunction · 0.85
CreateBlockChainFunction · 0.85

Tested by

no test coverage detected