aboutsummaryrefslogtreecommitdiffstats
path: root/core/lattice-data_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/lattice-data_test.go')
-rw-r--r--core/lattice-data_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/lattice-data_test.go b/core/lattice-data_test.go
index 1cd2c18..8252361 100644
--- a/core/lattice-data_test.go
+++ b/core/lattice-data_test.go
@@ -166,7 +166,7 @@ func (s *LatticeDataTestSuite) genTestCase1() (
// hashBlock is a helper to hash a block and check if any error.
func (s *LatticeDataTestSuite) hashBlock(b *types.Block) {
var err error
- b.Hash, err = hashBlock(b)
+ b.Hash, err = utils.HashBlock(b)
s.Require().Nil(err)
}
@@ -370,7 +370,7 @@ func (s *LatticeDataTestSuite) TestRandomlyGeneratedBlocks() {
gen := test.NewBlocksGenerator(&test.BlocksGeneratorConfig{
NumChains: genesisConfig.NumChains,
MinBlockTimeInterval: genesisConfig.MinBlockInterval,
- }, nil, hashBlock)
+ }, nil)
req.NoError(gen.Generate(
0,
genesisTime,