We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8b5d8 commit 835a470Copy full SHA for 835a470
1 file changed
types/validation.go
@@ -1,6 +1,7 @@
1
package types
2
3
import (
4
+ "bytes"
5
"errors"
6
7
"github.com/tendermint/tendermint/crypto/ed25519"
@@ -61,6 +62,10 @@ func (h *SignedHeader) ValidateBasic() error {
61
62
return err
63
}
64
65
+ if !bytes.Equal(h.Validators.Hash(), h.AggregatorsHash[:]) {
66
+ return errors.New("aggregator set hash in signed header and hash of validator set do not match")
67
+ }
68
+
69
// Make sure there is exactly one signature
70
if len(h.Commit.Signatures) != 1 {
71
return errors.New("expected exactly one signature")
0 commit comments