Skip to content

Conversation

@meshcollider
Copy link
Contributor

@meshcollider meshcollider commented Sep 27, 2021

If signing a PSBT, we need to ensure the wallet is unlocked.

Fixes #22874, fixes bitcoin-core/gui#312

@ghost
Copy link

ghost commented Sep 27, 2021

Related GUI issue: bitcoin-core/gui#312

Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK. Could include a test.

@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #22513 (rpc: Allow walletprocesspsbt to sign without finalizing by achow101)

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.

@meshcollider
Copy link
Contributor Author

Sure, added a test

@meshcollider
Copy link
Contributor Author

Added another commit to address the GUI issue @prayank23 mentioned.

@meshcollider meshcollider changed the title Ensure wallet is unlocked before signing in walletprocesspsbt Ensure wallet is unlocked before signing PSBT with walletprocesspsbt and GUI Sep 28, 2021
@achow101
Copy link
Member

ACK 7e3ee4c

Copy link
Contributor

@lsilva01 lsilva01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review ACK 7e3ee4c

Copy link
Contributor

@benthecarman benthecarman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 7e3ee4c

@maflcko maflcko merged commit a9d0cec into bitcoin:master Sep 28, 2021
@ghost
Copy link

ghost commented Sep 28, 2021

Post merge tACK 7e3ee4c

GUI

image

image

CLI
$ 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)

Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK 7e3ee4c.

sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Sep 28, 2021
…th walletprocesspsbt and GUI

7e3ee4c GUI: Ask user to unlock wallet before signing psbt (Samuel Dobson)
0f3acec Add test that walletprocesspsbt requires unlocked wallet when signing (Samuel Dobson)
0e89521 Ensure wallet is unlocked before signing in walletprocesspsbt (Samuel Dobson)

Pull request description:

  If signing a PSBT, we need to ensure the wallet is unlocked.

  Fixes bitcoin#22874, fixes bitcoin-core/gui#312

ACKs for top commit:
  achow101:
    ACK 7e3ee4c
  lsilva01:
    Code Review ACK bitcoin@7e3ee4c
  benthecarman:
    ACK 7e3ee4c

Tree-SHA512: 6726a873582747900ab454ea21153a92be86808a4c1517dc2856b389876a2da9e8df1ffa9b567b6bd017038342c3544ecf5ca3c97744e7debe0a5ee65563687d
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Oct 10, 2021
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Oct 10, 2021
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Oct 10, 2021
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Dec 14, 2021
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Dec 14, 2021
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Dec 14, 2021
@bitcoin bitcoin locked and limited conversation to collaborators Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

7 participants