]> Untitled Git - bdk/commit
chain: add helper methods on `CheckPoint`
author志宇 <hello@evanlinjin.me>
Wed, 4 Oct 2023 08:57:19 +0000 (16:57 +0800)
committer志宇 <hello@evanlinjin.me>
Mon, 9 Oct 2023 14:14:03 +0000 (22:14 +0800)
commit43bc813c6498b5b021d70a6127ff7e57d7337813
tree63b6e27c260a6e4f1c5f8363a7aab1dc1b076f27
parentb3db5ca9df4302fddcd5474569849371f2be7e2d
chain: add helper methods on `CheckPoint`

* `CheckPoint::from_header` allows us to construct a checkpoint from
  block header.
* `CheckPoint::into_update` transforms the cp into a
  `local_chain::Update`.
crates/chain/src/local_chain.rs