You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #1582: refactor!: Implement generics for CheckPoint, LocalChain, and spk_client types
8bc2391 docs(chain): update docs for `CheckPoint` and `SyncRequest` (Wei Chen)
7cf4e5b test(chain): Add test for inserting `Header` into `LocalChain` (Wei Chen)
93a382d refactor!: make `CheckPoint`, `LocalChain`, and `SpkClient` take a generic (Wei Chen)
Pull request description:
Implements #1937.
### Description
This PR is a step towards header checkpointing for `bdk_electrum`. The goal is to be able to store whole headers in `CheckPoint` so they do not have to be re-downloaded. Storing headers this way would be a prerequisite for caching of merkle proofs and for median time passed.
### Notes to the reviewers
### Changelog notice
* `CheckPoint` takes in a generic.
* `LocalChain` and `ChangeSet` take in generics.
* `spk_client` types can take in generics.
### Checklists
#### All Submissions:
* [x] I've signed all my commits
* [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
* [x] I ran `cargo fmt` and `cargo clippy` before committing
ACKs for top commit:
evanlinjin:
ACK 8bc2391
Tree-SHA512: 3c11b559a8d8f7cdf0418dbece7821e3304acd6b6e96b3e1827cdfc30b4a268c9d3511a9bc3d11408198ac93a96a84e449b879f562f368dc44a945671ef98e39
0 commit comments