]> Untitled Git - bdk/commit
feat(chain)!: `TxGraph::apply_update` auto-adds `seen_at` for unanchored
author志宇 <hello@evanlinjin.me>
Fri, 23 Aug 2024 09:53:42 +0000 (09:53 +0000)
committer志宇 <hello@evanlinjin.me>
Fri, 23 Aug 2024 13:42:57 +0000 (13:42 +0000)
commit1adcb62ff0a7dd62e2c644e69365008e7f8a4389
tree8b193e5b699b642f0f28d4cc871baf37c016c1f6
parent9d47ad14ef671d83235f374e2a78f2b60e230bae
feat(chain)!: `TxGraph::apply_update` auto-adds `seen_at` for unanchored

Change `apply_update` to use the current timestamp as `seen_at` for
unanchored transactions of the update. This makes `apply_update` only
avaliable with the "std" feature.

Introduce `apply_update_at` which includes an optional `seen_at` input.
This is the no-std version of `apply_update`.

Also update docs.
crates/chain/src/indexed_tx_graph.rs
crates/chain/src/tx_graph.rs
crates/electrum/tests/test_electrum.rs
crates/wallet/src/wallet/mod.rs
example-crates/example_electrum/src/main.rs
example-crates/example_esplora/src/main.rs
example-crates/wallet_electrum/src/main.rs
example-crates/wallet_esplora_async/src/main.rs
example-crates/wallet_esplora_blocking/src/main.rs