Skip to content

Commit

Permalink
Merge pull request #2285 from opentensor/update/release-7.4.0-reconne…
Browse files Browse the repository at this point in the history
…ctions

Adds substrate reconnection to 7.4.0
  • Loading branch information
ibraheem-opentensor authored Sep 4, 2024
2 parents bbe9f92 + 55d01a8 commit 166481f
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 28 deletions.
2 changes: 2 additions & 0 deletions bittensor/extrinsics/serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import bittensor
import bittensor.utils.networking as net
from bittensor.utils import format_error_message
from bittensor.utils.networking import ensure_connected
from ..errors import MetadataError


Expand Down Expand Up @@ -269,6 +270,7 @@ def publish_metadata(
raise MetadataError(format_error_message(response.error_message))


@ensure_connected
def get_metadata(self, netuid: int, hotkey: str, block: Optional[int] = None) -> str:
@retry(delay=2, tries=3, backoff=2, max_delay=4)
def make_substrate_call_with_retry():
Expand Down
Loading

0 comments on commit 166481f

Please sign in to comment.