Skip to content

Commit 598f8e5

Browse files
committed
refactor(aggregator): update 'ChainObserver' implementation
1 parent c061eee commit 598f8e5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mithril-aggregator/src/services/signer_registration/verifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl SignerRegistrationVerifier for MithrilSignerRegistrationVerifier {
4545
let kes_period = match &signer.operational_certificate {
4646
Some(operational_certificate) => Some(
4747
self.chain_observer
48-
.get_current_kes_period(operational_certificate)
48+
.get_current_kes_period()
4949
.await?
5050
.unwrap_or_default()
5151
- operational_certificate.start_kes_period as KesPeriod,

mithril-aggregator/src/test/double/mocks.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use async_trait::async_trait;
33
use mithril_cardano_node_chain::chain_observer::{ChainObserver, ChainObserverError};
44
use mithril_cardano_node_chain::entities::{ChainAddress, TxDatum};
55
use mithril_common::certificate_chain::CertificateVerifier;
6-
use mithril_common::crypto_helper::{KesPeriod, OpCert, ProtocolGenesisVerificationKey};
6+
use mithril_common::crypto_helper::{KesPeriod, ProtocolGenesisVerificationKey};
77
use mithril_common::entities::{Certificate, ChainPoint, Epoch, StakeDistribution};
88
use mithril_persistence::store::StakeStorer;
99

@@ -63,7 +63,6 @@ mock! {
6363

6464
async fn get_current_kes_period(
6565
&self,
66-
opcert: &OpCert,
6766
) -> Result<Option<KesPeriod>, ChainObserverError>;
6867
}
6968
}

0 commit comments

Comments
 (0)