You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
After we removed the expired user operation, we might need to clear the expiration datetime for it like delete(e.seenAt, userOpHash). This is because if the bundle transaction is successfully mined to block but reverted due to some reason, user tends to send the user operation again to the mempool, and will never be included to next bundle transaction due to expiration drop.
// DropExpired returns a BatchHandlerFunc that will drop UserOperations from the mempool if it has been around// for longer than the TTL duration.func (e*ExpireHandler) DropExpired() modules.BatchHandlerFunc {
returnfunc(ctx*modules.BatchHandlerCtx) error {
end:=len(ctx.Batch) -1fori:=end; i>=0; i-- {
hash:=ctx.Batch[i].GetUserOpHash(ctx.EntryPoint, ctx.ChainID)
ifseenAt, ok:=e.seenAt[hash]; !ok {
e.seenAt[hash] =time.Now()
} elseifseenAt.Add(e.ttl).Before(time.Now()) {
ctx.MarkOpIndexForRemoval(i)
}
}
returnnil
}
}
The text was updated successfully, but these errors were encountered:
I came across this problem due to the gas estimation is not very accurate, so even though my user operation is included to a bundle transaction and then mined and broadcasted to the blockchain, the transaction just reverted. Then when I tried to resend my userop, it was never gonna be included into a new bundle transaction due to expiration drop.
I'm still investigating on this. It's actually on a EVM compatible chain, which doesn't provide debug_traceCall yet. I will keep you updated what you may concern.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
After we removed the expired user operation, we might need to clear the expiration datetime for it like
delete(e.seenAt, userOpHash)
. This is because if the bundle transaction is successfully mined to block but reverted due to some reason, user tends to send the user operation again to the mempool, and will never be included to next bundle transaction due to expiration drop.The text was updated successfully, but these errors were encountered: