]> Untitled Git - bdk/commit
[bdk_chain_redesign] Rm unnecessary code and premature optimisation
author志宇 <hello@evanlinjin.me>
Thu, 20 Apr 2023 10:07:26 +0000 (18:07 +0800)
committer志宇 <hello@evanlinjin.me>
Thu, 20 Apr 2023 10:07:26 +0000 (18:07 +0800)
commit34a7bf5afe2d78db47b149f4958f0a0365b017d0
tree89a47992c439b72978a5052902a98d9d0ed5b358
parent6c495707423cc7ce26c3027893dc812281b73053
[bdk_chain_redesign] Rm unnecessary code and premature optimisation

* Remove `chain_oracle::CacheBackend` for now as it is not used.
* `SparseChain` does not need to implement `ChainOracle`.
* Remove filter predicate for `list..` methods of `TxGraph` and
  `IndexedTxGraph` as this is premature optimisation.
* `Append` can be implemented for all `BTreeMap`s and `BTreeSet`s,
  instead of only `local_chain::ChangeSet`.
crates/chain/src/chain_oracle.rs
crates/chain/src/indexed_tx_graph.rs
crates/chain/src/local_chain.rs
crates/chain/src/sparse_chain.rs
crates/chain/src/tx_data_traits.rs
crates/chain/src/tx_graph.rs