Skip to content

Commit 4e87a39

Browse files
committed
feat: refactor calculate_kes_period function in pallas observer
- update `calculate_kes_period` function in `pallas_observer.rs` to include a new example with chain_point and slots_per_kes_period values - remove the old example from the `calculate_kes_period` function in `pallas_observer.rs`
1 parent 7e51687 commit 4e87a39

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

mithril-common/src/chain_observer/pallas_observer.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,11 @@ impl PallasChainObserver {
250250
///
251251
/// ## Example:
252252
///
253-
///! ```no_run
254-
///! let (chain_point, slots_per_kes_period) = (Point::new(1), 10);
255-
///! match calculate_kes_period(&self, chain_point, slots_per_kes_period) {
256-
///! Ok(kes_period) => println!("Current KES Period: {}", kes_period),
257-
///! Err(e) => println!("Error occurred: {}", e),
258-
///! }
259-
///! ```
253+
/// let (chain_point, slots_per_kes_period) = (Point::new(1), 10);
254+
/// match calculate_kes_period(&self, chain_point, slots_per_kes_period) {
255+
/// Ok(kes_period) => println!("Current KES Period: {}", kes_period),
256+
/// Err(e) => println!("Error occurred: {}", e),
257+
/// }
260258
async fn calculate_kes_period(
261259
&self,
262260
chain_point: Point,

0 commit comments

Comments
 (0)