wallet: rpc: deprecate removeprunedfunds

This RPC has no helpful use while being both dangerous and a maintenance
burden.

Despite what the name says, it allows the deletion of arbitrary
transactions, and `importprunedfunds` does not allow the importing of
transactions not belonging to the user, and `listtransactions` does not
list transactions not belonging to the wallet, so this RPC can only be
used to delete transactions actually belonging to the wallet, and in the
unlikely event that transactions not belonging to the wallet are
present, they cause no harm except for occupying a few bytes on the
users disk.
This commit is contained in:
David Gumberg
2026-06-25 22:23:59 +00:00
parent e5b7785447
commit f280f5eb47
4 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
Updated RPCs
------------
- The `removeprunedfunds` RPC has been deprecated and will be removed in the
next major release. In order to continue using it, `bitcoind` must be started
with the `-deprecatedrpc=removeprunedfunds` option.