Skip to content

Commit

Permalink
more logs for opHashes during resubmission
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless0x committed Feb 4, 2025
1 parent 4df2ea3 commit aa1b1d9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/executor/executorManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import type { Executor } from "./executor"
import type { AltoConfig } from "../createConfig"
import { SenderManager } from "./senderManager"
import { BaseError } from "abitype"
import { getUserOpHashes } from "./utils"

function getTransactionsFromUserOperationEntries(
submittedOps: SubmittedUserOp[]
Expand Down Expand Up @@ -739,7 +740,10 @@ export class ExecutorManager {
if (txInfo.timesPotentiallyIncluded >= 3) {
this.removeSubmitted(bundle.userOps)
this.logger.warn(
{ oldTxHash },
{
oldTxHash,
userOps: getUserOpHashes(bundleResult.rejectedUserOps)
},
"transaction potentially already included too many times, removing"
)
}
Expand Down Expand Up @@ -785,7 +789,10 @@ export class ExecutorManager {

if (potentiallyIncluded) {
this.logger.info(
{ oldTxHash },
{
oldTxHash,
userOpHashes: getUserOpHashes(bundleResult.rejectedUserOps)
},
"transaction potentially already included"
)
txInfo.timesPotentiallyIncluded += 1
Expand Down

0 comments on commit aa1b1d9

Please sign in to comment.