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/leader-selector_test.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/leader-selector_test.go')
-rw-r--r-- | core/leader-selector_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/leader-selector_test.go b/core/leader-selector_test.go index e18dd49..7eb9b3c 100644 --- a/core/leader-selector_test.go +++ b/core/leader-selector_test.go @@ -85,7 +85,7 @@ func (s *LeaderSelectorTestSuite) TestLeaderBlockHash() { prv, err := eth.NewPrivateKey() s.Require().Nil(err) block := &types.Block{ - ProposerID: types.NewValidatorID(prv.PublicKey()), + ProposerID: types.NewNodeID(prv.PublicKey()), Hash: common.NewRandomHash(), } s.Require().Nil(leader.prepareBlock(block, prv)) @@ -110,7 +110,7 @@ func (s *LeaderSelectorTestSuite) TestPrepareBlock() { prv, err := eth.NewPrivateKey() s.Require().Nil(err) block := &types.Block{ - ProposerID: types.NewValidatorID(prv.PublicKey()), + ProposerID: types.NewNodeID(prv.PublicKey()), } s.Require().Nil(leader.prepareBlock(block, prv)) s.Nil(leader.processBlock(block)) |