]> Untitled Git - bdk/commitdiff
feat(chain): Derive `Clone` on `IndexedTxGraph`
author志宇 <hello@evanlinjin.me>
Tue, 3 Dec 2024 05:40:24 +0000 (16:40 +1100)
committer志宇 <hello@evanlinjin.me>
Tue, 10 Dec 2024 10:39:23 +0000 (21:39 +1100)
crates/chain/src/indexed_tx_graph.rs

index 673cb203eae51c80b1be5421f996ae47041e5f1c..039924c9217dc497c98b5bded676eb4350f124e7 100644 (file)
@@ -13,7 +13,7 @@ use crate::{
 /// The [`IndexedTxGraph`] combines a [`TxGraph`] and an [`Indexer`] implementation.
 ///
 /// It ensures that [`TxGraph`] and [`Indexer`] are updated atomically.
-#[derive(Debug)]
+#[derive(Debug, Clone)]
 pub struct IndexedTxGraph<A, I> {
     /// Transaction index.
     pub index: I,