Closed yihuang closed 2 months ago
The changes involve modifications to the gen_genesis
function in peer.py
and the gen
function in stateless.py
. Both functions have been updated to include a new parameter, genesis_patch
, which allows for additional configuration options during genesis file generation. Additionally, the gen
function has consolidated previous parameters into a single options
dictionary, enhancing the organization of configuration modifications. The maximum gas limit for blocks has also been increased from "81500000"
to "163000000"
. The command-line options in the README.md
have been restructured to use a single --options
flag that accepts a JSON object.
File Path | Change Summary |
---|---|
testground/benchmark/benchmark/peer.py |
Updated gen_genesis function to include genesis_patch parameter; modified invocation in bootstrap . Increased "consensus.params.block.max_gas" from "81500000" to "163000000" . |
testground/benchmark/benchmark/stateless.py |
Changed gen function to accept a single options parameter, consolidating config_patch and app_patch . Added extraction of genesis_patch from the options dictionary. |
testground/README.md |
Restructured command-line options for generating test cases to use a single --options flag accepting a JSON object with multiple configuration parameters. |
stateless.py
file, particularly the gen
function, which now accepts config_patch
and app_patch
parameters. This is directly related to the main PR's updates to the gen_genesis
function and its invocation, as both PRs enhance configurability through the introduction of new parameters for dynamic configuration management.In the land of code, a patch was made,
A rabbit's hop, new paths displayed.
With gas limits raised, the blocks now soar,
Genesis sprinkles, weโll code and explore!
Hopping through changes, with joy we cheer,
For every new feature, we hold so dear! ๐โจ
[!TIP]
OpenAI O1 model for chat
- We have deployed OpenAI's latest O1 model for chat. - OpenAI claims that this model has superior reasoning capabilities than their GPT-4o model. - Please share any feedback with us in the [discussions post](https://discord.com/channels/1134356397673414807/1283929536186155099).
testground/benchmark/benchmark/stateless.py
46-46: Do not use mutable data structures for argument defaults Replace with `None`; initialize within function (B006)
testground/benchmark/benchmark/stateless.py (3)
`48-55`: **LGTM!** The consolidation of function parameters into the `options` dictionary and the extraction of configuration values with default values is a good change. The new `genesis_patch` configuration is also correctly extracted. --- `73-73`: **LGTM!** Passing the `genesis_patch` configuration to the `gen_genesis` function is the correct way to apply specific modifications to the genesis file. --- `51-54`: **LGTM!** The extraction of `num_accounts`, `num_txs`, `config_patch`, and `app_patch` configurations from the `options` dictionary with default values is correctly implemented.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 15.24%. Comparing base (
5c507d5
) to head (818356a
). Report is 1 commits behind head on main.
๐ฎ๐ป๐ฎ๐ป๐ฎ๐ป !!!! 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