-
Notifications
You must be signed in to change notification settings - Fork 971
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
blob.NewBlob
will reject > 2 MB blobs even if the square size is increased
#3356
Comments
Isn't this max blob size bigger than |
1974272 bytes == 1.88 MiB but the params in the specs should be updated to use the exact byte value to make that clearer. |
@rootulp if governance votes to increase or decrease the Max blob size, would that const ( Please confirm if this is the case. If not, then we can decide how to proceed. |
No it would not. |
Okay good to know @rootulp , we will include a fix for this in the following release (v0.15.0) as this doesn't seem pressing for now. |
Hey @rootulp -- is this still relevant? Aren't we hard capping the max blob size anyway ? |
I think it is, at least based on CIP-28: "Transaction size is limited to 2MiB by setting the versioned parameter MaxTxSize to 2097152" So I think this should at least be changed to match 2MiB, because it's currently:
Otherwise I think this issue is mostly complete with CIP-28 |
I think we should remove the blob size check in celestia-node all together because it isn't necessary. The check was added in this PR but // DefaultMaxBytes is the default value for the governance modifiable
// maximum number of bytes allowed in a valid block.
DefaultMaxBytes = DefaultGovMaxSquareSize * DefaultGovMaxSquareSize * share.ContinuationSparseShareContentSize There is currently no defined max blob size limit. It is inferred based on other parameters. |
Context
celestia-node enforces a max blob size of 1.97 (1974272 bytes) here.
Problem
If governance votes to allow 8MB blocks via bumping:
consensus.block.MaxBytes
to 8MiBblob.GovMaxSquareSize
to 128then celestia-node will reject blobs that could theoretically fit inside a block.
Question
Is the max blob size check here necessary?
Tangent: I think it's quite complex to determine what is the max possible blob size that is submittable on Celestia b/c it depends on a number of parameters that can be changed up or down. We may consider adding an explicit constraint on the max blob size (i.e. 1 MiB) to make checks like this stateless.
The text was updated successfully, but these errors were encountered: