Skip to content

fix: use fastlz sizes for tracking da usage #615

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

Closed
wants to merge 2 commits into from

Conversation

danyalprout
Copy link
Contributor

@danyalprout danyalprout commented May 8, 2025

📝 Summary

This PR has a couple of changes:

  • Use the FastLZ size of transactions to verify per tx and per block DA limits. This matches the op-geth sequencer behaviour. See this issue for more details on how op-geth behaves.
  • Track cumulative da bytes used

💡 Motivation and Context

Without this change:

  • The DA limiting is based on the uncompressed transaction size, which will result in needlessly throttling very compressible transactions.
  • Throttling does not take into account the amount of bytes currently being used in the block

✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@danyalprout danyalprout mentioned this pull request May 8, 2025
8 tasks
@danyalprout danyalprout marked this pull request as ready for review May 8, 2025 18:36
@danyalprout
Copy link
Contributor Author

Closing in favor of flashbots/op-rbuilder#7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant