MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / btck_context_options_set_chainparams

Function btck_context_options_set_chainparams

src/kernel/bitcoinkernel.cpp:856–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854}
855
856void btck_context_options_set_chainparams(btck_ContextOptions* options, const btck_ChainParameters* chain_parameters)
857{
858 // Copy the chainparams, so the caller can free it again
859 LOCK(btck_ContextOptions::get(options).m_mutex);
860 btck_ContextOptions::get(options).m_chainparams = std::make_unique<const CChainParams>(btck_ChainParameters::get(chain_parameters));
861}
862
863void btck_context_options_set_notifications(btck_ContextOptions* options, btck_NotificationInterfaceCallbacks notifications)
864{

Callers 1

SetChainParamsMethod · 0.85

Calls 1

getFunction · 0.85

Tested by

no test coverage detected