Bitcoin ABC 0.30.7
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
GlobalConfig Class Referencefinal

#include <config.h>

Inheritance diagram for GlobalConfig:
[legend]
Collaboration diagram for GlobalConfig:
[legend]

Public Member Functions

 GlobalConfig ()
 
bool SetMaxBlockSize (uint64_t maxBlockSize) override
 
uint64_t GetMaxBlockSize () const override
 
void SetChainParams (const CChainParams chainParamsIn) override
 
const CChainParamsGetChainParams () const override
 
void SetCashAddrEncoding (bool) override
 
bool UseCashAddrEncoding () const override
 
- Public Member Functions inherited from Config
virtual bool SetMaxBlockSize (uint64_t maxBlockSize)=0
 
virtual uint64_t GetMaxBlockSize () const =0
 
virtual void SetChainParams (const CChainParams chainParamsIn)=0
 
virtual const CChainParamsGetChainParams () const =0
 
virtual void SetCashAddrEncoding (bool)=0
 
virtual bool UseCashAddrEncoding () const =0
 
 Config ()=default
 
 Config (const Config &)=delete
 
Configoperator= (const Config &)=delete
 

Private Attributes

bool useCashAddr
 
uint64_t nMaxBlockSize
 The largest block size this node will accept. More...
 
std::optional< const CChainParamschainParams
 

Detailed Description

Definition at line 33 of file config.h.

Constructor & Destructor Documentation

◆ GlobalConfig()

GlobalConfig::GlobalConfig ( )

Definition at line 9 of file config.cpp.

Member Function Documentation

◆ GetChainParams()

const CChainParams & GlobalConfig::GetChainParams ( ) const
overridevirtual

Implements Config.

Definition at line 31 of file config.cpp.

Here is the call graph for this function:

◆ GetMaxBlockSize()

uint64_t GlobalConfig::GetMaxBlockSize ( ) const
overridevirtual

Implements Config.

Definition at line 23 of file config.cpp.

◆ SetCashAddrEncoding()

void GlobalConfig::SetCashAddrEncoding ( bool  c)
overridevirtual

Implements Config.

Definition at line 44 of file config.cpp.

◆ SetChainParams()

void GlobalConfig::SetChainParams ( const CChainParams  chainParamsIn)
overridevirtual

Implements Config.

Definition at line 27 of file config.cpp.

◆ SetMaxBlockSize()

bool GlobalConfig::SetMaxBlockSize ( uint64_t  maxBlockSize)
overridevirtual

Implements Config.

Definition at line 12 of file config.cpp.

◆ UseCashAddrEncoding()

bool GlobalConfig::UseCashAddrEncoding ( ) const
overridevirtual

Implements Config.

Definition at line 47 of file config.cpp.

Member Data Documentation

◆ chainParams

std::optional<const CChainParams> GlobalConfig::chainParams
private

Definition at line 49 of file config.h.

◆ nMaxBlockSize

uint64_t GlobalConfig::nMaxBlockSize
private

The largest block size this node will accept.

Definition at line 47 of file config.h.

◆ useCashAddr

bool GlobalConfig::useCashAddr
private

Definition at line 44 of file config.h.


The documentation for this class was generated from the following files: