]> Untitled Git - bdk/commit
[chain_redesign] Various `LocalChain` improvements
author志宇 <hello@evanlinjin.me>
Fri, 5 May 2023 08:55:21 +0000 (16:55 +0800)
committer志宇 <hello@evanlinjin.me>
Fri, 5 May 2023 08:55:21 +0000 (16:55 +0800)
commita56d289eef0ea241bfe29b4c1069966353e4ca57
tree3947703d647325ee907cb578e8d616c31554b079
parent2ccc116edabaf59d77324f291a438fc5a8204b3f
[chain_redesign] Various `LocalChain` improvements

* Introduce `LocalChain::inner` method to get the inner map of block
  height to hash.
* Replace `LocalChain::get_block` (which outputted `BlockId`, thus able
  to return invalid representation) with `get_blockhash` that just
returns a `BlockHash`.
* Remove `TODO` comments that should be github tickets.
crates/chain/src/local_chain.rs
crates/chain/tests/test_indexed_tx_graph.rs