diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-11-14 15:25:54 +0800 |
---|---|---|
committer | Jimmy Hu <jimmy.hu@dexon.org> | 2018-11-14 15:25:54 +0800 |
commit | 3a04c0d3405960e3a6eabb6adc700fa2fd5aac21 (patch) | |
tree | e13d65047af0c5646867a7424683b96bfc2e843f /core/lattice-data_test.go | |
parent | e33261e6008dfba5b3401d0adc22a7da8649c9dc (diff) | |
download | dexon-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.go | 3 |
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, |