[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.
This commit is contained in:
志宇
2023-04-05 16:39:54 +08:00
parent 6e59dce10b
commit 89cfa4d78e
6 changed files with 163 additions and 142 deletions

View File

@@ -123,7 +123,7 @@ impl LocalChain {
/// Updates [`LocalChain`] with an update [`LocalChain`].
///
/// This is equivilant to calling [`determine_changeset`] and [`apply_changeset`] in sequence.
/// This is equivalent to calling [`determine_changeset`] and [`apply_changeset`] in sequence.
///
/// [`determine_changeset`]: Self::determine_changeset
/// [`apply_changeset`]: Self::apply_changeset