Skip to content

Commit 7c767a1

Browse files
Merge #6907: fix: remove mentioning of BIP-125
9f617e3 fix: remove mentioning of BIP-125 (Konstantin Akimov) Pull request description: ## Issue being fixed or feature implemented We don't have BIP-125 (replace-by-fee) and there's no plans to support it ever. ## What was done? Removed leftover that is backported by mistake ## How Has This Been Tested? N/A ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone ACKs for top commit: kwvg: utACK 9f617e3 Tree-SHA512: 52b67a316a196fb4dac142713a90e5f1efaf558f0247eb615cdf9cce12af962515b88d64776e1a83418a4598a3d588146f31d98148f543aee3ff0a49d7952d81
2 parents 92478f6 + 9f617e3 commit 7c767a1

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

src/init.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ void SetupServerArgs(ArgsManager& argsman)
747747

748748
argsman.AddArg("-acceptnonstdtxn", strprintf("Relay and mine \"non-standard\" transactions (%sdefault: %u)", "testnet/regtest only; ", !testnetChainParams->RequireStandard()), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
749749
argsman.AddArg("-dustrelayfee=<amt>", strprintf("Fee rate (in %s/kB) used to define dust, the value of an output such that it will cost more than its value in fees at this fee rate to spend it. (default: %s)", CURRENCY_UNIT, FormatMoney(DUST_RELAY_TX_FEE)), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
750-
argsman.AddArg("-incrementalrelayfee=<amt>", strprintf("Fee rate (in %s/kB) used to define cost of relay, used for mempool limiting and BIP 125 replacement. (default: %s)", CURRENCY_UNIT, FormatMoney(DEFAULT_INCREMENTAL_RELAY_FEE)), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
750+
argsman.AddArg("-incrementalrelayfee=<amt>", strprintf("Fee rate (in %s/kB) used to define cost of relay, used for mempool limiting. (default: %s)", CURRENCY_UNIT, FormatMoney(DEFAULT_INCREMENTAL_RELAY_FEE)), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
751751
argsman.AddArg("-bytespersigop", strprintf("Equivalent bytes per sigop in transactions for relay and mining (default: %u)", DEFAULT_BYTES_PER_SIGOP), ArgsManager::ALLOW_ANY, OptionsCategory::NODE_RELAY);
752752
argsman.AddArg("-datacarrier", strprintf("Relay and mine data carrier transactions (default: %u)", DEFAULT_ACCEPT_DATACARRIER), ArgsManager::ALLOW_ANY, OptionsCategory::NODE_RELAY);
753753
argsman.AddArg("-datacarriersize", strprintf("Maximum size of data in data carrier transactions we relay and mine (default: %u)", MAX_OP_RETURN_RELAY), ArgsManager::ALLOW_ANY, OptionsCategory::NODE_RELAY);
@@ -1255,8 +1255,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
12551255
int64_t nMempoolSizeMin = args.GetIntArg("-limitdescendantsize", DEFAULT_DESCENDANT_SIZE_LIMIT) * 1000 * 40;
12561256
if (nMempoolSizeMax < 0 || nMempoolSizeMax < nMempoolSizeMin)
12571257
return InitError(strprintf(_("-maxmempool must be at least %d MB"), std::ceil(nMempoolSizeMin / 1000000.0)));
1258-
// incremental relay fee sets the minimum feerate increase necessary for BIP 125 replacement in the mempool
1259-
// and the amount the mempool min fee increases above the feerate of txs evicted due to mempool limiting.
1258+
// incremental relay fee sets the amount the mempool min fee increases above the feerate of txs evicted due to mempool limiting.
12601259
if (args.IsArgSet("-incrementalrelayfee")) {
12611260
if (std::optional<CAmount> inc_relay_fee = ParseMoney(args.GetArg("-incrementalrelayfee", ""))) {
12621261
::incrementalRelayFee = CFeeRate{inc_relay_fee.value()};

src/policy/policy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static constexpr unsigned int MAX_P2SH_SIGOPS{15};
3333
static constexpr unsigned int MAX_STANDARD_TX_SIGOPS{4000};
3434
/** Default for -maxmempool, maximum megabytes of mempool memory usage */
3535
static constexpr unsigned int DEFAULT_MAX_MEMPOOL_SIZE{300};
36-
/** Default for -incrementalrelayfee, which sets the minimum feerate increase for mempool limiting or BIP 125 replacement **/
36+
/** Default for -incrementalrelayfee, which sets the minimum feerate increase for mempool limiting **/
3737
static constexpr unsigned int DEFAULT_INCREMENTAL_RELAY_FEE{1000};
3838
/** Default for -bytespersigop */
3939
static constexpr unsigned int DEFAULT_BYTES_PER_SIGOP{20};

src/wallet/test/wallet_tests.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ extern RPCHelpMan addmultisigaddress();
4949
// Ensure that fee levels defined in the wallet are at least as high
5050
// as the default levels for node policy.
5151
static_assert(DEFAULT_TRANSACTION_MINFEE >= DEFAULT_MIN_RELAY_TX_FEE, "wallet minimum fee is smaller than default relay fee");
52-
static_assert(WALLET_INCREMENTAL_RELAY_FEE >= DEFAULT_INCREMENTAL_RELAY_FEE, "wallet incremental fee is smaller than default incremental relay fee");
5352

5453
BOOST_FIXTURE_TEST_SUITE(wallet_tests, WalletTestingSetup)
5554

src/wallet/wallet.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ static const CAmount DEFAULT_CONSOLIDATE_FEERATE{1000}; // 10 sat/vbyte
9999
static const CAmount DEFAULT_MAX_AVOIDPARTIALSPEND_FEE = 0;
100100
//! discourage APS fee higher than this amount
101101
constexpr CAmount HIGH_APS_FEE{COIN / 10000};
102-
//! minimum recommended increment for BIP 125 replacement txs
103-
static const CAmount WALLET_INCREMENTAL_RELAY_FEE = 5000;
104102
//! Default for -spendzeroconfchange
105103
static const bool DEFAULT_SPEND_ZEROCONF_CHANGE = true;
106104
//! Default for -walletrejectlongchains

test/functional/test_framework/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
COIN = 100000000 # 1 btc in satoshis
4141
MAX_MONEY = 21000000 * COIN
4242

43-
BIP125_SEQUENCE_NUMBER = 0xfffffffd # Sequence number that is BIP 125 opt-in and BIP 68-opt-out
43+
BIP125_SEQUENCE_NUMBER = 0xfffffffd # Sequence number that is BIP 125 opt-in and BIP 68-opt-out -- not used in DASH
4444
SEQUENCE_FINAL = 0xffffffff # Sequence number that disables nLockTime if set for every input of a tx
4545

4646
MAX_PROTOCOL_MESSAGE_LENGTH = 3 * 1024 * 1024 # Maximum length of incoming protocol messages

0 commit comments

Comments
 (0)