Skip to content
Merged
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
3 changes: 1 addition & 2 deletions packages/discovery-provider/src/utils/web3_provider.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,6 @@
"""

import logging
import math
import os
from typing import Optional

Expand DownExpand Up@@ -36,7 +35,7 @@ def get_web3(web3endpoint=None):
gateway_web3 = Web3(HTTPProvider(os.getenv("audius_web3_host")))
# attempt local rpc, check if healthy
try:
block_diff = math.abs(
block_diff = abs(
local_web3.eth.get_block_number() - gateway_web3.eth.get_block_number()
)
resp = requests.get(local_rpc + "/health")
Expand Down