Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Update programs/misbehaviour/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Aditya <[email protected]>
  • Loading branch information
gjermundgaraba and AdityaSripal authored Aug 30, 2024
1 parent df06cd8 commit f36b596
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions programs/misbehaviour/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ pub fn check_for_misbehaviour(
)
.unwrap();

// Call into ibc-rs check_for_misbehaviour_on_misbehaviour method to ensure that the misbehaviour is valid
// i.e. the headers are same height but different commits, or headers are not monotonically increasing in time
let is_misbehaviour =
check_for_misbehaviour_on_misbehavior(misbehaviour.header1(), misbehaviour.header2())
.unwrap();
Expand Down

0 comments on commit f36b596

Please sign in to comment.