diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fec57b..587f158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ dev: 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 diff --git a/services/controller/standard/events.go b/services/controller/standard/events.go index c098b7a..bc466f3 100644 --- a/services/controller/standard/events.go +++ b/services/controller/standard/events.go @@ -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") + } }