k8s: add pause time after sended a lot of transactions

This commit is contained in:
Miya Chen 2017-10-11 14:36:03 +08:00
parent b825aef124
commit acea4c0aae
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ func (eth *ethereum) SendTransactions(client client.Client, amount *big.Int, dur
return err
}
nonce++
if nonce%100 == 0 {
<-time.After(4 * time.Second)
}
}
}
}