diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-09-20 09:09:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 09:09:37 +0800 |
commit | 421d72b2d796195178104a0eb1dedf319ba8664c (patch) | |
tree | f32f15c167989905494eca1891c3240b80dac1d6 /core/crypto.go | |
parent | 37f117d35c6617e1944d45e001e03813a6a278ed (diff) | |
download | dexon-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar dexon-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.gz dexon-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.bz2 dexon-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.lz dexon-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.xz dexon-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.tar.zst dexon-consensus-421d72b2d796195178104a0eb1dedf319ba8664c.zip |
Rename validator* to node* (#120)
Diffstat (limited to 'core/crypto.go')
-rw-r--r-- | core/crypto.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/crypto.go b/core/crypto.go index 707a2b9..e68d7cc 100644 --- a/core/crypto.go +++ b/core/crypto.go @@ -103,7 +103,7 @@ func verifyVoteSignature(vote *types.Vote, sigToPub SigToPubFn) (bool, error) { if err != nil { return false, err } - if vote.ProposerID != types.NewValidatorID(pubKey) { + if vote.ProposerID != types.NewNodeID(pubKey) { return false, nil } return true, nil @@ -121,7 +121,7 @@ func verifyCRSSignature(block *types.Block, crs common.Hash, sigToPub SigToPubFn if err != nil { return false, err } - if block.ProposerID != types.NewValidatorID(pubKey) { + if block.ProposerID != types.NewNodeID(pubKey) { return false, nil } return true, nil @@ -162,7 +162,7 @@ func verifyDKGPrivateShareSignature( if err != nil { return false, err } - if prvShare.ProposerID != types.NewValidatorID(pubKey) { + if prvShare.ProposerID != types.NewNodeID(pubKey) { return false, nil } return true, nil @@ -187,7 +187,7 @@ func verifyDKGMasterPublicKeySignature( if err != nil { return false, err } - if mpk.ProposerID != types.NewValidatorID(pubKey) { + if mpk.ProposerID != types.NewNodeID(pubKey) { return false, nil } return true, nil @@ -213,7 +213,7 @@ func verifyDKGComplaintSignature( if err != nil { return false, err } - if complaint.ProposerID != types.NewValidatorID(pubKey) { + if complaint.ProposerID != types.NewNodeID(pubKey) { return false, nil } return true, nil @@ -237,7 +237,7 @@ func verifyDKGPartialSignatureSignature( if err != nil { return false, err } - if psig.ProposerID != types.NewValidatorID(pubKey) { + if psig.ProposerID != types.NewNodeID(pubKey) { return false, nil } return true, nil |