Closed yihuang closed 3 months ago
The recent updates enhance the stateless.py
module by introducing a method for detecting consecutive idle blocks, allowing validators to exit during inactivity. This is implemented with the new detect_idle
function, complemented by block_height
and block_txs
for querying current blockchain states. Additionally, the inclusion of the requests
library as a dependency improves the project's capability to make HTTP requests, strengthening interactions with external APIs.
Files | Change Summary |
---|---|
testground/benchmark/benchmark/stateless.py |
Added detect_idle , block_height , and block_txs functions for blockchain monitoring and querying; introduced LOCAL_RPC constant. |
testground/benchmark/pyproject.toml |
Added requests library as a new dependency with a version constraint of ^2.32 for facilitating HTTP requests. |
go.mod |
Updated github.com/crypto-org-chain/ethermint module version to a newer release for maintaining dependencies. |
gomod2nix.toml |
Updated version and hash for github.com/evmos/ethermint in line with the changes in go.mod . |
testground/benchmark/benchmark/sendtx.py |
Enhanced logging in sendtx function to include initial and current nonce values during transaction processes. |
testground/benchmark/benchmark/utils.py |
Introduced wait_for_w3 function to attempt connecting to web3 JSON-RPC provider with a timeout mechanism. |
In the blockchain's gentle sway,
Our validators find their way.
With idle blocks, they now can flee,
As time ticks on, so wild and free.
Hopping through each chain's delight,
We celebrate with joy tonight! 🐇✨
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 36.84%. Comparing base (
aedfd55
) to head (5d43795
).
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
Improvements
Dependencies
requests
library to enhance HTTP request capabilities for improved blockchain interactions.