Since commit 91f6d2bc8ff4d4cd1b86daa370ec9d2d9662394d in 2020, the wallet accepts and documents conf_target for the fee bump RPC.
So it seems time to cut the confusion and properly deprecate it with the next cycle.
Since commit 91f6d2bc8ff4d4cd1b86daa370ec9d2d9662394d in 2020, the wallet accepts and documents conf_target for the fee bump RPC.
So it seems time to cut the confusion and properly deprecate it with the next cycle.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline and AI policy for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | seduless, willcl-ark |
| Stale ACK | fametrano |
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--174a7506f384e20aa4161008e828411d-->
No conflicts as of last run.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
tACK fab22ac42e350d4b4481515fe8ba2a319a744389
No test checks that confTarget still works under -deprecatedrpc=confTarget. The comment in rpc_deprecated.py asks that each deprecation tested there keep another functional test that still exercises it under the flag. wallet_bumpfee.py gains the flag, but its only confTarget call is the "should not both be set" error, so a change that broke confTarget behind the flag would still pass the tests. One bumpfee and one psbtbumpfee call with {"confTarget": 6} in that test would cover it.
The rest matched. Without the flag, both RPCs return -32 for confTarget, alone or next to conf_target, before the txid is looked up. With the flag, confTarget bumps and the conflict error is unchanged. conf_target works either way, positional or named. The help and getopenrpcinfo list only conf_target.
I measured this on regtest against a build of the head, with and without the flag, with calls sent through a client library I maintain. I can share the script and its output.
No test checks that
confTargetstill works under-deprecatedrpc=confTarget.
Your LLM-co-authored comment is just repeating what the Ralph LLM already said. There never was a test for this since 2020, the option was undocumented since then, so likely no user is using it. I don't think it makes sense to add a test for this now, given that such a test would be harder to review than the code change here by itself.
Reviewed fab22ac42e350d4b4481515fe8ba2a319a744389
Looks good, but CI is stale and this needs a rebase since a merge to master breaks test/functional/rpc_deprecated.py (wallet setup was removed in #36333).
Verified applying this after rebase fixes the functional tests.
diff --git a/test/functional/rpc_deprecated.py b/test/functional/rpc_deprecated.py
index 7114f29698..13c466523c 100755
--- a/test/functional/rpc_deprecated.py
+++ b/test/functional/rpc_deprecated.py
@@ -6,2 +6,3 @@
from test_framework.test_framework import BitcoinTestFramework
+from test_framework.util import assert_raises_rpc_error
@@ -29,3 +30,6 @@ class DeprecatedRpcTest(BitcoinTestFramework):
self.log.info("Tests for deprecated RPC methods (if any)")
- self.log.info("Currently no tests for deprecated RPC methods")
+ if self.is_wallet_compiled():
+ self.log.info("Tests for deprecated wallet-related RPC methods (if any)")
+ self.nodes[0].createwallet("ancient_wallet")
+ wallet = self.nodes[0].get_wallet_rpc("ancient_wallet")
<!--85328a0da195eb286784d51f73fa0af9-->
🚧 At least one of the CI tasks failed.
<sub>Task lint: https://github.com/bitcoin/bitcoin/actions/runs/42978801758/job/130384066639</sub>
<sub>LLM reason (✨ experimental): CI failed the Python lint check: Ruff reports assert_raises_rpc_error is undefined in test/functional/rpc_deprecated.py.</sub>
<details><summary>Hints</summary>
Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example:
Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.
A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test.
An intermittent issue.
Leave a comment here, if you need help tracking down a confusing failure.
</details>
thx, rebased and fixed the silent merge conflict (also added a comment to not remove the setup in the future, to avoid this kind of problem)
0 | @@ -0,0 +1,8 @@ 1 | +Updated RPCs 2 | +------------ 3 | + 4 | +The deprecated `confTarget` option of the `bumpfee` and `psbtbumpfee` RPCs is 5 | +now available only when the RPC server is started with 6 | +`-deprecatedrpc=confTarget`. 7 | +Use `conf_target` instead. The `confTarget` option will be removed in the next 8 | +release.
(#36488)
Tested ACK fad45cacbcac4831082d4fcf596c255fd9c5a55d
ACK fad45cacbcac4831082d4fcf596c255fd9c5a55d
Looks OK to me.
Milestone
33.0