Skip to content

Commit 427a7c0

Browse files
committed
feat: extend Chain Observer trait
With 'get_current_chain_point' function.
1 parent fe12099 commit 427a7c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mithril-common/src/chain_observer/interface.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ pub trait ChainObserver: Sync + Send {
3636
/// Retrieve the current epoch of the Cardano network
3737
async fn get_current_epoch(&self) -> Result<Option<Epoch>, ChainObserverError>;
3838

39+
/// Retrieve the current chain point of the Cardano network
40+
async fn get_current_chain_point(&self) -> Result<Option<ChainPoint>, ChainObserverError>;
41+
3942
/// Retrieve the current stake distribution of the Cardano network
4043
async fn get_current_stake_distribution(
4144
&self,

0 commit comments

Comments
 (0)