Fix getting the start time so the first block is no longer empty

This commit is contained in:
ValarDragon
2018-07-11 22:55:20 -07:00
parent f04a087546
commit e785d6851c
3 changed files with 38 additions and 11 deletions

View File

@ -101,7 +101,20 @@ Examples:
"broadcast_tx_"+broadcastTxMethod,
)
// record time start
// Wait until transacters have begun until we get the start time
for {
started := true
for _, t := range transacters {
for i := 0; i < t.Connections; i++ {
if !t.connsStarted[i] && !t.connsBroken[i] {
started = false
}
}
}
if started {
break
}
}
timeStart := time.Now()
logger.Info("Time last transacter started", "t", timeStart)