]> Untitled Git - bdk/commit
feat(chain): add `get` and `range` methods to `CheckPoint`
author志宇 <hello@evanlinjin.me>
Wed, 6 Mar 2024 05:04:12 +0000 (13:04 +0800)
committer志宇 <hello@evanlinjin.me>
Fri, 5 Apr 2024 08:36:00 +0000 (16:36 +0800)
commit9a62d56900a33a519dd0165ccdb91711917772f3
treec2292d44b0b797103ff5c405c677268cb9af987e
parent2bb654077d73bb165bcf415e305d8b3523a6ba85
feat(chain): add `get` and `range` methods to `CheckPoint`

These methods allow us to query for checkpoints contained within the
linked list by height and height range. This is useful to determine
checkpoints to fetch for chain sources without having to refer back to
the `LocalChain`.

Currently this is not implemented efficiently, but in the future, we
will change `CheckPoint` to use a skip list structure.
crates/bdk/src/wallet/mod.rs
crates/bitcoind_rpc/tests/test_emitter.rs
crates/chain/src/local_chain.rs
crates/chain/src/tx_graph.rs
crates/chain/tests/test_indexed_tx_graph.rs
crates/chain/tests/test_local_chain.rs
crates/esplora/tests/blocking_ext.rs