bitcoind walletpassphrase not working #916

issue gronager opened this issue on March 5, 2012
  1. gronager commented at 11:22 AM on March 5, 2012: none

    First call says: error: {"code":-1,"message":"value is type str, expected int"} Second: error: {"code":-17,"message":"Error: Wallet is already unlocked."}

  2. sipa commented at 10:59 PM on March 5, 2012: member

    Unable to reproduce with git master; which version is this?

  3. TheBlueMatt commented at 11:40 PM on March 5, 2012: member

    Are you using a different version of bitcoind to send the request than you are to receive the request?

  4. gronager commented at 6:38 AM on March 6, 2012: none

    The issue was posted by "denisx" in the chat - stupid me - forgot to ask the version...

    I checked the code, and couldn't find the cause (well except if you call bitcoind with an older version and the second param of walletpassphrase is not set to type int first). I will see if I can catch him later on the chat, otherwise close it.

    Btw - In my view, the RPC functions should either announce their type (system.describe) or be more large in accepting strings when called (better).

    like:

    if (params[1].type() != json_spirit::int_type) {
        if (params[1].type() == json_spirit::str_type)
            timeout = lexical_cast<int>(params[1].get_str());
    }        
    else
        timeout = params[1].get_int();
    

    Cheers,

    Michael

    On 06/03/2012, at 00:40, Matt Corallo wrote:

    Are you using a different version of bitcoind to send the request than you are to receive the request?


    Reply to this email directly or view it on GitHub: #916 (comment)

    Michael Gronager, PhD Director, Ceptacle Jens Juels Gade 33 2100 Copenhagen E Mobile: +45 31 45 14 01 E-mail: gronager@ceptacle.com Web: http://www.ceptacle.com/

  5. sipa commented at 4:48 PM on March 6, 2012: member

    reported as solved by denisx on IRC

  6. sipa closed this on Mar 6, 2012

  7. ptschip referenced this in commit 6663c69c7a on Feb 4, 2018
  8. lateminer referenced this in commit a4f02ed946 on Oct 30, 2019
  9. 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-05-03 15:16 UTC

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