Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

op-batcher: testing API #14583

Open
protolambda opened this issue Feb 28, 2025 · 0 comments · May be fixed by #14653
Open

op-batcher: testing API #14583

protolambda opened this issue Feb 28, 2025 · 0 comments · May be fixed by #14653
Labels
A-op-batcher Area: op-batcher

Comments

@protolambda
Copy link
Contributor

A gap between action-tests and full system tests is the op-batcher:
for some tests, we need control when the batch is wrapped-up and submitted.

After the op-test-sequencer work is done, a simple op-batcher API to influence the batch scheduler may be enough.

Currently the batcher determines when to submit batches based on the buffered data,
the time, and the sync state of the attached node.

With an RPC, we can ideally change what L2 blocks are in scope,
and override when the buffer is considered full enough to submit to L1.

E.g.:

  • batcher_setL2Scope: limit the view over the L2 chain
  • batcher_submitNow: force-submit the current data, even if the buffer is not full yet
  • batcher_cursors: check where the cursor (submitted L2 block, different stages maybe) is at.

Tests can then use these to make the batcher submit txs when we want that.
The test-sequencer can then receive the tx from a regular eth_sendRawTransaction RPC, and confirm it in the right L1 block.

@protolambda protolambda added the A-op-batcher Area: op-batcher label Feb 28, 2025
@VolodymyrBg VolodymyrBg linked a pull request Mar 5, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-batcher Area: op-batcher
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant