-
Notifications
You must be signed in to change notification settings - Fork 9
Add CLI config validation of op-batcher to prevent submitting Blobs into Alt DA #274
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
Conversation
…ype data into Alt DA
|
The devnet-celo job only fails due to flakiness from what I can see (#235). |
It looks different to me in optimism/op-batcher/batcher/service.go Lines 210 to 215 in 9c20efe
Am I looking at the wrong thing? |
|
@karlb I need double check. I have to follow some code. Will do now. Thank you! |
|
As you mentioned, optimism/op-batcher/batcher/service.go Lines 257 to 268 in 81fde1a
|
karlb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you mentioned, UseBlobs is set for for auto batch data type.
However, this will be reset below this in the same function.
I see, this should be ok then. I still wonder if it wouldn't be safer and more explicit to disallow the combination of AltDA and AutoType. There is no advantage of that compared to directly setting AltDA + CallData and the resulting behaviour is unclear from just looking at the config options.
Eventually, I'll trust whatever upstream says on this aspect (and we should upstream it), since they will be the ones making sure the constraints are met for all the changes going into upstream. So I won't insist on further restricting the check.
…nd Alt DA mode from being set at same time
Thank you so much for sharing your opinion. I thought we would not have issues right now. But we can disable such case for now as far as we don't use it now. Which is more safer. At the end, I just follow the original suggestion by auditor. It's more straight. Sorry for troubling you but please approve it again. Thank you! |
|
I still think this is a good candidate for upstreaming. Do you want to open an upstream PR @Kourin1996? Otherwise I'll give it a go. |
…ype data into Alt DA (#274)
Fixes https://github.com/celo-org/celo-blockchain-planning/issues/784
This PR adds a new validation of CLI configuration of
op-batcher.op-batcherthrows error in runtime when submitting blobs type txdata into Alt DA.This PR adds new validation for the 'op-batcher' CLI configuration. 'op-batcher' throws an error at runtime when submitting blobs of type txdata into Alt DA
optimism/op-batcher/batcher/driver.go
Lines 594 to 601 in 81fde1a
The validation added in this PR prevents both Alt DA mode and Blob types from being enabled at the same time.
FYI: If the TxData type is 'auto', the txdata type will be set to 'calldata' for now.