Skip to content

Commit

Permalink
fix: avoid initializing error when chain starts in a while
Browse files Browse the repository at this point in the history
  • Loading branch information
darwintree committed Dec 19, 2024
1 parent 6769d83 commit 729fdeb
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 729fdeb

Please sign in to comment.