reduce wait to join shard

Signed-off-by: Leo Chen <leo@harmony.one>
pull/283/head
Leo Chen 6 years ago
parent 5ad61a5885
commit baa95d053c
  1. 8
      cmd/client/txgen/main.go

@ -165,14 +165,14 @@ func main() {
log.Debug("Client Join Shard", "leader", leader)
clientNode.GetHost().AddPeer(&leader)
go clientNode.JoinShard(leader)
// wait for 3 seconds for client to send ping message to leader
time.Sleep(3 * time.Second)
}
// wait for 1 seconds for client to send ping message to leader
time.Sleep(time.Second)
clientNode.StopPing <- struct{}{}
clientNode.State = node.NodeJoinedShard
}
// Transaction generation process
time.Sleep(5 * time.Second) // wait for nodes to be ready
time.Sleep(2 * time.Second) // wait for nodes to be ready
start := time.Now()
totalTime := float64(*duration)

Loading…
Cancel
Save