aboutsummaryrefslogtreecommitdiffstats
path: root/core/total-ordering_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-12 00:40:29 +0800
committerWei-Ning Huang <aitjcize@gmail.com>2018-08-12 00:40:29 +0800
commita57a1c2392f6f150d2127cc28236ca74f338dd7e (patch)
tree1d295e5d43688b3346504068b2f0038faf574dd1 /core/total-ordering_test.go
parent08c208c21f93d55bf3275610cbaf3ee6a545956a (diff)
downloaddexon-consensus-a57a1c2392f6f150d2127cc28236ca74f338dd7e.tar
dexon-consensus-a57a1c2392f6f150d2127cc28236ca74f338dd7e.tar.gz
dexon-consensus-a57a1c2392f6f150d2127cc28236ca74f338dd7e.tar.bz2
dexon-consensus-a57a1c2392f6f150d2127cc28236ca74f338dd7e.tar.lz
dexon-consensus-a57a1c2392f6f150d2127cc28236ca74f338dd7e.tar.xz
dexon-consensus-a57a1c2392f6f150d2127cc28236ca74f338dd7e.tar.zst
dexon-consensus-a57a1c2392f6f150d2127cc28236ca74f338dd7e.zip
core: Hash block in Consensus.PrepareBlock. (#46)
* Add hash to block * Check block hash in Consensus.sanityCheck * Add hashBlockFn in block generator.go
Diffstat (limited to 'core/total-ordering_test.go')
-rw-r--r--core/total-ordering_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/total-ordering_test.go b/core/total-ordering_test.go
index 49b28fa..69297d3 100644
--- a/core/total-ordering_test.go
+++ b/core/total-ordering_test.go
@@ -929,7 +929,7 @@ func (s *TotalOrderingTestSuite) TestRandomlyGeneratedBlocks() {
}
}()
- gen := test.NewBlocksGenerator(nil)
+ gen := test.NewBlocksGenerator(nil, hashBlock)
s.Require().Nil(gen.Generate(validatorCount, blockCount, nil, db))
iter, err := db.GetAll()
s.Require().Nil(err)