Skip to content
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

support root weights #2021

Open
wants to merge 32 commits into
base: staging
Choose a base branch
from
Open

support root weights #2021

wants to merge 32 commits into from

Conversation

open-junius
Copy link

@open-junius open-junius commented Jun 13, 2024

The PR is a part of #1932

@open-junius open-junius self-assigned this Jun 13, 2024
Copy link
Collaborator

@camfairchild camfairchild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is already covered by another merged PR as well

@@ -874,18 +874,19 @@ def _do_set_weights(
def make_substrate_call_with_retry():
call = self.substrate.compose_call(
call_module="SubtensorModule",
call_function="set_weights",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the correct place to implement this.

@open-junius open-junius marked this pull request as draft June 13, 2024 16:13
@open-junius open-junius marked this pull request as ready for review June 14, 2024 11:39
Copy link
Contributor

@RomanCh-OT RomanCh-OT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments regarding Cortex Code Style standard.

Overall LGTM

tests/e2e_tests/utils.py Outdated Show resolved Hide resolved
tests/e2e_tests/utils.py Outdated Show resolved Hide resolved
Copy link
Contributor

@opendansor opendansor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please go over the tests again and make sure that 1) that feature doesnt already have a dedicated test and 2) you assert results in the test.

setup_wallet,
sudo_call_set_network_limit,
sudo_call_set_weight_limit,
sudo_call_set_min_stake,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these sudo_call's need to be replaced with Btcli commands.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these sudo_call's need to be replaced with Btcli commands.

It would be very helpful if you could leave a link to a similar test case that has already been implemented

bittensor/commands/network.py Outdated Show resolved Hide resolved
bittensor/extrinsics/network.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants