AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 19 Bitcoin

Merge bitcoin/bitcoin#36333: wallet: Delete `removeprunedfunds` RPC

Public commit record

What the developer wrote

Authored by Ava Chow

91/100 · Strong
Merge bitcoin/bitcoin#36333: wallet: Delete `removeprunedfunds` RPC

ec7f64d02e370e04354e64fa745fca240bcb3cbe doc: release note for removeprunedfunds rpc deletion (David Gumberg)
3d8c55734e91049f50bb90637be2678bf3ab3619 wallet: rpc: Delete removeprunedfunds (David Gumberg)

Pull request description:

Deprecated in v32 (https://github.com/bitcoin/bitcoin/pull/35605), this deletes the useless and harmful `removeprunedfunds` RPC.

~~It also removes deleting of watchonly transactions from the not-watchonly migrated wallet, which in theory we should clean up, but in practice this does nothing for the user, the only observable change is that if the user knows the txid they can do `gettransaction` and the migrated wallet will return the transaction information even though it does not have keys for the transaction, AFAICT for both GUI and RPC having irrelevant transactions inside of wallet is harmless and does not affect the output of anything, since most stuff is gated behind `IsMine()` anyways.~~

~~Removing both the RPC and the deletion of watchonly tx'es allows deleting the logic for transaction removal and the associated tests.~~

Edit: This will be done in a follow-up, all this PR does is delete the `removeprunedfunds` RPC.

_LLM Disclosure: Not used to write this PR or PR description, but I recently replaced clang on my machine with gemma-4-26B directly generating machine code._

ACKs for top commit:
achow101:
ACK ec7f64d02e370e04354e64fa745fca240bcb3cbe
pablomartin4btc:
re-ACK ec7f64d02e370e04354e64fa745fca240bcb3cbe
w0xlt:
ACK ec7f64d02e370e04354e64fa745fca240bcb3cbe
polespinasa:
untested ACK ec7f64d02e370e04354e64fa745fca240bcb3cbe

Tree-SHA512: dd9f982db05f0b74eafe0fac11e4f8b9b59ffba26a7c9d04b15dba7b6d0b070ef4115e44d9ae9c0f619b0b401c3df3a0f9181ed49e080f300406513267faee81
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit removes an old Bitcoin Core wallet RPC command called removeprunedfunds that was already marked deprecated in the previous release. The change is a planned cleanup, not a security fix. It deletes the command's code, its registration, release notes, and related tests. There is no indication in the commit that this fixes a vulnerability or that the removal itself creates a security issue.

Recommended action

No security action required. Operators who still rely on removeprunedfunds should migrate to supported workflows before upgrading, as documented by the deprecation.

Security signals we found

01

Removal of a deprecated wallet RPC that could alter wallet transaction state

02

No new parsing of untrusted data or memory-unsafe changes

03

No vendor security disclosure or CVE referenced in commit or PR description

Risk score

Why this scored 19/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 5/15
Confidence 9/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.