mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-19 11:18:09 +02:00
Merge bitcoin/bitcoin#33224: doc: unify datacarriersize warning with release notes
2885bd0e1cdoc: unify `datacarriersize` warning with release notes (Lőrinc) Pull request description: Follow-up to https://github.com/bitcoin/bitcoin/pull/32406 --- The [release notes](a189d63618/doc/release-notes-32406.md (L1)) claim > [...] marked as deprecated and are expected to be removed in a future release but the [warning itself](2885bd0e1c/src/init.cpp (L907)) claims > [...] marked as deprecated. They **will** be removed in a future version. To be less aggressive (since some have objected against this version online) - and to unify the deprecation warning with the release notes - I have changed the warning to communicate our expectation in a friendlier way. ACKs for top commit: cedwies: ACK2885bd0ryanofsky: Code review ACK2885bd0e1c. I don't think it is good for the release notes and the runtime warning message to say two different things. I'd also be happy if release notes were updated to match the runtime warning, instead of vice versa. Whatever is more accurate is better. ajtowns: ACK2885bd0e1ckevkevinpal: ACK [2885bd0](2885bd0e1c) achow101: ACK2885bd0e1cjanb84: ACK2885bd0e1cZero-1729: crACK2885bd0e1cjonatack: ACK2885bd0e1chodlinator: ACK2885bd0e1cw0xlt: ACK2885bd0e1coptout21: ACK2885bd0e1cTree-SHA512: a9d2a64ab96b3dd7f3a1a29622930054fd5c56e573bc96330f4ef3327dc024b21b3fbc8a698d17aea7c76f57f0c2ccd6403b2df344ae2f69c645ceb8b6fa54a5
This commit is contained in:
@@ -904,7 +904,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
|
||||
}
|
||||
|
||||
if (args.IsArgSet("-datacarriersize") || args.IsArgSet("-datacarrier")) {
|
||||
InitWarning(_("Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated. They will be removed in a future version."));
|
||||
InitWarning(_("Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated and are expected to be removed in a future version."));
|
||||
}
|
||||
|
||||
// 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.
|
||||
|
||||
@@ -103,9 +103,9 @@ class DataCarrierTest(BitcoinTestFramework):
|
||||
# Clean shutdown boilerplate due to deprecation
|
||||
self.expected_stderr = [
|
||||
"", # node 0 has no deprecated options
|
||||
"Warning: Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated. They will be removed in a future version.",
|
||||
"Warning: Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated. They will be removed in a future version.",
|
||||
"Warning: Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated. They will be removed in a future version.",
|
||||
"Warning: Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated and are expected to be removed in a future version.",
|
||||
"Warning: Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated and are expected to be removed in a future version.",
|
||||
"Warning: Options '-datacarrier' or '-datacarriersize' are set but are marked as deprecated and are expected to be removed in a future version.",
|
||||
]
|
||||
|
||||
for i in range(self.num_nodes):
|
||||
|
||||
Reference in New Issue
Block a user