Skip to content

qt, wallet: wallet does not lock after first send #23790

@willyko

Description

@willyko

QT wallet does not lock the wallet after initial send.

Expected behavior

In Bitcoin Core 22.0, using the bitcoin-qt, password prompt shows up every time you click "Send"

Actual behavior

In current master branch latest (c09b41), using a self-compiled bitcoin-qt, after entering password to send once, subsequent "Send" no longer requires a password

To reproduce

  1. Pull master branch latest (or c09b41d).
  2. Compiled with qt option and run bitcoin-qt in regtest mode.
  3. Create an encrypted wallet and mine some blocks for test funds
  4. Using the send tab in qt, enter any address and any amount and then click "Send". Password prompt should show up.
  5. Enter password and click "Ok". The prompt disappears and nothing happens. (This is also a different behavior than expected)
  6. Click on "Send" again and the review transaction prompt shows up.
  7. Click on "Sign and Send" to complete this transaction.
  8. Now, using the send tab and attempt to "Send" again will show the review transaction prompt instantly instead of showing the password prompt. Clicking on "Sign and Send" can also complete this transaction successfully.

System information

Self-compiled master branch

commit c09b41dc665bcc7d6dcc464f1d279e8eca598c8d (HEAD -> master, origin/master, origin/HEAD)
Merge: b8cc75435 faf2614f6
Author: MarcoFalke <[email protected]>
Date:   Wed Dec 15 16:10:17 2021 +0100

Tested on MacOS 11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions