fix(chain): Make Anchor type in FullScanResult generic

This commit is contained in:
志宇 2024-05-01 21:34:09 +08:00
parent e3cfb84898
commit 721bb7f519
No known key found for this signature in database
GPG Key ID: F6345C9837C2BDE8

View File

@ -316,9 +316,9 @@ impl<K: Ord + Clone> FullScanRequest<K> {
/// Data returned from a spk-based blockchain client full scan. /// Data returned from a spk-based blockchain client full scan.
/// ///
/// See also [`FullScanRequest`]. /// 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). /// 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`]. /// The update to apply to the receiving [`TxGraph`].
pub chain_update: CheckPoint, pub chain_update: CheckPoint,
/// Last active indices for the corresponding keychains (`K`). /// Last active indices for the corresponding keychains (`K`).