'walletpassphrase' RPC command should extend unlock time if already unlocked #1528

issue dooglus opened this issue on June 28, 2012
  1. dooglus commented at 2:38 AM on June 28, 2012: contributor

    If I run:

    bitcoind walletpassphrase $password 60
    

    and make a payment, then 58 seconds later run it again to make another payment, I get an error message:

    error: {"code":-17,"message":"Error: Wallet is already unlocked."}
    

    then, a couple of seconds later, when I go to make the 2nd payment, the first unlock has timed out, causing the payment to fail.

    Better would be if the 2nd call to walletpassphrase just reset the timeout, either to the specified new timeout, or to max(old-expire-time, new-expire-time).

    As it is, all I know is that the wallet is currently unlocked, but may well be locked again by the time I get to use it.

  2. ThePiachu commented at 12:09 PM on June 28, 2012: none

    Also posted this issue earlier - #1527

  3. laanwj commented at 12:19 PM on June 28, 2012: member

    Sounds like a good idea, agreed. The current behavior is unreliable, if it is impossible to guarantee an unlocked wallet during a command.

  4. dooglus closed this on Jun 28, 2012

  5. dooglus commented at 12:21 PM on June 28, 2012: contributor

    Closing as a dup of #1527.

  6. lovedazi005 commented at 10:19 AM on August 15, 2013: none

    D:\比特币\bitcoin-0.8.3-win32\bitcoin-0.8.3-win32\daemon>bitcoind walletpassphra se bitcoin 3

    D:\比特币\bitcoin-0.8.3-win32\bitcoin-0.8.3-win32\daemon>bitcoind sendfrom dazi0 03 177CFtLHwUq2xWUkG4MLxp5sqXU9S6yERB 0.00009 error: {"code":-13,"message":"Error: Please enter the wallet passphrase with wal letpassphrase first."}

  7. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 00:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me