Skip to content

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

Open
@azazar

Description

@azazar

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

2025-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)
2025-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)
2025-05-27T11:46:16Z Assertion failed: TxStateSerializedIndex(wtx.m_state) == TxStateSerializedIndex(state) (wallet/wallet.cpp: AddToWallet: 1094)
bitcoind-1 exited with code 0

Last lines of debug.log (after another crash)

2025-05-27T12:02:34Z Saw new header hash=0000000000001826ceb2433889e822a2b7dc5efc15f2b61bdc1b0a1698a3589f height=4397230
2025-05-27T12:02:34Z Saw new header hash=0000000000002ae0914a56975041b0a000befa58b6eabe016a5a084e1e9d4955 height=4397231
2025-05-27T12:02:34Z Saw new header hash=0000000000000ddf423f571fb7ba312a779693556b7fcd3eff09448bb8f9352e height=4397232
2025-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)
2025-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)
2025-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)
2025-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)
2025-05-27T12:02:34Z [/data/.bitcoin/testnet3/] AddToWallet 7b0cda1920c9f430ae1997f64be847211c1a86f0cee8293682c14e1b8fff9f87  update Inactive (abandoned=0)
2025-05-27T12:02:34Z [/data/.bitcoin/testnet3/] AddToWallet f06a93da2e6c03fbce5779a815117f6536d09b12db0e840408bcc83ef9251670  update Inactive (abandoned=0)
2025-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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions