Skip to content

Commit

Permalink
Merge pull request #265 from attestantio/trace-successful-synccommitt…
Browse files Browse the repository at this point in the history
…ee-completions

Reduce log level of successful sync comittees.
  • Loading branch information
mcdee authored Oct 15, 2024
2 parents d9ab64d + e45c642 commit e6039ab
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1.9.1:
- ensure that secondary validator registrations take place for all accounts
- reduce the log level of successful sync committee duties

1.9.0:
- allow Vouch to start with some consensus nodes unavailable
Expand Down
24 changes: 17 additions & 7 deletions services/controller/standard/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,21 @@ func (s *Service) VerifySyncCommitteeMessages(ctx context.Context, data any) {
includedCommitteeIndices = append(includedCommitteeIndices, uint64(committeeIndex))
}
}
log.Debug().Uints64("incorrect_validator_indices", []uint64{}).
Uints64("incorrect_committee_indices", []uint64{}).
Uints64("missing_validator_indices", missingValidatorIndices).
Uints64("missing_committee_indices", missingCommitteeIndices).
Uints64("included_validator_indices", includedValidatorIndices).
Uints64("included_committee_indices", includedCommitteeIndices).
Msg("Verifying sync committee messages for validators complete")
if len(missingValidatorIndices) == 0 {
log.Trace().Uints64("incorrect_validator_indices", []uint64{}).
Uints64("incorrect_committee_indices", []uint64{}).
Uints64("missing_validator_indices", missingValidatorIndices).
Uints64("missing_committee_indices", missingCommitteeIndices).
Uints64("included_validator_indices", includedValidatorIndices).
Uints64("included_committee_indices", includedCommitteeIndices).
Msg("Verifying sync committee messages for validators complete")
} else {
log.Debug().Uints64("incorrect_validator_indices", []uint64{}).
Uints64("incorrect_committee_indices", []uint64{}).
Uints64("missing_validator_indices", missingValidatorIndices).
Uints64("missing_committee_indices", missingCommitteeIndices).
Uints64("included_validator_indices", includedValidatorIndices).
Uints64("included_committee_indices", includedCommitteeIndices).
Msg("Verifying sync committee messages for validators complete")
}
}

0 comments on commit e6039ab

Please sign in to comment.