Skip to content

Add disconnect-block functionality for LocalChain and Wallet #116

@evanlinjin

Description

@evanlinjin

Describe the enhancement

impl LocalChain {
    /// Removes blocks from the given `block_id`.
    ///
    /// Will remove blocks with a height equal or greater than `block_id`,
    /// but only if `block_id` exists in the chain.
    pub fn disconnect_block(&mut self, block_id: BlockId) -> ChangeSet {
        todo!()
    }
}

Use case

The APIs of utreexod (based on btcd) and bitcoind ZeroMQ has disconnect-block notifications. BDK should be able to handle such notifications.

Metadata

Metadata

Assignees

Labels

new featureNew feature or request

Type

No type

Projects

Status

Discussion

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions