-
Notifications
You must be signed in to change notification settings - Fork 609
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
feat: param changes for block and cost per byte #8598
Conversation
WalkthroughThe recent updates enhance blockchain transaction processing by introducing new constants for maximum block size, gas limits, and the cost per byte, improving both performance and resource management. The upgrade handling logic has been revised to utilize these constants, replacing hardcoded values to bolster security. Additionally, the test suite has been expanded to ensure robust validation of these parameters during the upgrade process, contributing to overall system reliability. Changes
Sequence Diagram(s)sequenceDiagram
participant UpgradeHandler
participant Constants
participant TestSuite
UpgradeHandler->>Constants: Access BlockMaxBytes, BlockMaxGas, CostPerByte
UpgradeHandler->>Blockchain: Set parameters for block processing
Blockchain->>UpgradeHandler: Acknowledge set parameters
UpgradeHandler->>TestSuite: Trigger parameter validation tests
TestSuite->>Blockchain: Validate parameters
Blockchain->>TestSuite: Return validation results
TestSuite->>UpgradeHandler: Report test outcomes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Nice, where were these values picked from btw?
Blocksize: CostPerByte: |
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.
LGTM!
Co-authored-by: Dev Ojha <[email protected]>
What is the purpose of the change
Param changes for block size and cost per byte
Analysis
TLDR: I think we're good to increase cost per byte from 20 => 30
Average blocks
How to test
curl http://localhost:1317/cosmos/consensus/v1/params | jq
osmosisd q auth params --output json | jq