CreateChainParams

Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.

Synopsis

Declared in <chainparams.h>

std::unique_ptr<CChainParams const>
CreateChainParams(
    ArgsManager const& args,
    ChainType chain);

Return Value

The consensus and network parameters for the chosen chain.

Parameters

NameDescription
argsThe active argument manager, used to apply chain overrides.
chainThe chain type to build parameters for.