Changeset View
Changeset View
Standalone View
Standalone View
src/miner.cpp
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | static BlockAssembler::Options DefaultOptions(const Config &config) { | ||||
options.nExcessiveBlockSize = config.GetMaxBlockSize(); | options.nExcessiveBlockSize = config.GetMaxBlockSize(); | ||||
if (gArgs.IsArgSet("-blockmaxsize")) { | if (gArgs.IsArgSet("-blockmaxsize")) { | ||||
options.nMaxGeneratedBlockSize = | options.nMaxGeneratedBlockSize = | ||||
gArgs.GetArg("-blockmaxsize", DEFAULT_MAX_GENERATED_BLOCK_SIZE); | gArgs.GetArg("-blockmaxsize", DEFAULT_MAX_GENERATED_BLOCK_SIZE); | ||||
} | } | ||||
if (gArgs.IsArgSet("-blockmintxfee")) { | |||||
Amount n = Amount::zero(); | Amount n = Amount::zero(); | ||||
ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n); | if (gArgs.IsArgSet("-blockmintxfee") && | ||||
ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n)) { | |||||
options.blockMinFeeRate = CFeeRate(n); | options.blockMinFeeRate = CFeeRate(n); | ||||
} | } | ||||
options.nBlockPriorityPercentage = config.GetBlockPriorityPercentage(); | options.nBlockPriorityPercentage = config.GetBlockPriorityPercentage(); | ||||
return options; | return options; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 620 Lines • Show Last 20 Lines |