Skip to content

Commit

Permalink
removing commented out code in validate basic
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Dec 15, 2022
1 parent 075f503 commit 197235e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/light-clients/06-solomachine/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,9 @@ func (h Header) GetPubKey() (cryptotypes.PubKey, error) {
return publicKey, nil
}

// ValidateBasic ensures that the sequence, signature and public key have all
// ValidateBasic ensures that the timestamp, signature and public key have all
// been initialized.
func (h Header) ValidateBasic() error {
// if h.Sequence == 0 {
// return sdkerrors.Wrap(clienttypes.ErrInvalidHeader, "sequence number cannot be zero")
// }

if h.Timestamp == 0 {
return sdkerrors.Wrap(clienttypes.ErrInvalidHeader, "timestamp cannot be zero")
}
Expand Down

0 comments on commit 197235e

Please sign in to comment.