Skip to content

Commit

Permalink
Reduce log level of successful sync comittees.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Oct 15, 2024
1 parent eb123f0 commit 7b07dac
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
Expand Up @@ -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
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 7b07dac

Please sign in to comment.