aboutsummaryrefslogtreecommitdiffstats
path: root/integration_test
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-14 15:25:54 +0800
committerJimmy Hu <jimmy.hu@dexon.org>2018-11-14 15:25:54 +0800
commit3a04c0d3405960e3a6eabb6adc700fa2fd5aac21 (patch)
treee13d65047af0c5646867a7424683b96bfc2e843f /integration_test
parente33261e6008dfba5b3401d0adc22a7da8649c9dc (diff)
downloaddexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.gz
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.zst
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.zip
utils: add utils package (#327)
Diffstat (limited to 'integration_test')
-rw-r--r--integration_test/node.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/integration_test/node.go b/integration_test/node.go
index 4657d83..aa3a703 100644
--- a/integration_test/node.go
+++ b/integration_test/node.go
@@ -27,6 +27,7 @@ import (
"github.com/dexon-foundation/dexon-consensus/core/crypto"
"github.com/dexon-foundation/dexon-consensus/core/test"
"github.com/dexon-foundation/dexon-consensus/core/types"
+ "github.com/dexon-foundation/dexon-consensus/core/utils"
)
type consensusEventType int
@@ -162,7 +163,7 @@ func (n *Node) handleProposeBlock(when time.Time, payload interface{}) (
})
b, err := n.prepareBlock(pos.round, pos.chain, when)
if err != nil {
- if err == core.ErrInvalidChainID {
+ if err == utils.ErrInvalidChainID {
// This chain is not included in this round, retry in next round.
events = append(events, newProposeBlockEvent(
n.ID, b.Position.Round+1, b.Position.ChainID,