From 345814a56de8098620e72b774c5f8fc895e581fd Mon Sep 17 00:00:00 2001 From: Leonid Tyurin Date: Fri, 20 Jan 2023 13:31:30 +0400 Subject: [PATCH] Add missed log --- zp-relayer/workers/sentTxWorker.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zp-relayer/workers/sentTxWorker.ts b/zp-relayer/workers/sentTxWorker.ts index 7eb0694..42bd80b 100644 --- a/zp-relayer/workers/sentTxWorker.ts +++ b/zp-relayer/workers/sentTxWorker.ts @@ -252,6 +252,10 @@ export async function createSentTxWorker(gasPrice: Gas if (!tx) { // Resend with updated gas price + if (resendNum > config.sentTxLogErrorThreshold) { + jobLogger.error('Too many unsuccessful re-sends') + } + await handleResend(txConfig, gasPrice, job, jobLogger) // Tx re-send successful