]> Untitled Git - bdk/commit
chain: split `IndexedTxGraph::insert_tx` into 3 methods
author志宇 <hello@evanlinjin.me>
Fri, 6 Oct 2023 03:07:00 +0000 (11:07 +0800)
committer志宇 <hello@evanlinjin.me>
Mon, 9 Oct 2023 14:14:04 +0000 (22:14 +0800)
commit6d4b33ef91a6c3e3443f6321cf3e3d186f77c595
tree7bef8530116122e4c2a39996d3dbc4e277edc23c
parent4f5695d43add3eab37ab12e897ac7c49f0d0787e
chain: split `IndexedTxGraph::insert_tx` into 3 methods

Instead of inserting anchors and seen_at timestamp in the same method,
we have three separate methods. This makes the API easier to understand
and makes `IndexedTxGraph` more consistent with the `TxGraph` API.
crates/bdk/src/wallet/mod.rs
crates/chain/src/indexed_tx_graph.rs
example-crates/example_cli/src/lib.rs