Skip to content

Commit ab330f1

Browse files
committed
fix: deal with "already known" txes
1 parent 116edbe commit ab330f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/l2.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,10 @@ tryingNonces:
765765
))
766766
return // irrecoverable error
767767

768+
case strings.Contains(err.Error(), "already known"):
769+
l2.nonce++ // there's already a tx with this nonce => try next one
770+
continue tryingNonces
771+
768772
case strings.Contains(err.Error(), "replacement transaction underpriced"):
769773
l2.nonce++ // there's already a tx with this nonce => try next one
770774
continue tryingNonces

0 commit comments

Comments
 (0)