Skip to content

[chain] Make LocalChain::apply_changeset infallible #75

Open
@ValuedMammal

Description

@ValuedMammal

It seems like the only way this can fail is if we don't find a base AND extension doesn't include block 0, but I think one of these will have to be true, i.e. extension must have a genesis block or else we have a base.

https://github.com/bitcoindevkit/bdk/blob/775e4aee3a9ec2d99adb129f7a9367a3a15c7032/crates/chain/src/local_chain.rs#L23-L30

https://github.com/bitcoindevkit/bdk/blob/775e4aee3a9ec2d99adb129f7a9367a3a15c7032/crates/chain/src/local_chain.rs#L43-L48

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiA breaking API changenew featureNew feature or request

    Type

    No type

    Projects

    Status

    Discussion

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions