From 8469eed6425a85972ead8b18a29c91aa07fc2df7 Mon Sep 17 00:00:00 2001 From: mouseless <97399882+mouseless-eth@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:36:29 +0100 Subject: [PATCH] . --- src/executor/executor.ts | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/src/executor/executor.ts b/src/executor/executor.ts index 20b15db0..32729972 100644 --- a/src/executor/executor.ts +++ b/src/executor/executor.ts @@ -533,7 +533,11 @@ export class Executor { functionName: "handleOps", args: [userOps, opts.account.address] }), - ...opts + ...opts, + maxPriorityFeePerGas: maxBigInt( + opts.maxPriorityFeePerGas * 10n, + parseGwei("0.2") + ) }) let attempts = 0 @@ -798,29 +802,6 @@ export class Executor { }) } - if ( - e?.details - ?.toLowerCase() - .includes("replacement transaction underpriced") - ) { - childLogger.error( - { error: e }, - "replacement transaction underpriced" - ) - this.markWalletProcessed(wallet) - return opsWithHashToBundle.map((owh) => { - return { - status: "resubmit", - info: { - entryPoint, - userOpHash: owh.userOperationHash, - userOperation: owh.mempoolUserOperation, - reason: "replacement transaction underpriced" - } - } - }) - } - sentry.captureException(err) childLogger.error( { error: JSON.stringify(err) },