Closed yihuang closed 2 months ago
The changes involve modifications to the transaction handling functionality across the sendtx.py
, utils.py
, and peer.py
files. The fund_test_accounts
function has been simplified by removing the cli
parameter. The send_transaction
function has been redefined as send_transactions
to handle multiple transactions in one call. Additionally, configuration constants related to transaction processing and indexing have been adjusted for improved performance.
Files | Change Summary |
---|---|
testground/benchmark/benchmark/sendtx.py , testground/benchmark/benchmark/utils.py |
The fund_test_accounts function signature was modified to remove the cli parameter. The send_transaction function was renamed to send_transactions , allowing batch processing of transactions. The build_batch_tx function was removed, focusing solely on Ethereum transactions. The organization of functions within utils.py was also adjusted. |
testground/benchmark/benchmark/peer.py |
Configuration constants were modified: MEMPOOL_SIZE decreased to 10,000, consensus.timeout_commit reduced to 1 second, and new entries added for transaction indexing settings. Conditional logic for VALIDATOR_GROUP was removed. |
š In fields of code, we hop and play,
With transactions now, a smoother way.
No more batches for Cosmos to build,
Just Ethereum's path, our hearts are thrilled!
A simpler dance, a joyful cheer,
For every change, 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 15.24%. Comparing base (
7a04a82
) to head (a5f7054
). Report is 1 commits behind head on main.
Do we need to prevent sender nonce could conflicts in funding?
Do we need to prevent sender nonce could conflicts in funding?
no with the benchmark binary.
Do we need to prevent sender nonce could conflicts in funding?
no with the benchmark binary.
I rmb the chance of getting uniqueness error is higher when try async fund
Do we need to prevent sender nonce could conflicts in funding?
no with the benchmark binary.
I rmb the chance of getting uniqueness error is higher when try async fund
that error message is expected for now with block-stm, the tx itself should be successful.
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
New Features
Bug Fixes
Refactor