2 suggestions
Optional improvements
[suggestion] · Loaded wallets no longer observe GUI signer-path changes
Without a command-line or forced override, changing the GUI signer path previously affected the next wallet operation, but now loaded wallets retain the old command until reload or restart.
Location: src/wallet/wallet.cpp:2995 (head).
Details and suggested fix
If a user changes External signer path in bitcoin-qt while an external-signer wallet is loaded, OptionsModel immediately updates the live ArgsManager setting. Previously, GetExternalSigner read that setting on each lookup. LoadWalletArgs now captures it once, and signing and address display use stored copies. Already-loaded wallets therefore retain the previous command while listExternalSigners and newly loaded wallets can see the new one. The GUI already marks this option restart-required, so load-time capture is a reasonable design, but the commit's “No behavior change” claim is inaccurate. Document in the commit message and PR description that changing the signer command requires unloading and reloading the wallet or restarting the node.
[suggestion] · Tests miss reload-path command propagation and chain forwarding
The new unit test only exercises the empty-command guard, while functional assertions would miss an empty command in reloaded SPKMs or an incorrect forwarded chain.
Location: src/wallet/test/scriptpubkeyman_tests.cpp:59 (head).
Details and suggested fix
The literal empty command returns before enumeration, so this unit test does not exercise the new settings plumbing. Existing successful sends cover the command copied by CreateNew. After reload, however, test_disconnected_signer checks only “External signer not found”: FillPSBT maps both an empty command and the intended empty enumeration result to that error. Wrap this send in assert_debug_log(expected_msgs=["No external signers found"]) to distinguish them. Also make mocks/signer.py reject a chain other than regtest in getdescriptors, displayaddress and signtx. It currently ignores the parsed chain and returns hard-coded results, so an empty or wrong value would go unnoticed. Do not apply that check to enumerate, which intentionally receives no --chain argument.