diff --git a/crates/light-client-verifier/src/consensus.rs b/crates/light-client-verifier/src/consensus.rs index f4f627b..e78998f 100644 --- a/crates/light-client-verifier/src/consensus.rs +++ b/crates/light-client-verifier/src/consensus.rs @@ -231,7 +231,7 @@ impl< )) } } else { - Err(Error::InvalidSingaturePeriod( + Err(Error::UnexpectedSingaturePeriod( store_period, update_signature_period, "signature period must be equal to store_period or store_period+1".into(), diff --git a/crates/light-client-verifier/src/errors.rs b/crates/light-client-verifier/src/errors.rs index 000a3ec..2de8143 100644 --- a/crates/light-client-verifier/src/errors.rs +++ b/crates/light-client-verifier/src/errors.rs @@ -13,8 +13,8 @@ type BoxedTrieError = Box>; #[derive(Debug, Display)] pub enum Error { - /// invalid signature period: `store={0} signature={1} reason={2}` - InvalidSingaturePeriod(SyncCommitteePeriod, SyncCommitteePeriod, String), + /// unexpected signature period: `store={0} signature={1} reason={2}` + UnexpectedSingaturePeriod(SyncCommitteePeriod, SyncCommitteePeriod, String), /// invalid finalized period: `store={0} finalized={1} reason={2}` InvalidFinalizedPeriod(SyncCommitteePeriod, SyncCommitteePeriod, String), /// not finalized period: `finalized={0} attested={1}`