Changeset View
Changeset View
Standalone View
Standalone View
src/config.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
DummyConfig::DummyConfig(std::string net) | DummyConfig::DummyConfig(std::string net) | ||||
: chainParams(CreateChainParams(net)) {} | : chainParams(CreateChainParams(net)) {} | ||||
void DummyConfig::SetChainParams(std::string net) { | void DummyConfig::SetChainParams(std::string net) { | ||||
chainParams = CreateChainParams(net); | chainParams = CreateChainParams(net); | ||||
} | } | ||||
void GlobalConfig::SetExcessUTXOCharge(Amount fee) { | |||||
excessUTXOCharge = fee; | |||||
} | |||||
Amount GlobalConfig::GetExcessUTXOCharge() const { | |||||
return excessUTXOCharge; | |||||
} | |||||
void GlobalConfig::SetMinFeePerKB(CFeeRate fee) { | void GlobalConfig::SetMinFeePerKB(CFeeRate fee) { | ||||
feePerKB = fee; | feePerKB = fee; | ||||
} | } | ||||
CFeeRate GlobalConfig::GetMinFeePerKB() const { | CFeeRate GlobalConfig::GetMinFeePerKB() const { | ||||
return feePerKB; | return feePerKB; | ||||
} | } |