mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-28 01:41:57 +02:00
refactor: Use local args instead of global gArgs in CWallet::Create
Can be reviewed with --word-diff-regex=.
This commit is contained in:
parent
fadb44606f
commit
fa59d2ce5b
@ -2732,11 +2732,11 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
|
|||||||
walletInstance->m_default_max_tx_fee = max_fee.value();
|
walletInstance->m_default_max_tx_fee = max_fee.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gArgs.IsArgSet("-consolidatefeerate")) {
|
if (args.IsArgSet("-consolidatefeerate")) {
|
||||||
if (std::optional<CAmount> consolidate_feerate = ParseMoney(gArgs.GetArg("-consolidatefeerate", ""))) {
|
if (std::optional<CAmount> consolidate_feerate = ParseMoney(args.GetArg("-consolidatefeerate", ""))) {
|
||||||
walletInstance->m_consolidate_feerate = CFeeRate(*consolidate_feerate);
|
walletInstance->m_consolidate_feerate = CFeeRate(*consolidate_feerate);
|
||||||
} else {
|
} else {
|
||||||
error = AmountErrMsg("consolidatefeerate", gArgs.GetArg("-consolidatefeerate", ""));
|
error = AmountErrMsg("consolidatefeerate", args.GetArg("-consolidatefeerate", ""));
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user