mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-05 13:05:09 +00:00
* Make mempool v1 UTs more predictable * Simple changes * Reuse new signVote tests in production code * Fix `IsNil` problem from cherry-pick: should be `IsZero` * Fix linter issue * Apply suggestions from code review Co-authored-by: Lasaro <lasaro@informal.systems> * Addressed @lasarojc's comment * Addressed @jmalicevic's comment Co-authored-by: Lasaro <lasaro@informal.systems>
This commit is contained in:
@@ -41,7 +41,7 @@ func (opts TrustOptions) ValidateBasic() error {
|
||||
return errors.New("negative or zero period")
|
||||
}
|
||||
if opts.Height <= 0 {
|
||||
return errors.New("negative or zero height")
|
||||
return errors.New("zero or negative height")
|
||||
}
|
||||
if len(opts.Hash) != tmhash.Size {
|
||||
return fmt.Errorf("expected hash size to be %d bytes, got %d bytes",
|
||||
|
||||
Reference in New Issue
Block a user