Skip to content

Commit

Permalink
fix bug (ethereum#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ping-ke committed May 18, 2022
1 parent 31b9993 commit 3c7a07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/tendermint/adapter/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (s *Store) ValidateBlock(state pbft.ChainState, block *types.FullBlock, com
// if update validator set from contract enable
if s.config.ValidatorChangeEpochId > 0 && s.config.ValidatorChangeEpochId <= epochId {
l := len(prefix)
if len(header.Extra) < l+8+32 || bytes.Equal(header.Extra[:l], prefix) {
if len(header.Extra) < l+8+32 || !bytes.Equal(header.Extra[:l], prefix) {
return errors.New("header.Extra missing validator chain block height and hash")
}

Expand Down

0 comments on commit 3c7a07e

Please sign in to comment.