Corrupted wallet when upgrading to 31.1 #35962

issue Fonta1n3 opened this issue on August 12, 2026
  1. Fonta1n3 commented at 8:01 PM on August 12, 2026: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    I updated to 31.1 from 29.2 and it resulted in a wallet.dat getting corrupted, here is my log:

    2026-08-12T19:37:55Z init message: Loading wallet…
    2026-08-12T19:37:55Z [FullyNoded-36d0229102d0812082856404228e8b2a8f7a6eb5856c5e9e6333bb079e9481a3] Last client version = 290200
    2026-08-12T19:37:55Z [FullyNoded-36d0229102d0812082856404228e8b2a8f7a6eb5856c5e9e6333bb079e9481a3] The descriptor ID calculated by the wallet differs from the one in DB
    2026-08-12T19:37:56Z [FullyNoded-36d0229102d0812082856404228e8b2a8f7a6eb5856c5e9e6333bb079e9481a3] Setting spkMan to active: id = 1b38ccf1fb798d491b870edbf10b9801eae05c458a95c26bfb585a96b9cd04e7, type = bech32m, internal = false
    2026-08-12T19:37:56Z [FullyNoded-36d0229102d0812082856404228e8b2a8f7a6eb5856c5e9e6333bb079e9481a3] Setting spkMan to active: id = 9fefd4023c79247585ff8c766b5654319e0fef7d03c1b79fb10fc8f045b1a449, type = bech32m, internal = true
    2026-08-12T19:37:56Z [FullyNoded-36d0229102d0812082856404228e8b2a8f7a6eb5856c5e9e6333bb079e9481a3] Releasing wallet FullyNoded-36d0229102d0812082856404228e8b2a8f7a6eb5856c5e9e6333bb079e9481a3..
    2026-08-12T19:37:56Z [error] Error loading /Home/Library/Application Support/Bitcoin/FullyNoded-36d0229102d0812082856404228e8b2a8f7a6eb5856c5e9e6333bb079e9481a3/wallet.dat: Wallet corrupted
    

    How is The descriptor ID calculated? All I did was shut the node down, delete old binaries and install new binaries.

    Expected behaviour

    Upgrade without wallet corruption.

    Steps to reproduce

    I can not remember the details of the wallet off the top of my head, can hopefully find my backup.

    Relevant log output

    No response

    How did you obtain Bitcoin Core

    Pre-built binaries

    What version of Bitcoin Core are you using?

    v31.1

    Operating system and version

    Macos 15.3

    Machine specifications

    No response

  2. achow101 commented at 8:04 PM on August 12, 2026: member

    Probably same as #35432. Can you try with #35445

  3. Fonta1n3 commented at 8:07 PM on August 12, 2026: none

    I removed that wallet now it is saying another wallet is corrupted.

    2026-08-12T20:03:33Z init message: Loading wallet…
    2026-08-12T20:03:33Z [FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef] Last client version = 290200
    2026-08-12T20:03:33Z [FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef] The descriptor ID calculated by the wallet differs from the one in DB
    2026-08-12T20:03:33Z [FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef] The descriptor ID calculated by the wallet differs from the one in DB
    2026-08-12T20:03:33Z [FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef] The descriptor ID calculated by the wallet differs from the one in DB
    2026-08-12T20:03:33Z [FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef] The descriptor ID calculated by the wallet differs from the one in DB
    2026-08-12T20:03:33Z [FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef] Setting spkMan to active: id = ad96cf140c5181648d151e6a274307a4fa9b1db5ea2a6b31c928a843bae5aa3e, type = bech32m, internal = false
    2026-08-12T20:03:33Z [FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef] Setting spkMan to active: id = 5e14f05c9feed6490801adc378be3421dc3bfbce028d45b22c63c407612ec9a7, type = bech32m, internal = true
    2026-08-12T20:03:33Z [FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef] Releasing wallet FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef..
    2026-08-12T20:03:33Z [error] Error loading /HOME/Library/Application Support/Bitcoin/FullyNoded-bcd6a9d97c4fb2d3861d0402a07efa3df734011500ec83673781aed97dd94eef/wallet.dat: Wallet corrupted
    

    Downgrading to v30.3 fixes it, I can now load both wallets fine. I can provide all the details to recreate the issue if needed.

  4. Fonta1n3 commented at 8:13 PM on August 12, 2026: none

    Probably same as #35432. Can you try with #35445

    I was using miniscript so that checks out.

  5. fanquake added this to the milestone 32.0 on Aug 13, 2026
  6. willcl-ark added the label Bug on Aug 13, 2026
  7. willcl-ark added the label Wallet on Aug 13, 2026
Contributors
Labels

Milestone
32.0


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-08-14 16:51 UTC

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