Skip to content

Commit

Permalink
fix(trin-beacon): fix light client finality update validation (#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenev authored Oct 10, 2024
1 parent ae394cd commit 7bf62e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trin-beacon/src/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ impl Validator<BeaconContentKey> for BeaconValidator {
// slot
let finalized_slot = lc_finality_update.get_finalized_slot();

if key.finalized_slot != finalized_slot {
if key.finalized_slot > finalized_slot {
return Err(anyhow!(
"Light client finality update finalized slot does not match the content key finalized slot: {} != {}",
"Light client finality update finalized slot should be equal or greater than content key finalized slot: {} < {}",
finalized_slot,
key.finalized_slot
));
Expand Down

0 comments on commit 7bf62e0

Please sign in to comment.