Skip to content

Commit

Permalink
fix: bug in Dencun epoch calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderLukin committed Jan 16, 2024
1 parent d351463 commit c43a2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duty/attestation/attestation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class AttestationService {
const attValidTarget = attestation.target_root == canonTarget;
const attValidSource = attestation.source_root == canonSource;
const attIncDelay = Number(attestation.included_in_block - attestation.slot);
const isDencunFork = epoch < this.dencunEpoch;
const isDencunFork = epoch >= this.dencunEpoch;
const flags = getFlags(attIncDelay, attValidSource, attValidTarget, attValidHead, isDencunFork);
for (const [valCommIndex, validatorIndex] of committee.entries()) {
const attHappened = attestation.bits.get(valCommIndex);
Expand Down

0 comments on commit c43a2aa

Please sign in to comment.