`upgradewallet` on a descriptor wallet ends with error #22460

issue jsarenik opened this issue on July 15, 2021
  1. jsarenik commented at 4:24 PM on July 15, 2021: none

    This is the error I get:

    $ bitcoin-cli -rpcwallet=descriptor -testnet upgradewallet                         <
    error code: -1
    error message:
    wallet/rpcwallet.cpp:4522 (operator())
    Internal bug detected: '!error.empty()'
    You may report this issue here: https://github.com/bitcoin/bitcoin/issues
    

    The daemon logs this:

    2021-07-15T16:16:54Z [descriptor] Performing wallet upgrade to 169900
    

    Expected behavior

    When I do the same on the default (non-descriptor) wallet:

    $ bitcoin-cli -rpcwallet="" -testnet upgradewallet                             
    {
      "wallet_name": "",
      "previous_version": 169900,
      "current_version": 169900,
      "result": "Already at latest version. Wallet version unchanged."
    }
    

    <!-- **Actual behavior** -->

    <!-- See above. Isn't this kind of backwards, to first ask what I expect and then ask what I got? I am writing here because I got something strange in the first place... -->

    System information

    Bitcoin Core v0.21.1 Linux x86_64 glibc (Ubuntu) using binarias from bitcoincore.org

  2. jsarenik added the label Bug on Jul 15, 2021
  3. jsarenik renamed this:
    `upgradewallet` on a descriptorwallet ends with error
    `upgradewallet` on a descriptor wallet ends with error
    on Jul 15, 2021
  4. meshcollider closed this on Jul 18, 2021

  5. DrahtBot locked this on Aug 18, 2022

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

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