Closed yihuang closed 1 month ago
The pull request introduces several enhancements across multiple files in the testground/benchmark/benchmark
directory. Key changes include the addition of batch processing for transactions, updates to the command-line interface for generating transactions, new functions for retrieving block information from different blockchain sources, and modifications to linting configurations. The CHANGELOG.md
has been updated to reflect these changes, including bug fixes and improvements related to transaction handling and benchmarking.
File Path | Change Summary |
---|---|
CHANGELOG.md |
Updated with new entries for bug fixes and improvements; added benchmark support feature linked to PR #1650. |
testground/benchmark/.flake8 |
New configuration section added for flake8 , including settings for line length, ignored errors, and exclusions. |
testground/benchmark/benchmark/stateless.py |
Added --batch-size option for transaction generation; renamed validator-generate-load to validator_generate_load . |
testground/benchmark/benchmark/stats.py |
Added functions get_block_info_cosmos and get_block_info_eth ; modified dump_block_stats to support multiple blockchains. |
testground/benchmark/benchmark/transaction.py |
Added batch processing support in transaction generation and sending; updated method signatures to include batch parameters. |
testground/benchmark/benchmark/utils.py |
Added DEFAULT_DENOM constant; introduced block_eth and split_batch functions. |
testground/benchmark/overlay.nix |
Added new build systems flake8-black and flake8-isort to the Nix expression. |
testground/benchmark/pyproject.toml |
Added new development dependencies for black , flake8 , flake8-black , and flake8-isort . |
๐ In the meadow, we hop and play,
New features bloom, bright as day.
Batching transactions, swift and neat,
With each change, our work's a treat!
So letโs celebrate, with joy and cheer,
For improvements made, we hold so dear! ๐ผ
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?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 16.64%. Comparing base (
3303077
) to head (dfb4e1f
). Report is 1 commits behind head on main.
let's do this first: https://github.com/crypto-org-chain/cronos/pull/1651
New dependencies detected. Learn more about Socket for GitHub โ๏ธ
Package | New capabilities | Transitives | Size | Publisher |
---|---|---|---|---|
pypi/platformdirs@4.3.6 | None | 0 |
0 B | |
pypi/pycodestyle@2.12.1 | environment, filesystem | 0 |
161 kB | IanLee1521, asottile |
Solution:
๐ฎ๐ป๐ฎ๐ป๐ฎ๐ป !!!! 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
Release Notes
New Features
--batch-size
option for transaction generation.Improvements
Bug Fixes