fix: honor MaxL2BlockNumber in aggchain flow#1673
Conversation
|
Claude finished @arnaubennassar's task in 1m 4s —— View job Code Review Complete ✅🚀 What's NewThis PR fixes a critical bug where 🐛 Bug Fixes
📋 Config UpdatesNone.
|
|
| return current, nil | ||
| } | ||
|
|
||
| func (f *baseFlow) adjustMaxL2BlockRange( |
There was a problem hiding this comment.
The code adjustMaxL2BlockNumber and adjustMaxL2BlockRange looks the same code... maybe you can calculate from the MaxL2BlockRange the BlockNumber and use the same code



🔄 Changes Summary
AggchainProverBuilderFlow.AggSender.MaxL2BlockNumberis passed into block-range adjustment for FEP and optimistic aggchain certificates.MaxL2BlockRangeto cap each certificate range across PP, FEP, optimistic, builder, and validator flows.MaxL2BlockRangeis optional and defaults to0(disabled).📋 Config Updates
✅ Testing
go test ./aggsender/flows;go test ./aggsender/...;go test ./config🐞 Issues
MaxL2BlockNumberdoesnt behave as expected on all network mode (FEP / optimistic) #1672🔗 Related PRs
📝 Notes
MaxL2BlockNumbercaps the absolute last L2 block, whileMaxL2BlockRangecaps the per-certificate span computed asToBlock - FromBlock.MaxL2BlockRange = 0is unlimited and is the default value.