Bitcoin Core  27.99.0
P2P Digital Currency
Functions
chainparams.h File Reference
#include <kernel/chainparams.h>
#include <memory>
Include dependency graph for chainparams.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::unique_ptr< const CChainParamsCreateChainParams (const ArgsManager &args, const ChainType chain)
 Creates and returns a std::unique_ptr<CChainParams> of the chosen chain. More...
 
const CChainParamsParams ()
 Return the currently selected parameters. More...
 
void SelectParams (const ChainType chain)
 Sets the params returned by Params() to those for the given chain type. More...
 

Function Documentation

◆ CreateChainParams()

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

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

Definition at line 109 of file chainparams.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Params()

const CChainParams& Params ( )

Return the currently selected parameters.

This won't change after app startup, except for unit tests.

Definition at line 104 of file chainparams.cpp.

Here is the call graph for this function:

◆ SelectParams()

void SelectParams ( const ChainType  chain)

Sets the params returned by Params() to those for the given chain type.

Definition at line 130 of file chainparams.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: