Skip to content

Commit

Permalink
couldNotSaveSlashableAtt ==> couldNotCheckSlashableAtt
Browse files Browse the repository at this point in the history
  • Loading branch information
nalepae committed Jan 30, 2024
1 parent c15441a commit a23ed6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/slasher/detect_attestations_test.go
Expand Up @@ -288,7 +288,7 @@ func Test_processQueuedAttestations(t *testing.T) {
}

require.LogsDoNotContain(t, hook, couldNotSaveAttRecord)
require.LogsDoNotContain(t, hook, couldNotSaveSlashableAtt)
require.LogsDoNotContain(t, hook, couldNotCheckSlashableAtt)
require.LogsDoNotContain(t, hook, couldNotProcessAttesterSlashings)
})
}
Expand Down
4 changes: 2 additions & 2 deletions beacon-chain/slasher/receive.go
Expand Up @@ -14,7 +14,7 @@ import (

const (
couldNotSaveAttRecord = "Could not save attestation records to DB"
couldNotSaveSlashableAtt = "Could not check slashable attestations"
couldNotCheckSlashableAtt = "Could not check slashable attestations"
couldNotProcessAttesterSlashings = "Could not process attester slashings"
)

Expand Down Expand Up @@ -125,7 +125,7 @@ func (s *Service) processQueuedAttestations(ctx context.Context, slotTicker <-ch
// Check for slashings.
slashings, err := s.checkSlashableAttestations(ctx, currentEpoch, validAtts)
if err != nil {
log.WithError(err).Error(couldNotSaveSlashableAtt)
log.WithError(err).Error(couldNotCheckSlashableAtt)
continue
}

Expand Down

0 comments on commit a23ed6f

Please sign in to comment.