k8s: add pause time after sended a lot of transactions
This commit is contained in:
parent
b825aef124
commit
acea4c0aae
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue