Assertion failed: TxStateSerializedIndex(wtx.m_state) == TxStateSerializedIndex(state) (wallet/wallet.cpp: AddToWallet: 1094) #32625

issue azazar openend this issue on May 27, 2025
  1. azazar commented at 11:59 am on May 27, 2025: none

    Current behaviour

    Bitcoin Core v27.0.0 crashes with an assertion failure in wallet.cpp at line 1094, related to TxStateSerializedIndex(wtx.m_state) == TxStateSerializedIndex(state).

    Configuration:

    • consolidatefeerate=0.00000000
    • dbcache=450
    • fallbackfee=0.00005
    • limitancestorcount=1000
    • maxmempool=100
    • prune=10000

    Steps to reproduce

    I don’t know. Maybe mine testnet coins for a couple of weeks using same wallet as used on another machine with a testnet faucet.

    Docker log output

    02025-05-27T11:46:16Z UpdateTip: new best=00000000001c57612f512babf82041a0d9c2d6e4b1a0c74d04b808c2d3fa7192 height=4393235 version=0x2709c000 log2_work=76.497972 tx=489057004 date='2025-05-22T21:08:49Z' progress=0.998809 cache=0.3MiB(375txo)
    12025-05-27T11:46:16Z UpdateTip: new best=000000000024d736011f8a195fd63f1a09c4cf928da2b838bd7237db5c044b5f height=4393236 version=0x239e2000 log2_work=76.497972 tx=489057042 date='2025-05-22T21:08:49Z' progress=0.998809 cache=0.3MiB(424txo)
    22025-05-27T11:46:16Z Assertion failed: TxStateSerializedIndex(wtx.m_state) == TxStateSerializedIndex(state) (wallet/wallet.cpp: AddToWallet: 1094)
    3bitcoind-1 exited with code 0
    

    Last lines of debug.log (after another crash)

    02025-05-27T12:02:34Z Saw new header hash=0000000000001826ceb2433889e822a2b7dc5efc15f2b61bdc1b0a1698a3589f height=4397230
    12025-05-27T12:02:34Z Saw new header hash=0000000000002ae0914a56975041b0a000befa58b6eabe016a5a084e1e9d4955 height=4397231
    22025-05-27T12:02:34Z Saw new header hash=0000000000000ddf423f571fb7ba312a779693556b7fcd3eff09448bb8f9352e height=4397232
    32025-05-27T12:02:34Z UpdateTip: new best=000000000017a49e8d34c7f73e6c3964c3aa1b128797f2577c0a040e95c51357 height=4393233 version=0x25960000 log2_work=76.497972 tx=489056854 date='2025-05-22T21:08:49Z' progress=0.998806 cache=0.3MiB(129txo)
    42025-05-27T12:02:34Z UpdateTip: new best=00000000001fa64baf3293e92ee629e2c47f2e3dc1784ae957791515bdd3eaca height=4393232 version=0x21cdc000 log2_work=76.497972 tx=489056822 date='2025-05-22T21:08:48Z' progress=0.998806 cache=0.3MiB(189txo)
    52025-05-27T12:02:34Z UpdateTip: new best=00000000002f4716f9b3801f256f51203f628162b5d7de73e739c4f22a577915 height=4393233 version=0x21786000 log2_work=76.497972 tx=489056890 date='2025-05-22T21:08:49Z' progress=0.998806 cache=0.3MiB(227txo)
    62025-05-27T12:02:34Z UpdateTip: new best=0000000000184e787cca19e8248e0ca0bb51b751aa3196060026388d8730eee0 height=4393234 version=0x25250000 log2_work=76.497972 tx=489056966 date='2025-05-22T21:08:49Z' progress=0.998806 cache=0.3MiB(329txo)
    72025-05-27T12:02:34Z [/data/.bitcoin/testnet3/] AddToWallet 7b0cda1920c9f430ae1997f64be847211c1a86f0cee8293682c14e1b8fff9f87  update Inactive (abandoned=0)
    82025-05-27T12:02:34Z [/data/.bitcoin/testnet3/] AddToWallet f06a93da2e6c03fbce5779a815117f6536d09b12db0e840408bcc83ef9251670  update Inactive (abandoned=0)
    92025-05-27T12:02:34Z [/data/.bitcoin/testnet3/] AddToWallet ecf4165cf73b287176f486edb769a419e26c502b66ea8510ad280562c842716c  update Inactive (abandoned=0)
    

    How did you obtain Bitcoin Core

    From Docker hub: https://hub.docker.com/r/lncm/bitcoind

    What version of Bitcoin Core are you using?

    Tried both v27.0.0 and v27.2.0

  2. maflcko added the label Wallet on May 27, 2025
  3. furszy commented at 11:05 pm on May 27, 2025: member
    This was fixed in v29, specifically in #31757. Please try using the latest version.
  4. fanquake commented at 4:05 pm on May 29, 2025: member

    This was fixed in v29, specifically in #31757.

    Is that the right PR? Those changes are not in the 29.x branch (I can add them to #32589 if we want to backport).

  5. furszy commented at 5:46 pm on May 29, 2025: member

    Is that the right PR? Those changes are not in the 29.x branch (I can add them to #32589 if we want to backport).

    Hmm yes, I thought we had included it on 29.x with gui#864.. (these two combined cause the app to no longer open).


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: 2025-05-30 00:13 UTC

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