Skip to content

Commit

Permalink
chore: improve error messages for config extraction process
Browse files Browse the repository at this point in the history
- change error message from obtaining genesis config to extracting the config.
  • Loading branch information
falcucci committed Feb 28, 2024
1 parent 2390899 commit 8343f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mithril-common/src/chain_observer/pallas_observer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl PallasChainObserver {

let config = genesis_config
.first()
.with_context(|| "PallasChainObserver failed to get genesis config")?;
.with_context(|| "PallasChainObserver failed to extract the config")?;

let slots_per_kes_period = config.slots_per_kes_period as u64;
let current_kes_period = chain_point.slot_or_default() / slots_per_kes_period;
Expand Down

0 comments on commit 8343f83

Please sign in to comment.