Skip to content

Commit

Permalink
Merge pull request #267 from attestantio/cherry-pick
Browse files Browse the repository at this point in the history
Reduce log level of successful sync comittees.
  • Loading branch information
Bez625 authored Oct 15, 2024
2 parents 2c82e25 + 3db51e7 commit 48ccaac
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 48ccaac

Please sign in to comment.