Skip to content

Commit

Permalink
Merge pull request #413 from dashevo/TD-89-check-validator-set-on-nil
Browse files Browse the repository at this point in the history
fix: check a receiver of ValidatorSet on nil
  • Loading branch information
shotonoff authored Jul 19, 2022
2 parents 510ca2a + d99ec58 commit 97821aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/validator_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,9 @@ func (vals *ValidatorSet) StringIndentedBasic(indent string) string {

// MarshalZerologObject implements zerolog.LogObjectMarshaler
func (vals *ValidatorSet) MarshalZerologObject(e *zerolog.Event) {
if vals == nil {
return
}
e.Str("proposer", vals.GetProposer().ProTxHash.ShortString())
e.Str("quorum_hash", vals.QuorumHash.ShortString())
validators := zerolog.Arr()
Expand Down

0 comments on commit 97821aa

Please sign in to comment.