Changeset View
Changeset View
Standalone View
Standalone View
src/config.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
void GlobalConfig::SetMinFeePerKB(CFeeRate fee) { | void GlobalConfig::SetMinFeePerKB(CFeeRate fee) { | ||||
minFeePerKB = fee; | minFeePerKB = fee; | ||||
} | } | ||||
CFeeRate GlobalConfig::GetMinFeePerKB() const { | CFeeRate GlobalConfig::GetMinFeePerKB() const { | ||||
return minFeePerKB; | return minFeePerKB; | ||||
} | } | ||||
bool GlobalConfig::SetMaxFee(Amount fee) { | bool GlobalConfig::SetMaxFeePerKB(CFeeRate fee) { | ||||
if (minFeePerKB.GetFeePerK() >= fee) { | if (minFeePerKB >= fee) { | ||||
return false; | return false; | ||||
} | } | ||||
maxFee = fee; | maxFeePerKB = fee; | ||||
return true; | return true; | ||||
} | } | ||||
Amount GlobalConfig::GetMaxFee() const { | CFeeRate GlobalConfig::GetMaxFeePerKB() const { | ||||
return maxFee; | return maxFeePerKB; | ||||
} | } | ||||
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 |