Skip to content

Commit

Permalink
Merge pull request #9 from datachainlab/allow-zero-max-clock-drift
Browse files Browse the repository at this point in the history
Allow zero for `max_clock_drift`

Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele authored Aug 29, 2023
2 parents acf1999 + 7fc95be commit 678f0d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/ibc/src/client_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ impl<const SYNC_COMMITTEE_SIZE: usize> ClientState<SYNC_COMMITTEE_SIZE> {
Err(Error::UninitializedClientStateField("trust_level"))
} else if self.trusting_period == Duration::default() {
Err(Error::UninitializedClientStateField("trusting_period"))
} else if self.max_clock_drift == Duration::default() {
Err(Error::UninitializedClientStateField("max_clock_drift"))
} else if self.latest_slot == Slot::default() {
Err(Error::UninitializedClientStateField("latest_slot"))
} else if self.latest_execution_block_number == U64::default() {
Expand Down

0 comments on commit 678f0d1

Please sign in to comment.