Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless0x committed Oct 18, 2024
1 parent dda919c commit 8469eed
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions src/executor/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) },
Expand Down

0 comments on commit 8469eed

Please sign in to comment.