Skip to content

Commit cba749a

Browse files
committed
refactor: rename local gArgs to args
Avoid confusion with the global gArgs
1 parent bd74004 commit cba749a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/node/miner.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ BlockAssembler::BlockAssembler(Chainstate& chainstate, const CTxMemPool* mempool
7474
nBlockMaxWeight = std::max<size_t>(4000, std::min<size_t>(MAX_BLOCK_WEIGHT - 4000, options.nBlockMaxWeight));
7575
}
7676

77-
void ApplyArgsManOptions(const ArgsManager& gArgs, BlockAssembler::Options& options)
77+
void ApplyArgsManOptions(const ArgsManager& args, BlockAssembler::Options& options)
7878
{
7979
// Block resource limits
8080
// If -blockmaxweight is not given, limit to DEFAULT_BLOCK_MAX_WEIGHT
81-
options.nBlockMaxWeight = gArgs.GetIntArg("-blockmaxweight", DEFAULT_BLOCK_MAX_WEIGHT);
82-
if (gArgs.IsArgSet("-blockmintxfee")) {
83-
std::optional<CAmount> parsed = ParseMoney(gArgs.GetArg("-blockmintxfee", ""));
81+
options.nBlockMaxWeight = args.GetIntArg("-blockmaxweight", DEFAULT_BLOCK_MAX_WEIGHT);
82+
if (args.IsArgSet("-blockmintxfee")) {
83+
std::optional<CAmount> parsed = ParseMoney(args.GetArg("-blockmintxfee", ""));
8484
options.blockMinFeeRate = CFeeRate{parsed.value_or(DEFAULT_BLOCK_MIN_TX_FEE)};
8585
} else {
8686
options.blockMinFeeRate = CFeeRate{DEFAULT_BLOCK_MIN_TX_FEE};

0 commit comments

Comments
 (0)