Skip to content

Commit dd8f890

Browse files
committed
refactor(cardano-node-chain): update 'get_current_kes_period' signature in 'ChainObserver' trait
Remove the obsolete input for an Operational Certificate.
1 parent 7ec438a commit dd8f890

File tree

1 file changed

+3
-6
lines changed
  • internal/cardano-node/mithril-cardano-node-chain/src/chain_observer

1 file changed

+3
-6
lines changed

internal/cardano-node/mithril-cardano-node-chain/src/chain_observer/interface.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use async_trait::async_trait;
22
use thiserror::Error;
33

44
use mithril_common::StdError;
5-
use mithril_common::crypto_helper::{KesPeriod, OpCert};
5+
use mithril_common::crypto_helper::KesPeriod;
66
use mithril_common::entities::{ChainPoint, Epoch, StakeDistribution};
77

88
use crate::entities::{ChainAddress, TxDatum};
@@ -43,11 +43,8 @@ pub trait ChainObserver: Sync + Send {
4343
&self,
4444
) -> Result<Option<StakeDistribution>, ChainObserverError>;
4545

46-
/// Retrieve the KES period of an operational certificate
47-
async fn get_current_kes_period(
48-
&self,
49-
_opcert: &OpCert,
50-
) -> Result<Option<KesPeriod>, ChainObserverError> {
46+
/// Retrieve the current KES period
47+
async fn get_current_kes_period(&self) -> Result<Option<KesPeriod>, ChainObserverError> {
5148
Ok(None)
5249
}
5350
}

0 commit comments

Comments
 (0)