Review report

bitcoin/bitcoin: PR #35429

1 suggestion

Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · Signer configuration has independent wallet and SPKM copies

Independent wallet and SPKM copies require extra factory parameters and leave address display and signing reading configuration from different owners.

Location: src/wallet/external_signer_scriptpubkeyman.h:21 (head).

Details and suggested fix

LoadWalletArgs stores the command and chain on CWallet, and both external-signer SPKM factories copy them into each manager. DisplayAddress and descriptor setup use the wallet fields, while FillPSBT uses the SPKM fields. No current caller was found that updates these settings after load, and unload/reload reconstructs both copies, so this is a maintenance suggestion rather than a present behavior bug. A future update to only the public wallet fields would change address-display settings without changing signing settings for existing SPKMs. Keep one private, wallet-owned configuration and expose it through read-only WalletStorage accessors for FillPSBT. That removes the SPKM copies and extra factory parameters while retaining capture from the injected ArgsManager in LoadWalletArgs. The tradeoff is extending the WalletStorage interface.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.