mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 05:32:22 +02:00
wallet: refactor to read -walletrbf only once instead of twice
This commit is contained in:
@@ -3104,9 +3104,9 @@ bool CWallet::LoadWalletArgs(std::shared_ptr<CWallet> wallet, const WalletContex
|
||||
wallet->m_confirm_target = args.GetIntArg("-txconfirmtarget", DEFAULT_TX_CONFIRM_TARGET);
|
||||
wallet->m_spend_zero_conf_change = args.GetBoolArg("-spendzeroconfchange", DEFAULT_SPEND_ZEROCONF_CHANGE);
|
||||
wallet->m_signal_rbf = DEFAULT_WALLET_RBF;
|
||||
if (args.IsArgSet("-walletrbf")) {
|
||||
if (auto value{args.GetBoolArg("-walletrbf")}) {
|
||||
warnings.push_back(_("-walletrbf is deprecated and will be fully removed in the next release."));
|
||||
wallet->m_signal_rbf = args.GetBoolArg("-walletrbf").value();
|
||||
wallet->m_signal_rbf = *value;
|
||||
}
|
||||
|
||||
wallet->m_keypool_size = std::max(args.GetIntArg("-keypool", DEFAULT_KEYPOOL_SIZE), int64_t{1});
|
||||
|
||||
Reference in New Issue
Block a user