aboutsummaryrefslogtreecommitdiffstats
path: root/core/leader-selector_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/leader-selector_test.go')
-rw-r--r--core/leader-selector_test.go4
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))