Skip to content

Bug: LDK panics after BitcoinD lost a block because of unclean restart  #1814

Open
@G8XSU

Description

@G8XSU

BitcoinD found a block, sent to LDK.
We updated best_block_header hash in ChannelManager in LDK.
Afterwards bitcoind killed/"unclean restart"/crashed without persisting the block in disk.

Later bitcoind comes back online, LDK tries to get block_header by hash for channelManager, (we got this block_header_hash from storage).

LDK panics because bitcoinD returned "BlockNotFound" because that block wasn't persisted.

Related :
jamaljsr/polar#614

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions