Skip to content

V.0.18.1. Regtest loses blocks after a crash.  #19989

@educob

Description

@educob

Hi.

Everything is working ok, bitcoin node records and notifies new txs and new blocks which I record in a database. But when I restart my laptop after a crash, my database has more blocks than the blockchain.This time a couple of extra blocks.
It happens almost everytime my computer crashes.

What could be causing this? Maybe the latest blocks are not written to disk (kept in cache)?
If this happens with testnet and mainnet is not a problemn for my app cause any missing blocks on the node would be retrived from the blockchain which is not the case in my solitary regtest.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions