Changeset View
Changeset View
Standalone View
Standalone View
src/config.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | void GlobalConfig::SetExcessUTXOCharge(Amount fee) { | ||||
excessUTXOCharge = fee; | excessUTXOCharge = fee; | ||||
} | } | ||||
Amount GlobalConfig::GetExcessUTXOCharge() const { | Amount GlobalConfig::GetExcessUTXOCharge() const { | ||||
return excessUTXOCharge; | return excessUTXOCharge; | ||||
} | } | ||||
void GlobalConfig::SetMinFeePerKB(CFeeRate fee) { | void GlobalConfig::SetMinFeePerKB(CFeeRate fee) { | ||||
feePerKB = fee; | minFeePerKB = fee; | ||||
} | } | ||||
CFeeRate GlobalConfig::GetMinFeePerKB() const { | CFeeRate GlobalConfig::GetMinFeePerKB() const { | ||||
return feePerKB; | return minFeePerKB; | ||||
} | |||||
bool GlobalConfig::SetMaxFee(Amount fee) { | |||||
if (minFeePerKB.GetFeePerK() >= fee) { | |||||
return false; | |||||
} | |||||
maxFee = fee; | |||||
deadalnix: This is left uninitialized when the config is created. | |||||
return true; | |||||
} | |||||
Amount GlobalConfig::GetMaxFee() const { | |||||
return maxFee; | |||||
} | } | ||||
void GlobalConfig::SetRPCUserAndPassword(std::string userAndPassword) { | void GlobalConfig::SetRPCUserAndPassword(std::string userAndPassword) { | ||||
rpcUserAndPassword = userAndPassword; | rpcUserAndPassword = userAndPassword; | ||||
} | } | ||||
std::string GlobalConfig::GetRPCUserAndPassword() const { | std::string GlobalConfig::GetRPCUserAndPassword() const { | ||||
return rpcUserAndPassword; | return rpcUserAndPassword; | ||||
Show All 9 Lines |
This is left uninitialized when the config is created.