]> Untitled Git - bdk/commitdiff
fix(chain): Make `Anchor` type in `FullScanResult` generic
author志宇 <hello@evanlinjin.me>
Wed, 1 May 2024 13:34:09 +0000 (21:34 +0800)
committer志宇 <hello@evanlinjin.me>
Fri, 10 May 2024 06:11:19 +0000 (14:11 +0800)
crates/chain/src/spk_client.rs

index 6eb32da71a0dd4d22a2696ccb031fda1f23ac15b..5b2366e922f1c823e287b62524c053d23f6a22d6 100644 (file)
@@ -316,9 +316,9 @@ impl<K: Ord + Clone> FullScanRequest<K> {
 /// Data returned from a spk-based blockchain client full scan.
 ///
 /// See also [`FullScanRequest`].
-pub struct FullScanResult<K> {
+pub struct FullScanResult<K, A = ConfirmationTimeHeightAnchor> {
     /// The update to apply to the receiving [`LocalChain`](crate::local_chain::LocalChain).
-    pub graph_update: TxGraph<ConfirmationTimeHeightAnchor>,
+    pub graph_update: TxGraph<A>,
     /// The update to apply to the receiving [`TxGraph`].
     pub chain_update: CheckPoint,
     /// Last active indices for the corresponding keychains (`K`).