aboutsummaryrefslogtreecommitdiffstats
path: root/core/lattice-data_test.go
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 /core/lattice-data_test.go
parente33261e6008dfba5b3401d0adc22a7da8649c9dc (diff)
downloaddexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.gz
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.bz2
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.lz
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.xz
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.tar.zst
dexon-consensus-3a04c0d3405960e3a6eabb6adc700fa2fd5aac21.zip
utils: add utils package (#327)
Diffstat (limited to 'core/lattice-data_test.go')
-rw-r--r--core/lattice-data_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/lattice-data_test.go b/core/lattice-data_test.go
index e4a894f..24f45e6 100644
--- a/core/lattice-data_test.go
+++ b/core/lattice-data_test.go
@@ -27,6 +27,7 @@ import (
"github.com/dexon-foundation/dexon-consensus/core/blockdb"
"github.com/dexon-foundation/dexon-consensus/core/test"
"github.com/dexon-foundation/dexon-consensus/core/types"
+ "github.com/dexon-foundation/dexon-consensus/core/utils"
"github.com/stretchr/testify/suite"
)
@@ -217,7 +218,7 @@ func (s *LatticeDataTestSuite) TestSanityCheck() {
Timestamp: time.Now().UTC(),
})
// Invalid chain ID.
- check(ErrInvalidChainID, &types.Block{
+ check(utils.ErrInvalidChainID, &types.Block{
ParentHash: blocks[1][0].Hash,
Position: types.Position{
ChainID: 100,