]> Untitled Git - bdk/commit
[bdk_chain_redesign] `chain_oracle::Cache`
author志宇 <hello@evanlinjin.me>
Wed, 5 Apr 2023 02:57:26 +0000 (10:57 +0800)
committer志宇 <hello@evanlinjin.me>
Wed, 5 Apr 2023 02:57:26 +0000 (10:57 +0800)
commit6e59dce10b66212d7180cadabba887cc4d20fc32
tree883f14ac055bfd2a25e78b462dfac4c2a5d3b53d
parenta7eaebbb77f8794c5ff3717aaf0cf73dd5a77480
[bdk_chain_redesign] `chain_oracle::Cache`

Introduce `chain_oracle::Cache` which is a cache for requests to the
chain oracle. `ChainOracle` has also been moved to the `chain_oracle`
module.

Introduce `get_tip_in_best_chain` method to the `ChainOracle` trait.
This allows for guaranteeing that chain state can be consistent across
operations with `IndexedTxGraph`.
crates/chain/src/chain_oracle.rs [new file with mode: 0644]
crates/chain/src/lib.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