Skip to content

op-batcher doesn't take into account pectra gas floor when posting calldata #14513

@0xalex88

Description

@0xalex88

Bug Description
After the holesky hard fork our batcher that uses a custom DA (so only posts a few bytes per tx) started getting this error:

t=2025-02-24T23:18:31+0000 lvl=warn msg="Failed to create a transaction, will retry" service=batcher err="failed to call: err: insufficient gas for floor data gas cost: have 21592, want 22480 (supplied gas 21592), reason: <nil>"

Steps to Reproduce
Try to send a batcher tx with 37 bytes as data

Expected behavior
Transaction is created properly
Environment Information:
Fraxtal op-batcher based on v1.11.1

Additional context

I've copied the go-ethereum FloorDataGas function and used that as a min gaslimit when sending the tx and the issue was resolved

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions