From ef0e1898ed167a3c5752747328928730aded9526 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Fri, 11 Jan 2019 17:38:46 -0800 Subject: [PATCH] Solve txgen stuck problem --- cmd/client/txgen/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/client/txgen/main.go b/cmd/client/txgen/main.go index c5e36d235..3bf1f989e 100644 --- a/cmd/client/txgen/main.go +++ b/cmd/client/txgen/main.go @@ -182,6 +182,8 @@ func main() { }(shardID, txs) } lock.Unlock() + case <-time.After(2 * time.Second): + log.Warn("No new block is received so far") } }