-
Notifications
You must be signed in to change notification settings - Fork 235
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
Problem: testground can't patch genesis #1574
Conversation
WalkthroughThe changes involve modifications to the Changes
Possibly related PRs
Poem
Tip OpenAI O1 model for chat
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional context usedRuff
Additional comments not posted (3)
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 using PR comments)
Other keywords and placeholders
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- testground/benchmark/benchmark/peer.py (3 hunks)
- testground/benchmark/benchmark/stateless.py (2 hunks)
Additional context used
Ruff
testground/benchmark/benchmark/stateless.py
52-52: Do not use mutable data structures for argument defaults
Replace with
None
; initialize within function(B006)
Additional comments not posted (3)
testground/benchmark/benchmark/peer.py (2)
42-42
: LGTM!The changes to the
gen_genesis
function call are consistent with the updated function signature. Passing an empty dictionary as thegenesis_patch
argument allows for potential future enhancements where specific patches can be applied dynamically to the genesis configuration.
97-99
: Verify the impact of increasing the"consensus.params.block.max_gas"
value.The addition of the
genesis_patch
parameter enhances the flexibility of the genesis file generation process by allowing additional configuration options to be passed. This change looks good.However, the significant increase in the value of
"consensus.params.block.max_gas"
from"81500000"
to"163000000"
suggests a substantial change in the gas limit for blocks. This change should be carefully reviewed and tested to ensure it aligns with the intended behavior and doesn't introduce any unintended consequences.Please provide more context on the reasoning behind increasing the
"consensus.params.block.max_gas"
value and confirm that thorough testing has been performed to validate the impact of this change on the network's performance and transaction processing capabilities.Also applies to: 114-114, 117-117
testground/benchmark/benchmark/stateless.py (1)
71-71
: LGTM!The usage of
genesis_patch
in thegen_genesis
function call is correct. It passes the user-provided genesis patch to thegen_genesis
function, allowing for additional modifications to the genesis configuration during its generation process.
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- testground/benchmark/benchmark/stateless.py (2 hunks)
Additional context used
Ruff
testground/benchmark/benchmark/stateless.py
50-50: Do not use mutable data structures for argument defaults
Replace with
None
; initialize within function(B006)
Additional comments not posted (1)
testground/benchmark/benchmark/stateless.py (1)
72-72
: LGTM!The addition of the
genesis_patch
parameter enhances the flexibility of thegen
function by allowing users to apply specific patches to the genesis file. Passing it to thegen_genesis
function is the correct way to utilize this new parameter.
Signed-off-by: yihuang <[email protected]>
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)
Summary by CodeRabbit
New Features
genesis_patch
parameter.options
parameter for streamlined handling.--options
flag that accepts a JSON object, improving usability.Bug Fixes