Compare commits

...

2 Commits

Author SHA1 Message Date
james-prysm
11d5e3e9cb Merge branch 'develop' into e2e-testing 2022-06-08 17:05:58 -04:00
James He
3ea3ea9ddf initial commit 2022-06-08 09:14:31 -05:00

View File

@@ -214,10 +214,14 @@ func ValidateSyncMessageTime(slot types.Slot, genesisTime time.Time, clockDispar
// Verify sync message slot is within the time range.
if messageTime.Before(lowerBound) || messageTime.After(upperBound) {
return fmt.Errorf(
"sync message slot %d not within allowable range of %d to %d (current slot)",
"sync message slot %d not within allowable range of %d to %d (current slot), clock desparity %v, messageTime: %v, lowerBound: %v, upperBound: %v",
slot,
uint64(lowerBound.Unix()-genesisTime.Unix())/params.BeaconConfig().SecondsPerSlot,
uint64(upperBound.Unix()-genesisTime.Unix())/params.BeaconConfig().SecondsPerSlot,
clockDisparity,
messageTime,
lowerBound,
upperBound,
)
}
return nil