Skip to content

Commit 8b3062f

Browse files
committed
feat: add method to get latest checkpoint.
1 parent f0753cd commit 8b3062f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wallet/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,11 @@ where
626626
fn stage(&mut self, changeset: impl Into<ChangeSet<K>>) {
627627
self.stage.merge(changeset.into());
628628
}
629+
630+
/// Returns the latest checkpoint.
631+
pub fn latest_checkpoint(&self) -> CheckPoint {
632+
self.chain.tip()
633+
}
629634
}
630635

631636
// impl Wallet {

0 commit comments

Comments
 (0)