Open dancoombs opened 1 year ago
Running validation on a nonce that is out of order never will work generically. Its completely valid for a previous nonce to modify the account such that the subsequent nonce becomes valid/invalid.
We will always need to delay simulation until a nonce is ready to be mined.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Running validation on a nonce that is out of order never will work generically. Its completely valid for a previous nonce to modify the account such that the subsequent nonce becomes valid/invalid.
We will always need to delay simulation until a nonce is ready to be mined.
I think this is the correct approach. We should couple this with a mempool status endpoint so users can see the status of queued UOs and track when they are dropped.
Describe the feature Allow users to submit out of order nonces and have the mempool order them.
How this could work:
Details:
These issues arise because validation will revert if the nonce is out of order.
Potential solutions:
Best solution:
We should petition to modify the entry point to have the validation function return that the nonce was incorrect instead of revert, similar to what it does with signatures. At the same time we can make the same argument for ops that have a time range that is valid at some point in the future.