Skip to content

Commit 6326899

Browse files
committed
refactor(cardano-node-chain): update 'FakeChainObserver' implementation of 'ChainObserver'
1 parent 2b62a25 commit 6326899

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

internal/cardano-node/mithril-cardano-node-chain/src/test/double/chain_observer.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use async_trait::async_trait;
22
use tokio::sync::RwLock;
33

4-
use mithril_common::crypto_helper::{KesPeriod, OpCert};
4+
use mithril_common::crypto_helper::KesPeriod;
55
use mithril_common::entities::{
66
BlockNumber, ChainPoint, Epoch, SignerWithStake, SlotNumber, StakeDistribution, TimePoint,
77
};
@@ -202,10 +202,7 @@ impl ChainObserver for FakeChainObserver {
202202
))
203203
}
204204

205-
async fn get_current_kes_period(
206-
&self,
207-
_opcert: &OpCert,
208-
) -> Result<Option<KesPeriod>, ChainObserverError> {
205+
async fn get_current_kes_period(&self) -> Result<Option<KesPeriod>, ChainObserverError> {
209206
Ok(Some(0))
210207
}
211208
}

0 commit comments

Comments
 (0)