Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hardcode 15s clock drift #358

Merged
merged 9 commits into from
Mar 11, 2025
2 changes: 1 addition & 1 deletion programs/sp1-programs/misbehaviour/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn check_for_misbehaviour(
let options = Options {
trust_threshold: client_state.trustLevel.clone().into(),
trusting_period: Duration::from_secs(client_state.trustingPeriod.into()),
clock_drift: Duration::default(),
clock_drift: Duration::from_secs(15),
};

// Call into ibc-rs verify_misbehaviour function to verify that both headers are valid given their respective trusted consensus states
Expand Down
2 changes: 1 addition & 1 deletion programs/sp1-programs/update-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn update_client(
let options = Options {
trust_threshold: client_state.trustLevel.clone().into(),
trusting_period: Duration::from_secs(client_state.trustingPeriod.into()),
clock_drift: Duration::default(),
clock_drift: Duration::from_secs(15),
};

let mut ctx = types::validation::ClientValidationCtx::new(time);
Expand Down
Loading