Changeset View
Changeset View
Standalone View
Standalone View
src/miner.cpp
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | nMaxGeneratedBlockSize = | ||||
nMaxGeneratedBlockSize)); | nMaxGeneratedBlockSize)); | ||||
return nMaxGeneratedBlockSize; | return nMaxGeneratedBlockSize; | ||||
} | } | ||||
BlockAssembler::BlockAssembler(const Config &_config, | BlockAssembler::BlockAssembler(const Config &_config, | ||||
const CChainParams &_chainparams) | const CChainParams &_chainparams) | ||||
: chainparams(_chainparams), config(&_config) { | : chainparams(_chainparams), config(&_config) { | ||||
if (IsArgSet("-blockmintxfee")) { | blockMinFeeRate = | ||||
CAmount n = 0; | CFeeRate(GetArg("-blockmintxfee", DEFAULT_BLOCK_MIN_TX_FEE)); | ||||
schancel: Why is ParseMoney no longer required? | |||||
sickpigUnsubmitted Done Inline Actionsyou are right I should not have removed. going to readd it. sickpig: you are right I should not have removed. going to readd it. | |||||
ParseMoney(GetArg("-blockmintxfee", ""), n); | |||||
blockMinFeeRate = CFeeRate(n); | |||||
} else { | |||||
blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE); | |||||
} | |||||
LOCK(cs_main); | LOCK(cs_main); | ||||
nMaxGeneratedBlockSize = | nMaxGeneratedBlockSize = | ||||
ComputeMaxGeneratedBlockSize(*config, chainActive.Tip()); | ComputeMaxGeneratedBlockSize(*config, chainActive.Tip()); | ||||
} | } | ||||
void BlockAssembler::resetBlock() { | void BlockAssembler::resetBlock() { | ||||
inBlock.clear(); | inBlock.clear(); | ||||
▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines |
Why is ParseMoney no longer required?