From 6df57789b0162300332975e491c9434313f6beb9 Mon Sep 17 00:00:00 2001 From: bendanzhentan <455462586@qq.com> Date: Fri, 24 Nov 2023 15:43:23 +0800 Subject: [PATCH] chore: log error when detect unproven withdrawal during finalizing --- cmd/bot/run.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/bot/run.go b/cmd/bot/run.go index f135a71..c91cdfe 100644 --- a/cmd/bot/run.go +++ b/cmd/bot/run.go @@ -143,7 +143,10 @@ func ProcessUnfinalizedBotDelegatedWithdrawals(ctx context.Context, log log.Logg log.Error("failed to update finalized l2_contract_events", "error", result.Error) return } - } else if strings.Contains(err.Error(), "OptimismPortal: withdrawal has not been proven yet") || strings.Contains(err.Error(), "OptimismPortal: proven withdrawal finalization period has not elapsed") { + } else if strings.Contains(err.Error(), "OptimismPortal: withdrawal has not been proven yet") { + log.Error("detected a unproven withdrawal when send finalized transaction", "withdrawal", unfinalized) + continue + } else if strings.Contains(err.Error(), "OptimismPortal: proven withdrawal finalization period has not elapsed") { // Continue to handle the subsequent unfinalized withdrawals continue } else {