]> Untitled Git - bdk/commit
[bdk_chain_redesign] Rm `HashSet` from `TxGraph::relevant_heights`
author志宇 <hello@evanlinjin.me>
Thu, 20 Apr 2023 07:56:28 +0000 (15:56 +0800)
committer志宇 <hello@evanlinjin.me>
Thu, 20 Apr 2023 07:56:28 +0000 (15:56 +0800)
commit6c495707423cc7ce26c3027893dc812281b73053
tree29d15aca6060abf201a157a3b31f55463c41c414
parent1003fe2ee6167e110b0195e2431560b5b222e2f1
[bdk_chain_redesign] Rm `HashSet` from `TxGraph::relevant_heights`

The `HashSet` was used for iterating without duplicate items. However,
since `anchors` is a `BTreeSet`, heights are in order. So a single
variable tracking last height will be sufficient.
crates/chain/src/tx_graph.rs