]> Untitled Git - bdk/commit
feat(chain): make various insert tx methods more generic
author志宇 <hello@evanlinjin.me>
Mon, 2 Sep 2024 09:32:19 +0000 (17:32 +0800)
committer志宇 <hello@evanlinjin.me>
Tue, 3 Sep 2024 06:03:07 +0000 (14:03 +0800)
commit67d5fa695f3f748d176c182d25be5ef70f5127ed
treea10a9c345ed61974765bedf6cd12c181343b8c7d
parent56970a969f99181cf1c1a3687608e5b1d3eee93e
feat(chain): make various insert tx methods more generic

Instead of having `Transaction` as input, we have a generic parameter
where the bound is `Into<Arc<Transaction>>` for the following methods:

* `IndexedTxGraph::insert_tx`
* `IndexedTxGraph::batch_insert_unconfirmed`
* `TxGraph::batch_insert_unconfirmed`
crates/chain/src/indexed_tx_graph.rs
crates/chain/src/tx_graph.rs