rpc: Deprecate watchonly wallet no-op named options

bitcoin/bitcoin: PR #36855

1 suggestion

Optional improvements

Link

[suggestion] · Affected RPC option help omits -deprecatedrpc=watchonly

The newly gated watchonly options still say only “(DEPRECATED) No longer used” in RPC help, leaving the compatibility flag documented only in the runtime error and release note.

Location: src/wallet/rpc/util.cpp:39 (head).

Details and suggested fix

Explicit non-null values for includeWatching, include_watching, and include_watchonly now require -deprecatedrpc=watchonly, but their descriptions in fundrawtransaction, walletcreatefundedpsbt, send, sendall, and simulaterawtransaction do not explain this requirement. RPCMethod::HandleRequest produces help before invoking the handler, so help <rpc> cannot show the helper's compatibility guidance. Update these five option descriptions to name the flag and explain that it temporarily permits passing the no-op option until removal in the next release. This follows doc/developer-notes.md and makes the compatibility path discoverable through RPC help without changing the staged behavior.


Coverage details