MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / DefaultOptions

Function DefaultOptions

src/miner.cpp:67–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static BlockAssembler::Options DefaultOptions()
68{
69 // Block resource limits
70 // If -blockmaxweight is not given, limit to DEFAULT_BLOCK_MAX_WEIGHT
71 BlockAssembler::Options options;
72 options.nBlockMaxWeight = gArgs.GetArg("-blockmaxweight", DEFAULT_BLOCK_MAX_WEIGHT);
73 if (gArgs.IsArgSet("-blockmintxfee")) {
74 CAmount n = 0;
75 ParseMoney(gArgs.GetArg("-blockmintxfee", ""), n);
76 options.blockMinFeeRate = CFeeRate(n);
77 } else {
78 options.blockMinFeeRate = CFeeRate(DEFAULT_BLOCK_MIN_TX_FEE);
79 }
80 return options;
81}
82
83BlockAssembler::BlockAssembler(const CChainParams& params) : BlockAssembler(params, DefaultOptions()) {}
84

Callers 1

BlockAssemblerMethod · 0.85

Calls 4

ParseMoneyFunction · 0.85
IsArgSetMethod · 0.80
CFeeRateClass · 0.50
GetArgMethod · 0.45

Tested by

no test coverage detected