@@ -44,7 +44,6 @@ CFeeRate payTxFee(DEFAULT_TRANSACTION_FEE);
4444unsigned int nTxConfirmTarget = DEFAULT_TX_CONFIRM_TARGET;
4545bool bSpendZeroConfChange = DEFAULT_SPEND_ZEROCONF_CHANGE;
4646bool fSendFreeTransactions = DEFAULT_SEND_FREE_TRANSACTIONS;
47- bool fWalletRbf = DEFAULT_WALLET_RBF;
4847
4948const char * DEFAULT_WALLET_DAT = " wallet.dat" ;
5049const uint32_t BIP32_HARDENED_KEY_LIMIT = 0x80000000 ;
@@ -2997,15 +2996,8 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
29972996 //
29982997 // Note how the sequence number is set to non-maxint so that
29992998 // the nLockTime set above actually works.
3000- //
3001- // BIP125 defines opt-in RBF as any nSequence < maxint-1, so
3002- // we use the highest possible value in that range (maxint-2)
3003- // to avoid conflicting with other possible uses of nSequence,
3004- // and in the spirit of "smallest possible change from prior
3005- // behavior."
30062999 for (const auto & coin : setCoins) {
3007- txNew.vin .push_back (CTxIn (coin.first ->GetHash (),coin.second ,CScript (),
3008- std::numeric_limits<unsigned int >::max () - (fWalletRbf ? 2 : 1 )));
3000+ txNew.vin .push_back (CTxIn (coin.first ->GetHash (),coin.second ,CScript (), std::numeric_limits<unsigned int >::max () - 1 ));
30093001 if (reissuanceToken &&
30103002 coin.first ->GetOutputAsset (coin.second ) == *reissuanceToken) {
30113003 reissuanceIndex = txNew.vin .size ()-1 ;
@@ -4155,7 +4147,6 @@ std::string CWallet::GetWalletHelpString(bool showDebug)
41554147 strUsage += HelpMessageOpt (" -spendzeroconfchange" , strprintf (_ (" Spend unconfirmed change when sending transactions (default: %u)" ), DEFAULT_SPEND_ZEROCONF_CHANGE));
41564148 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));
41574149 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));
4158- strUsage += HelpMessageOpt (" -walletrbf" , strprintf (_ (" Send transactions with full-RBF opt-in enabled (default: %u)" ), DEFAULT_WALLET_RBF));
41594150 strUsage += HelpMessageOpt (" -upgradewallet" , _ (" Upgrade wallet to latest format on startup" ));
41604151 strUsage += HelpMessageOpt (" -wallet=<file>" , _ (" Specify wallet file (within data directory)" ) + " " + strprintf (_ (" (default: %s)" ), DEFAULT_WALLET_DAT));
41614152 strUsage += HelpMessageOpt (" -walletbroadcast" , _ (" Make the wallet broadcast transactions" ) + " " + strprintf (_ (" (default: %u)" ), DEFAULT_WALLETBROADCAST));
@@ -4471,7 +4462,6 @@ bool CWallet::ParameterInteraction()
44714462 nTxConfirmTarget = GetArg (" -txconfirmtarget" , DEFAULT_TX_CONFIRM_TARGET);
44724463 bSpendZeroConfChange = GetBoolArg (" -spendzeroconfchange" , DEFAULT_SPEND_ZEROCONF_CHANGE);
44734464 fSendFreeTransactions = GetBoolArg (" -sendfreetransactions" , DEFAULT_SEND_FREE_TRANSACTIONS);
4474- fWalletRbf = GetBoolArg (" -walletrbf" , DEFAULT_WALLET_RBF);
44754465
44764466 if (fSendFreeTransactions && GetArg (" -limitfreerelay" , DEFAULT_LIMITFREERELAY) <= 0 )
44774467 return InitError (" Creation of free transactions with their relay disabled is not supported." );
0 commit comments