Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 276
fix: Modify Max DA blob size slightly lower#2558
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -14,8 +14,8 @@ const ( | ||
| DefaultGovMaxSquareSize = 64 | ||
| // DefaultMaxBytes is the default value for the governance modifiable | ||
| // maximum number of bytes allowed in a valid block. | ||
| DefaultMaxBytes = DefaultGovMaxSquareSize * DefaultGovMaxSquareSize * share.ContinuationSparseShareContentSize | ||
| // maximum number of bytes allowed in a valid block. We subtract 1 to have some extra buffer. | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should stay unchanged. It's a copy of app. The git action will fail unless upstream has this change | ||
| DefaultMaxBytes = DefaultGovMaxSquareSize * DefaultGovMaxSquareSize * (share.ContinuationSparseShareContentSize - 1) | ||
| // DefaultMinGasPrice is the default min gas price that gets set in the app.toml file. | ||
| // The min gas price acts as a filter. Transactions below that limit will not pass | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
The calculation for
DefaultMaxBlobSizeduplicates the logic forDefaultMaxBytesfound inda/jsonrpc/internal/consts.go. To improve maintainability and ensure a single source of truth for this critical value, consider reusing theappconsts.DefaultMaxBytesconstant here. This would prevent potential inconsistencies if the value needs to be updated in the future.Reusing the constant would require importing the
appconstspackage.