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

The block producer should take into account the total gas used by the L1 transactions #1750

Closed
xgreenx opened this issue Mar 11, 2024 · 1 comment · Fixed by #1785
Closed
Assignees

Comments

@xgreenx
Copy link
Collaborator

xgreenx commented Mar 11, 2024

Each forced transaction from L1 will also have a corresponding gas limit. The L1 contract is responsible for queuing transactions on L1 to not exceed the block gas limit.

Right now, the block producer service blindly increases the da block height to the last available height. However, this may cause a situation when we need to include more transactions than fit into the block gas limit. To avoid that, the block producer should take into account the gas used by the transactions from the L1.

@MitchTurner
Copy link
Member

Clarification: This is for the L2 gas to include the L1 transactions on L2.

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