ethereum-optimism / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
5.65k stars 3.28k forks source link

op-batcher: bound duration spent in state publishing loop #12909

Closed roberto-bayardo closed 2 days ago

roberto-bayardo commented 5 days ago

Description

publishStateToL1 can block for a very long time if there is a large state backlog, preventing timely update of backlog metrics and the triggering of DA throttling. This PR lets the caller bound the time spent in the loop rather than allowing it to proceed until EOF is triggered.