Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Jun 28, 2023
1 parent bf6fa9a commit bc36366
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ && isFromFarFuture(attestation, genesisTime, currentTimeMillis)) {
if (!isAttestationSlotCurrentOrPreviousEpoch(attestationSlot, genesisTime, currentTimeMillis)) {
return Optional.of(SlotInclusionGossipValidationResult.IGNORE);
}
// attestation is after current time, but not from the far future, so can save for future
// processing
return Optional.of(SlotInclusionGossipValidationResult.SAVE_FOR_FUTURE);
if (isCurrentTimeBeforeMinimumAttestationBroadcastTime(
attestationSlot, genesisTime, currentTimeMillis)) {
return Optional.of(SlotInclusionGossipValidationResult.SAVE_FOR_FUTURE);
}
return Optional.empty();
}

private boolean isAttestationSlotAfterCurrentTime(
Expand Down

0 comments on commit bc36366

Please sign in to comment.