diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-08 15:30:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 15:30:53 +0800 |
commit | 97abfdabfd41b44f3273a869eca75cea34b0fdc8 (patch) | |
tree | c5e2939bc6a363bc179a762f1079973219fa65b7 /core/consensus_test.go | |
parent | 02f8296bf9ec5069ff26e39216c7e7af7c6e9567 (diff) | |
download | dexon-consensus-97abfdabfd41b44f3273a869eca75cea34b0fdc8.tar.gz dexon-consensus-97abfdabfd41b44f3273a869eca75cea34b0fdc8.tar.zst dexon-consensus-97abfdabfd41b44f3273a869eca75cea34b0fdc8.zip |
core: Add block randomness in compaction-chain module (#179)
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r-- | core/consensus_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go index 6827352..4c0f41c 100644 --- a/core/consensus_test.go +++ b/core/consensus_test.go @@ -194,6 +194,9 @@ func (s *ConsensusTestSuite) TestSimpleDeliverBlock() { // to all core.Consensus objects. broadcast := func(b *types.Block) { for _, obj := range objs { + h := common.NewRandomHash() + b.Randomness = h[:] + obj.con.ccModule.registerBlock(b) req.Nil(obj.con.processBlock(b)) } } |