Skip to content

Commit

Permalink
remove fallback to finney
Browse files Browse the repository at this point in the history
  • Loading branch information
ifrit98 committed Dec 1, 2023
1 parent 2e98c11 commit 81b51d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 6.4.1 / 2023-12-01

## What's Changed
* add helpful messages to signal coming changes & fallback to finney in https://github.com/opentensor/bittensor/pull/1600/commits/86c0c3ccfcd91d0e3ff87f53bdc3e9c5e68661da
* add helpful messages to signal coming changes in https://github.com/opentensor/bittensor/pull/1600/commits/86c0c3ccfcd91d0e3ff87f53bdc3e9c5e68661da
* revert default subtensor network to finney in https://github.com/opentensor/bittensor/pull/1600/commits/8c69a3c15cd556384d0309e951f0a9b164dd36cb

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v6.0.1...v6.4.1
Expand Down
23 changes: 5 additions & 18 deletions bittensor/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ def __init__(
"This increases decentralization and resilience of the network."
)
bittensor.logging.warning(
"In a future release, local subtensor will become the default and the fallback to finney removed."
"In a future release, local subtensor will become the default endpoint. "
"To get ahead of this change, please run a local subtensor node and point to it."
)

# Returns a mocked connection with a background chain connection.
Expand All @@ -366,26 +367,12 @@ def __init__(
)
except ConnectionRefusedError as e:
bittensor.logging.error(
f"Could not connect to {self.network} network with {self.chain_endpoint} chain endpoint."
f"Could not connect to {self.network} network with {self.chain_endpoint} chain endpoint. Exiting..."
)
bittensor.logging.warning(
bittensor.logging.info(
f"You can check if you have connectivity by runing this command: nc -vz localhost {self.chain_endpoint.split(':')[2]}"
)
bittensor.logging.warning(
f"Falling back to finney at {bittensor.__finney_entrypoint__}"
)
bittensor.logging.warning(
f"Note: This will become an error in a future release by removing the fallback to finney."
)

self.substrate = SubstrateInterface(
ss58_format=bittensor.__ss58_format__,
use_remote_preset=True,
url=bittensor.__finney_entrypoint__,
type_registry=bittensor.__type_registry__,
)
self.network = "finney"
self.chain_endpoint = bittensor.__finney_entrypoint__
exit(1)
# TODO (edu/phil): Advise to run local subtensor and point to dev docs.

bittensor.logging.info(
Expand Down

0 comments on commit 81b51d3

Please sign in to comment.