aboutsummaryrefslogtreecommitdiffstats
path: root/core/utils/signer.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-01-04 17:39:21 +0800
committerGitHub <noreply@github.com>2019-01-04 17:39:21 +0800
commit8bbf4bc3face4e040e52afd392b70def7b3aaf58 (patch)
tree21135ba0d1250bc7a12bf514839a200973e82e3e /core/utils/signer.go
parent17b96ca95ffd4cbf8af762a974fc8b18f2c1b993 (diff)
downloadtangerine-consensus-8bbf4bc3face4e040e52afd392b70def7b3aaf58.tar.gz
tangerine-consensus-8bbf4bc3face4e040e52afd392b70def7b3aaf58.tar.zst
tangerine-consensus-8bbf4bc3face4e040e52afd392b70def7b3aaf58.zip
core: expose HashVote function for test (#400)
Diffstat (limited to 'core/utils/signer.go')
-rw-r--r--core/utils/signer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/utils/signer.go b/core/utils/signer.go
index 47bea3f..7694dab 100644
--- a/core/utils/signer.go
+++ b/core/utils/signer.go
@@ -66,7 +66,7 @@ func (s *Signer) SignBlock(b *types.Block) (err error) {
// SignVote signs a types.Vote.
func (s *Signer) SignVote(v *types.Vote) (err error) {
v.ProposerID = s.proposerID
- v.Signature, err = s.prvKey.Sign(hashVote(v))
+ v.Signature, err = s.prvKey.Sign(HashVote(v))
return
}