aboutsummaryrefslogtreecommitdiffstats
path: root/core/crypto_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-16 17:22:58 +0800
committerGitHub <noreply@github.com>2018-10-16 17:22:58 +0800
commitbe7c5cc02e6b960abb92a63142d98cd3661ab4b4 (patch)
tree279c28a5799e86f00d2af76701292bad8e6a34ac /core/crypto_test.go
parentfe0f16007f45232e40320f7b6d9f6f42af40c685 (diff)
downloaddexon-consensus-be7c5cc02e6b960abb92a63142d98cd3661ab4b4.tar
dexon-consensus-be7c5cc02e6b960abb92a63142d98cd3661ab4b4.tar.gz
dexon-consensus-be7c5cc02e6b960abb92a63142d98cd3661ab4b4.tar.bz2
dexon-consensus-be7c5cc02e6b960abb92a63142d98cd3661ab4b4.tar.lz
dexon-consensus-be7c5cc02e6b960abb92a63142d98cd3661ab4b4.tar.xz
dexon-consensus-be7c5cc02e6b960abb92a63142d98cd3661ab4b4.tar.zst
dexon-consensus-be7c5cc02e6b960abb92a63142d98cd3661ab4b4.zip
core: New dexon ba (#210)
Diffstat (limited to 'core/crypto_test.go')
-rw-r--r--core/crypto_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/crypto_test.go b/core/crypto_test.go
index b0161d9..c68b0c3 100644
--- a/core/crypto_test.go
+++ b/core/crypto_test.go
@@ -132,7 +132,7 @@ func (s *CryptoTestSuite) TestVoteSignature() {
nID := types.NewNodeID(pub)
vote := &types.Vote{
ProposerID: nID,
- Type: types.VoteAck,
+ Type: types.VoteInit,
BlockHash: common.NewRandomHash(),
Period: 1,
}
@@ -141,7 +141,7 @@ func (s *CryptoTestSuite) TestVoteSignature() {
ok, err := verifyVoteSignature(vote)
s.Require().NoError(err)
s.True(ok)
- vote.Type = types.VoteConfirm
+ vote.Type = types.VoteCom
ok, err = verifyVoteSignature(vote)
s.Require().NoError(err)
s.False(ok)