types: comments; compiles; evidence test

This commit is contained in:
Ethan Buchman
2017-08-28 19:46:38 -04:00
parent 50850cf8a2
commit 9cdcffbe4b
4 changed files with 103 additions and 15 deletions

View File

@ -1,6 +1,7 @@
package types
import (
"bytes"
"errors"
"fmt"
"io"
@ -103,7 +104,7 @@ func (vote *Vote) String() string {
}
func (vote *Vote) Verify(chainID string, pubKey crypto.PubKey) error {
if !bytes.Equal(pubKey.Address(), v.ValidatorAddress) {
if !bytes.Equal(pubKey.Address(), vote.ValidatorAddress) {
return ErrVoteInvalidValidatorAddress
}