Skip to content

Commit

Permalink
fix typo of the function ValidateBasic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mdaiki0730 committed Nov 24, 2022
1 parent e6f57a1 commit ad6a42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func (h Header) ValidateBasic() error {
// Basic validation of hashes related to application data.
// Will validate fully against state in state#ValidateBlock.
if err := ValidateHash(h.VotersHash); err != nil {
return fmt.Errorf("wrong ValidatorsHash: %v", err)
return fmt.Errorf("wrong VotersHash: %v", err)
}
// TODO When we add `Header.ValidatorsHash` in a future commit, we have to add a similar check here.
if err := ValidateHash(h.NextValidatorsHash); err != nil {
Expand Down

0 comments on commit ad6a42e

Please sign in to comment.