diff --git a/pallas-applying/src/shelley_ma.rs b/pallas-applying/src/shelley_ma.rs index 3a436d3b..036ef178 100644 --- a/pallas-applying/src/shelley_ma.rs +++ b/pallas-applying/src/shelley_ma.rs @@ -408,7 +408,8 @@ fn compute_script_hash(script: &NativeScript) -> PolicyId { pallas_crypto::hash::Hasher::<224>::hash(&payload) } -// Checks all certificates in order, and counts the relevant ones for computing deposits. +// Checks all certificates in order, and counts the relevant ones for computing +// deposits. #[allow(clippy::too_many_arguments)] fn check_certificates( cert_opt: &Option>, @@ -591,7 +592,7 @@ fn check_pool_retirement( if !ps.pool_params.contains_key(pool_hash) { return Err(ShelleyMA(PoolNotRegistered)); } - if (*cepoch < *repoch) & (*repoch <= *cepoch + *emax as u64) { + if (*cepoch < *repoch) & (*repoch <= *cepoch + *emax) { ps.retiring.insert(*pool_hash, *repoch); Ok(()) } else { diff --git a/pallas-traverse/src/update.rs b/pallas-traverse/src/update.rs index 674b8879..b135499d 100644 --- a/pallas-traverse/src/update.rs +++ b/pallas-traverse/src/update.rs @@ -79,7 +79,6 @@ impl<'b> MultiEraUpdate<'b> { let up = Box::new(Cow::Owned(up)); Ok(MultiEraUpdate::Conway(up)) } - _ => unimplemented!("unimplemented era"), } }