Skip to content

Commit 86726d8

Browse files
committed
Rename -optintofullrbf option to -walletrbf
This makes it clear that this is a wallet option.
1 parent 05fa823 commit 86726d8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/wallet/wallet.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ CFeeRate payTxFee(DEFAULT_TRANSACTION_FEE);
4040
unsigned int nTxConfirmTarget = DEFAULT_TX_CONFIRM_TARGET;
4141
bool bSpendZeroConfChange = DEFAULT_SPEND_ZEROCONF_CHANGE;
4242
bool fSendFreeTransactions = DEFAULT_SEND_FREE_TRANSACTIONS;
43-
bool fOptIntoFullRbf = DEFAULT_OPT_INTO_FULL_RBF;
43+
bool fWalletRbf = DEFAULT_WALLET_RBF;
4444

4545
const char * DEFAULT_WALLET_DAT = "wallet.dat";
4646
const uint32_t BIP32_HARDENED_KEY_LIMIT = 0x80000000;
@@ -2366,7 +2366,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
23662366
// behavior."
23672367
BOOST_FOREACH(const PAIRTYPE(const CWalletTx*,unsigned int)& coin, setCoins)
23682368
txNew.vin.push_back(CTxIn(coin.first->GetHash(),coin.second,CScript(),
2369-
std::numeric_limits<unsigned int>::max() - (fOptIntoFullRbf ? 2 : 1)));
2369+
std::numeric_limits<unsigned int>::max() - (fWalletRbf ? 2 : 1)));
23702370

23712371
// Sign
23722372
int nIn = 0;
@@ -3247,7 +3247,7 @@ std::string CWallet::GetWalletHelpString(bool showDebug)
32473247
strUsage += HelpMessageOpt("-spendzeroconfchange", strprintf(_("Spend unconfirmed change when sending transactions (default: %u)"), DEFAULT_SPEND_ZEROCONF_CHANGE));
32483248
strUsage += HelpMessageOpt("-txconfirmtarget=<n>", strprintf(_("If paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default: %u)"), DEFAULT_TX_CONFIRM_TARGET));
32493249
strUsage += HelpMessageOpt("-usehd", _("Use hierarchical deterministic key generation (HD) after BIP32. Only has effect during wallet creation/first start") + " " + strprintf(_("(default: %u)"), DEFAULT_USE_HD_WALLET));
3250-
strUsage += HelpMessageOpt("-optintofullrbf", strprintf(_("Send transactions with full-RBF opt-in enabled (default: %u)"), DEFAULT_OPT_INTO_FULL_RBF));
3250+
strUsage += HelpMessageOpt("-walletrbf", strprintf(_("Send transactions with full-RBF opt-in enabled (default: %u)"), DEFAULT_WALLET_RBF));
32513251
strUsage += HelpMessageOpt("-upgradewallet", _("Upgrade wallet to latest format on startup"));
32523252
strUsage += HelpMessageOpt("-wallet=<file>", _("Specify wallet file (within data directory)") + " " + strprintf(_("(default: %s)"), DEFAULT_WALLET_DAT));
32533253
strUsage += HelpMessageOpt("-walletbroadcast", _("Make the wallet broadcast transactions") + " " + strprintf(_("(default: %u)"), DEFAULT_WALLETBROADCAST));
@@ -3488,7 +3488,7 @@ bool CWallet::ParameterInteraction()
34883488
nTxConfirmTarget = GetArg("-txconfirmtarget", DEFAULT_TX_CONFIRM_TARGET);
34893489
bSpendZeroConfChange = GetBoolArg("-spendzeroconfchange", DEFAULT_SPEND_ZEROCONF_CHANGE);
34903490
fSendFreeTransactions = GetBoolArg("-sendfreetransactions", DEFAULT_SEND_FREE_TRANSACTIONS);
3491-
fOptIntoFullRbf = GetBoolArg("-optintofullrbf", DEFAULT_OPT_INTO_FULL_RBF);
3491+
fWalletRbf = GetBoolArg("-walletrbf", DEFAULT_WALLET_RBF);
34923492

34933493
return true;
34943494
}

src/wallet/wallet.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extern CFeeRate payTxFee;
3737
extern unsigned int nTxConfirmTarget;
3838
extern bool bSpendZeroConfChange;
3939
extern bool fSendFreeTransactions;
40-
extern bool fOptIntoFullRbf;
40+
extern bool fWalletRbf;
4141

4242
static const unsigned int DEFAULT_KEYPOOL_SIZE = 100;
4343
//! -paytxfee default
@@ -54,8 +54,8 @@ static const bool DEFAULT_SPEND_ZEROCONF_CHANGE = true;
5454
static const bool DEFAULT_SEND_FREE_TRANSACTIONS = false;
5555
//! -txconfirmtarget default
5656
static const unsigned int DEFAULT_TX_CONFIRM_TARGET = 2;
57-
//! -optintofullrbf default
58-
static const bool DEFAULT_OPT_INTO_FULL_RBF = false;
57+
//! -walletrbf default
58+
static const bool DEFAULT_WALLET_RBF = false;
5959
//! Largest (in bytes) free transaction we're willing to create
6060
static const unsigned int MAX_FREE_TRANSACTION_CREATE_SIZE = 1000;
6161
static const bool DEFAULT_WALLETBROADCAST = true;

0 commit comments

Comments
 (0)