]> Untitled Git - bdk/commit
[bdk_chain_redesign] Fix `tx_graph::Additions::append` logic
author志宇 <hello@evanlinjin.me>
Fri, 28 Apr 2023 10:54:36 +0000 (18:54 +0800)
committer志宇 <hello@evanlinjin.me>
Fri, 28 Apr 2023 10:54:36 +0000 (18:54 +0800)
commite536307e5c5532fc0cac0657a26609cfd26115bf
tree26d0fefa73a14e4b69a02d706f364156497a485c
parentf101dde09b6067c17b0b64ea3e3efd358a32a820
[bdk_chain_redesign] Fix `tx_graph::Additions::append` logic

* `Additions` now implements `Append` and uses `Append` to implement
  `append()`.
* `append()` logic enforces that `last_seen` values should only
  increase.
* Test written for `append()` with `last_seen` behaviour.
crates/chain/src/chain_graph.rs
crates/chain/src/tx_graph.rs
crates/chain/tests/test_tx_graph.rs