LLFourn / bdk_core_staging

Staging area for bdk_core initial development
15 stars 12 forks source link

`SparseChain` API for invalidating checkpoints directly #113

Closed evanlinjin closed 1 year ago

evanlinjin commented 1 year ago

Something like...

/// Invalidates checkpoints `from_height` (inclusive) and the displaced
/// transactions are moved to `TxHeight::Unconfirmed`.
pub fn invalidate_checkpoints_changeset(&self, from_height: u32) -> ChangeSet {
    todo!()
}

With this API, we can simplify the complexity of our RPC Chain Example (#89). We will not need the must_include variable within Client::emit_blocks.

evanlinjin commented 1 year ago

Done by #111