If signing a PSBT, we need to ensure the wallet is unlocked.
Fixes #22874, fixes bitcoin-core/gui#312
If signing a PSBT, we need to ensure the wallet is unlocked.
Fixes #22874, fixes bitcoin-core/gui#312
Related GUI issue: https://github.com/bitcoin-core/gui/issues/312
Concept ACK. Could include a test.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Sure, added a test
Added another commit to address the GUI issue @prayank23 mentioned.
ACK 7e3ee4cdd0f60a2f549ba030fe96b90d61c036c5
ACK 7e3ee4cdd0f60a2f549ba030fe96b90d61c036c5
Post merge tACK https://github.com/bitcoin/bitcoin/commit/7e3ee4cdd0f60a2f549ba030fe96b90d61c036c5
<details> <summary>GUI</summary>


</details>
<details> <summary>CLI </summary>
$ bitcoin-cli walletprocesspsbt cHNidP8BAHECAAAAAc8rxxALBsWEEOQeiG8omNLS4etwfelczxCNkXq9ZkeDAQAAAAD9////AsPCAAAAAAAAFgAUk+E508Evzkjtp96eDMvj9acJsflQwwAAAAAAABYAFHRCFAkrwLrC4N8FwoQe83iHlPkZJP4fAAABAPUCAAAAAAEBn+1tNePIJterqM3FTCHyU5Pd7gDINjeWro57Og5DJmEAAAAAFxYAFMfPZFdLtGL2sDk+VtPq+FwO82Bv/v///wJYfwwBAAAAABYAFFKue/4Z1wdWSuWrItUf3XESDfiyoIYBAAAAAAAWABST4TnTwS/OSO2n3p4My+P1pwmx+QJHMEQCID4Hj3fkUhjkkGlJmmFqxkzjd7aN6Jc3RwSEc/kZ+ipFAiAq0iVNaVehtVFMIde58WjA0oyzMl1TNIAnWD7eqEh/gwEhA39z5OpBbgNSPWgXtFdiJiKMFrvE20Z9vHiXe5BERwWJ9P0fAAAAAA==
Error: Please enter the wallet passphrase with walletpassphrase first. (code -13)
</details>
Code review ACK 7e3ee4cdd0f60a2f549ba030fe96b90d61c036c5.