Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Sep 26, 2024
1 parent 0f4eb9c commit 098ae79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion relayer/relays/beacon/header/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,12 @@ func (h *Header) findLatestCheckPoint(slot uint64) (state.FinalizedHeader, error
statePeriodIndex := beaconState.BeaconSlot / syncCommitteePeriod

if beaconState.BeaconSlot < slot {
break
log.WithFields(log.Fields{"index": index}).Info("break condition")
//break
}
// Found the beaconState
if beaconState.BeaconSlot > slot && beaconState.BeaconSlot < slot+syncCommitteePeriod && slotPeriodIndex == statePeriodIndex {
log.WithFields(log.Fields{"index": index}).Info("found it!")
break
}
}
Expand Down

0 comments on commit 098ae79

Please sign in to comment.