Skip to content

Add FloorGasAdditionalTokens to floor-gas computation#3642

Merged
eljobe merged 3 commits into
masterfrom
floor-gas-add-constant
Sep 16, 2025
Merged

Add FloorGasAdditionalTokens to floor-gas computation#3642
eljobe merged 3 commits into
masterfrom
floor-gas-add-constant

Conversation

@tsahee

@tsahee tsahee commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

Account the difference between transaction calldata and raw batches when accounting floorgas

@tsahee tsahee requested a review from eljobe September 15, 2025 22:51
@tsahee tsahee force-pushed the floor-gas-add-constant branch from e4712e5 to eef7400 Compare September 15, 2025 22:51
@tsahee tsahee self-assigned this Sep 15, 2025

@eljobe eljobe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with the math.

Can you be sure to add some brief context to the PR description?

Comment thread arbos/internal_tx.go Outdated
// In case floor_gas is used - this negates most of the difference between calldata and batch
// Raw batch has a 40-byte header that didn't come from calldata (5 uint64s)
// Calldata for the addSequencerL2BatchFromOrigin call in SequencerInbox, has a function selector
// and 5 additional fields that don't appear in the aaw batch.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/aaw/raw/

@eljobe eljobe enabled auto-merge (squash) September 16, 2025 06:18
@eljobe eljobe assigned eljobe and unassigned tsahee Sep 16, 2025
@eljobe eljobe merged commit 3566849 into master Sep 16, 2025
18 checks passed
@eljobe eljobe deleted the floor-gas-add-constant branch September 16, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants