File tree 2 files changed +9
-0
lines changed
cosmwasm/ibc-union/lightclient/ethereum/src
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,12 @@ pub fn verify_misbehaviour<C: ChainSpec>(
323
323
Error :: MisbehaviourCannotExist ( slot_1, slot_2) ,
324
324
) ?;
325
325
326
+ ensure (
327
+ misbehaviour. update_1 . update_data ( ) . finalized_header
328
+ != misbehaviour. update_2 . update_data ( ) . finalized_header ,
329
+ Error :: IdenticalMisbehaviourHeaders ,
330
+ ) ?;
331
+
326
332
let current_slot =
327
333
compute_slot_at_timestamp :: < C > ( client_state. genesis_time , ctx. env . block . time . seconds ( ) )
328
334
. ok_or ( Error :: IntegerOverflow ) ?;
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ pub enum Error {
52
52
client_state_latest_slot : u64 ,
53
53
consensus_state_slot : u64 ,
54
54
} ,
55
+
56
+ #[ error( "the misbehaviour headers must be different" ) ]
57
+ IdenticalMisbehaviourHeaders ,
55
58
}
56
59
57
60
impl From < Error > for StdError {
You can’t perform that action at this time.
0 commit comments