Skip to content

Commit

Permalink
fix(indexer): do not set last attestation slot for scheduled attestat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
peterbitfly committed Jan 13, 2025
1 parent abddc5f commit 54e691c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/commons/db/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ func (bigtable *Bigtable) SaveAttestationDuties(duties map[types.Slot]map[types.

mutsInclusionSlot.Add(key, mutInclusionSlot)

if inclusionSlot != MAX_CL_BLOCK_NUMBER && uint64(attestedSlot) > bigtable.LastAttestationCache[uint64(validator)] {
if inclusionSlot != MAX_CL_BLOCK_NUMBER && inclusionSlot != attestedSlot && uint64(attestedSlot) > bigtable.LastAttestationCache[uint64(validator)] {
mutLastAttestationSlot.Set(ATTESTATIONS_FAMILY, fmt.Sprintf("%d", validator), gcp_bigtable.Timestamp((attestedSlot)*1000), []byte{})
bigtable.LastAttestationCache[uint64(validator)] = uint64(attestedSlot)
mutLastAttestationSlotCount++
Expand Down

0 comments on commit 54e691c

Please sign in to comment.