Skip to content

Commit 451ba9a

Browse files
ajtownsbitschmidty
authored andcommitted
datacarrier: Undeprecate configuration option
Reverts commit 0b4048c
1 parent 314c42b commit 451ba9a

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

src/init.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,9 @@ void SetupServerArgs(ArgsManager& argsman, bool can_listen_ipc)
658658
argsman.AddArg("-dustrelayfee=<amt>", strprintf("Fee rate (in %s/kvB) 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);
659659
argsman.AddArg("-acceptstalefeeestimates", strprintf("Read fee estimates even if they are stale (%sdefault: %u) fee estimates are considered stale if they are %s hours old", "regtest only; ", DEFAULT_ACCEPT_STALE_FEE_ESTIMATES, Ticks<std::chrono::hours>(MAX_FILE_AGE)), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST);
660660
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);
661-
argsman.AddArg("-datacarrier", strprintf("(DEPRECATED) Relay and mine data carrier transactions (default: %u)", DEFAULT_ACCEPT_DATACARRIER), ArgsManager::ALLOW_ANY, OptionsCategory::NODE_RELAY);
661+
argsman.AddArg("-datacarrier", strprintf("Relay and mine data carrier transactions (default: %u)", DEFAULT_ACCEPT_DATACARRIER), ArgsManager::ALLOW_ANY, OptionsCategory::NODE_RELAY);
662662
argsman.AddArg("-datacarriersize",
663-
strprintf("(DEPRECATED) Relay and mine transactions whose data-carrying raw scriptPubKeys in aggregate "
663+
strprintf("Relay and mine transactions whose data-carrying raw scriptPubKeys in aggregate "
664664
"are of this size or less, allowing multiple outputs (default: %u)",
665665
MAX_OP_RETURN_RELAY),
666666
ArgsManager::ALLOW_ANY, OptionsCategory::NODE_RELAY);
@@ -903,10 +903,6 @@ bool AppInitParameterInteraction(const ArgsManager& args)
903903
InitWarning(_("Option '-checkpoints' is set but checkpoints were removed. This option has no effect."));
904904
}
905905

906-
if (args.IsArgSet("-datacarriersize") || args.IsArgSet("-datacarrier")) {
907-
InitWarning(_("Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated and are expected to be removed in a future version."));
908-
}
909-
910906
// We no longer limit the orphanage based on number of transactions but keep the option to warn users who still have it in their config.
911907
if (args.IsArgSet("-maxorphantx")) {
912908
InitWarning(_("Option '-maxorphantx' is set but no longer has any effect (see release notes). Please remove it from your configuration."));

test/functional/mempool_datacarrier.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,5 @@ def run_test(self):
100100
self.test_null_data_transaction(node=self.nodes[2], data=one_byte, success=True)
101101
self.test_null_data_transaction(node=self.nodes[3], data=one_byte, success=False)
102102

103-
# Clean shutdown boilerplate due to deprecation
104-
self.expected_stderr = [
105-
"", # node 0 has no deprecated options
106-
"Warning: Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated and are expected to be removed in a future version.",
107-
"Warning: Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated and are expected to be removed in a future version.",
108-
"Warning: Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated and are expected to be removed in a future version.",
109-
]
110-
111-
for i in range(self.num_nodes):
112-
self.stop_node(i, expected_stderr=self.expected_stderr[i])
113-
114-
115103
if __name__ == '__main__':
116104
DataCarrierTest(__file__).main()

0 commit comments

Comments
 (0)