diff options
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)) } } |