Skip to content
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

fix: avoid initializing error when chain starts in a while #54

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.4.0-beta.3
current_version = 1.4.0-beta.4
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<stage>[^.]*)\.(?P<devnum>\d+))?
Expand Down
2 changes: 1 addition & 1 deletion cns/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def customize_web3(w3: "_Web3") -> "_Web3":

if not w3.middleware_onion.get("stalecheck"):
w3.middleware_onion.add(
build_stalecheck_middleware(ACCEPTABLE_STALE_HOURS * 3600, ["cfx_getBlockByEpochNumber"]), name="stalecheck"
build_stalecheck_middleware(ACCEPTABLE_STALE_HOURS * 3600, ["cfx_getBlockByEpochNumber", "cfx_getStatus"]), name="stalecheck"
)
return w3

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
setup,
)

VERSION = "1.4.0-beta.3"
VERSION = "1.4.0-beta.4"
DESCRIPTION = 'Python SDK for Conflux network'
with open('./README.md') as readme:
long_description = readme.read()
Expand Down
2 changes: 1 addition & 1 deletion tests/base_features/test_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def test_api_version(w3):
expected_version = "1.4.0-beta.3"
expected_version = "1.4.0-beta.4"
if "beta" not in expected_version:
assert w3.api.startswith(expected_version)
Loading