optimism
optimism copied to clipboard
op-batcher: Concurrently send transactions
Description
This is a simple hack to enable significantly higher throughput for lattice with op-craft.
Tests
I tested this locally by modifying the max tx size argument in the op-e2e tests & confirming that I see expected transaction sending behavior (by looking at the logs).
Metadata
- Fixes ENG-2898
⚠️ No Changeset found
Latest commit: 13002870cae709b83035c4c6ec16ea404de610f4
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?
We are guaranteed that the transactions will never revert if they make it into the mempool since there is no code at the account we are sending to. If we decide to add a contract that does the owner management instead of being able to dynamically + deterministically change the batch sender in the op-node, there is some complexity regarding reverted transactions, ie how do you know to resend the same batch if it happens to revert?
If we decide to add a contract that does the owner management instead of being able to dynamically + deterministically change the batch sender in the op-node, there is some complexity regarding reverted transactions, ie how do you know to resend the same batch if it happens to revert?
There probably is, but we're ignoring it for now. This is only getting applied to the lattice branch and won't be brought into our production environment
@mslipper we need to cut a new custom branch and incorporate this commit into it then.
Turning into a draft to hide this until opcraft is over or we actually need this.
Hey @trianglesphere! This PR has merge conflicts. Please fix them before continuing review.
no longer needed.