]> Untitled Git - bdk/commit
[bdk_chain_redesign] Better names, comments and generic bounds
author志宇 <hello@evanlinjin.me>
Wed, 5 Apr 2023 08:39:54 +0000 (16:39 +0800)
committer志宇 <hello@evanlinjin.me>
Wed, 5 Apr 2023 08:39:54 +0000 (16:39 +0800)
commit89cfa4d78e059f9fe2544b690bbbf90e92b3efee
treee4d8be9e01e569e05b7adb10be71592e95f41c81
parent6e59dce10b66212d7180cadabba887cc4d20fc32
[bdk_chain_redesign] Better names, comments and generic bounds

* Instead of implementing `ChainPosition` for `ObservedIn<BlockId>` to
  use `FullTxOut` methods (`is_spendable_at` and `is_mature`), we create
  alternative versions of those methods that require bounds with `Anchor`.
  This removes all `ObservedIn<A>: ChainPosition` bounds for methods of
  `IndexedTxGraph`.

* Various improvements to comments and names.
crates/chain/src/chain_data.rs
crates/chain/src/chain_graph.rs
crates/chain/src/indexed_tx_graph.rs
crates/chain/src/local_chain.rs
crates/chain/src/sparse_chain.rs
crates/chain/src/tx_graph.rs