bitcoin-cli deriveaddresses always returns an range error #16855

issue jestevez opened this issue on September 11, 2019
  1. jestevez commented at 7:33 PM on September 11, 2019: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    Expected behavior Without range is fine!

    bitcoin-cli deriveaddresses "wpkh([d34db33f/84'/0'/0']0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798)#n9g43y4k"
    [
      "bcrt1qw508d6qejxtdg4y5r3zarvary0c5xw7kygt080"
    ]
    
    

    <!--- What behavior did you expect? -->

    Actual behavior

    Add range fail...

    bitcoin-cli deriveaddresses "wpkh([d34db33f/84'/0'/0']0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798)#n9g43y4k" "[0,2]"
    error code: -8
    error message:
    Range should not be specified for an un-ranged descriptor
    

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    To reproduce

    bitcoin-cli deriveaddresses

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    System information

    bitcoin 0.18.1 MacBook Sierra 10.13.6 (17G8030) Regtest

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

    https://bitcoin.stackexchange.com/questions/87538/bitcoin-cli-deriveaddresses-always-returns-an-error/90340#90340

  2. jestevez added the label Bug on Sep 11, 2019
  3. jestevez closed this on Sep 11, 2019

  4. jestevez commented at 7:59 PM on September 11, 2019: none

    Sorry

    I'm sorry, it wasn't a problem ... I was using a descriptor without range

    
     ./bitcoin-cli getdescriptorinfo "wpkh([d34db33f/84h/0h/0h]0279be667ef9dcbbac55a06295Ce870b07029Bfcdb2dce28d959f2815b16f81798)"
    {
      "descriptor": "wpkh([d34db33f/84'/0'/0']0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798)#n9g43y4k",
      "isrange": false,
      "issolvable": true,
      "hasprivatekeys": false
    }
    
    
    
  5. DrahtBot locked this on Dec 16, 2021
Contributors
Labels

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:14 UTC

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