Skip to content

Commit 530e7b8

Browse files
author
Jason
committed
mint间隔时间完善
1 parent 5813a6d commit 530e7b8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

main.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ func main() {
5959

6060
//开始mint
6161
for i := 1; i <= config.MintConfig.Times; i++ {
62-
if err != nil {
63-
time.Sleep(10 * time.Second) //如果有异常,则多等待会儿,减少不必要的gas浪费
64-
} else {
65-
time.Sleep(5 * time.Second) //防止多次异常,导致连续mint同一个nonce
66-
}
62+
time.Sleep(5 * time.Second) //防止多次异常,导致连续mint同一个nonce
6763

6864
balanceStr, er := evmApp.TokenBalanceOf()
6965
err = er

0 commit comments

Comments
 (0)