min 100ms between blocks
This commit is contained in:
parent
67b1bb6178
commit
7898451236
@ -82,9 +82,8 @@ func runBaselineMiner(t *TestEnvironment) error {
|
|||||||
t.RecordMessage("synchronizing all miners to mine next block")
|
t.RecordMessage("synchronizing all miners to mine next block")
|
||||||
t.SyncClient.MustSignalAndWait(ctx, stateMineNext, miners)
|
t.SyncClient.MustSignalAndWait(ctx, stateMineNext, miners)
|
||||||
|
|
||||||
time.Sleep(time.Duration(rand.Intn(int(100 * time.Millisecond))))
|
time.Sleep(time.Duration(100 + rand.Intn(int(100*time.Millisecond))))
|
||||||
|
|
||||||
// wait and synchronise
|
|
||||||
err := miner.MineOne(ctx, func(bool) {
|
err := miner.MineOne(ctx, func(bool) {
|
||||||
// after a block is mined
|
// after a block is mined
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user