aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'simulation/app.go')
-rw-r--r--simulation/app.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/simulation/app.go b/simulation/app.go
index a46f3a6..e88f956 100644
--- a/simulation/app.go
+++ b/simulation/app.go
@@ -126,6 +126,9 @@ func (a *simApp) TotalOrderingDelivered(blockHashes common.Hashes, early bool) {
// BlockDelivered is called when a block in compaction chain is delivered.
func (a *simApp) BlockDelivered(block types.Block) {
+ if len(block.Randomness) == 0 {
+ panic(fmt.Errorf("Block %s randomness is empty", block.Hash))
+ }
func() {
a.blockByHashMutex.Lock()
defer a.blockByHashMutex.Unlock()