wallet: refactor to read -walletrbf only once instead of twice

This commit is contained in:
rkrux
2026-05-26 19:07:24 +05:30
parent 9ec4efebd1
commit a3fe455a95

View File

@@ -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});