Review report

core: PR #36344

1 suggestion

Optional improvements

Link

[suggestion] · sendall help omits the new input uniqueness requirement

sendall now rejects repeated outpoints, but its inputs help does not document that requirement, unlike the uniqueness rule documented for recipients.

Location: src/wallet/rpc/spend.cpp:1474 (head).

Details and suggested fix

For an otherwise valid explicit input list, the new check throws RPC_INVALID_PARAMETER when the same outpoint appears twice. The inputs help still only describes using exactly the specified inputs and lists incompatible options. This differs from send and walletcreatefundedpsbt, whose funding path merges repeated selections through CCoinControl::Select, with the last sequence winning. Callers reusing such lists can therefore encounter an undocumented restriction. Add “Each input may only appear once.” to the inputs description. The error already identifies the duplicated outpoint, so this suggestion only concerns discoverability.


Coverage details