-
Notifications
You must be signed in to change notification settings - Fork 318
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
Add subvortex
subnet and tests
#2395
Add subvortex
subnet and tests
#2395
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting approach.
yeah, I thought it was a working approach too. but ultimately i have some thoughts on how to rework the verification mechanism for |
if network in settings.NETWORKS: | ||
return network, settings.NETWORK_MAP[network] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if network in settings.NETWORKS: | |
return network, settings.NETWORK_MAP[network] | |
if chain_endpoint := settings.NETWORK_MAP.get(network): | |
return network, chain_endpoint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we check the network
argument before chain_endpoint
if defined
NETWORK_MAP = { | ||
NETWORKS[0]: FINNEY_ENTRYPOINT, | ||
NETWORKS[1]: FINNEY_TEST_ENTRYPOINT, | ||
NETWORKS[2]: ARCHIVE_ENTRYPOINT, | ||
NETWORKS[3]: LOCAL_ENTRYPOINT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NETWORK_MAP = { | |
NETWORKS[0]: FINNEY_ENTRYPOINT, | |
NETWORKS[1]: FINNEY_TEST_ENTRYPOINT, | |
NETWORKS[2]: ARCHIVE_ENTRYPOINT, | |
NETWORKS[3]: LOCAL_ENTRYPOINT, | |
NETWORK_MAP = { | |
"finney": FINNEY_ENTRYPOINT, | |
"test": FINNEY_TEST_ENTRYPOINT, | |
"archive": ARCHIVE_ENTRYPOINT, | |
"local": LOCAL_ENTRYPOINT, | |
"subvortex": SUBVORTEX_ENTRYPOINT, | |
} |
and later
NETWORKS = NETWORK_MAP.keys()
Normally I'd refactor the module to not use NETWORKS at all, but someone might be using it in subnet code, so lets leave it. One day when the interface is documented we can clean it up.
* Expands the type registry to include all the available options (#2353) Expands the type registry to include all the available options * add `Subtensor.register`, `Subtensor.difficulty` and related staff with tests (#2352) * add `bittensor.core.subtensor.Subtensor.register`, `bittensor.core.subtensor.Subtensor.difficulty` and related staff with tests * remove commented code * update `_terminate_workers_and_wait_for_exit` by review * added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics (#2359) * added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics * formatter * Update bittensor/core/extrinsics/registration.py Co-authored-by: Benjamin Himes <[email protected]> --------- Co-authored-by: Benjamin Himes <[email protected]> * Poem "Risen from the Past". Act 3. (#2363) * add `get_delegate_by_hotkey`, update `DelegateInfo` in chain data * add `root_register_extrinsic`, `set_root_weights_extrinsic` and related stuff * add `Subtensor.get_all_subnets_info` method and related stuff * add `Subtensor.get_delegate_take` method and tests * ruff * remove unused import * default port from 9946 to 9944 (#2376) * remove unused prometheus extrinsic (#2378) * Replace rich.console to btlogging.loggin (#2377) * replace `rich.console` to `btlogging.logging` * update requirements * use whole path import * fix some logging * fix registration.py * ruff * del prometheus.py * fix review comments * Merge pull request #2382 from opentensor/feat/roman/remove-prompt-from-sdk Avoid using `prompt` in SDK * Handle SSL Error on Connection (#2384) * Add `subvortex` subnet and tests (#2395) * add `subvortex` subnet and tests * ruff * Bumps version and updates changelog --------- Co-authored-by: Benjamin Himes <[email protected]> Co-authored-by: ibraheem-opentensor <[email protected]> Co-authored-by: ibraheem-opentensor <[email protected]>
* Expands the type registry to include all the available options (#2353) Expands the type registry to include all the available options * add `Subtensor.register`, `Subtensor.difficulty` and related staff with tests (#2352) * add `bittensor.core.subtensor.Subtensor.register`, `bittensor.core.subtensor.Subtensor.difficulty` and related staff with tests * remove commented code * update `_terminate_workers_and_wait_for_exit` by review * added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics (#2359) * added to Subtensor: `burned_register`, `get_subnet_burn_cost`, `recycle` and related extrinsics * formatter * Update bittensor/core/extrinsics/registration.py Co-authored-by: Benjamin Himes <[email protected]> --------- Co-authored-by: Benjamin Himes <[email protected]> * Poem "Risen from the Past". Act 3. (#2363) * add `get_delegate_by_hotkey`, update `DelegateInfo` in chain data * add `root_register_extrinsic`, `set_root_weights_extrinsic` and related stuff * add `Subtensor.get_all_subnets_info` method and related stuff * add `Subtensor.get_delegate_take` method and tests * ruff * remove unused import * default port from 9946 to 9944 (#2376) * remove unused prometheus extrinsic (#2378) * Replace rich.console to btlogging.loggin (#2377) * replace `rich.console` to `btlogging.logging` * update requirements * use whole path import * fix some logging * fix registration.py * ruff * del prometheus.py * fix review comments * Merge pull request #2382 from opentensor/feat/roman/remove-prompt-from-sdk Avoid using `prompt` in SDK * Handle SSL Error on Connection (#2384) * Add `subvortex` subnet and tests (#2395) * add `subvortex` subnet and tests * ruff * Bumps version and updates changelog * bumping up version * Update CHANGELOG.md * bumping version * Update CHANGELOG.md with 8.3.1 * update docker version in config.yml * update docker version in config.yml * remove docker job in config.yml * remove docker job in config.yml 2 --------- Co-authored-by: Roman <[email protected]> Co-authored-by: ibraheem-opentensor <[email protected]> Co-authored-by: ibraheem-opentensor <[email protected]> Co-authored-by: Roman <[email protected]>
No description provided.