-
Notifications
You must be signed in to change notification settings - Fork 420
[e2e] fix: e2e test for metagraph expected not matching #3137
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
[e2e] fix: e2e test for metagraph expected not matching #3137
Conversation
tests/e2e_tests/test_metagraph.py
Outdated
| subnet_emission=Balance(0), | ||
| alpha_in=Balance.from_tao(10).set_unit(1), | ||
| alpha_out=Balance.from_tao(1).set_unit(1), | ||
| alpha_out=Balance.from_tao((1 + block) * alpha_per_block).set_unit(1), # it's been 2 blocks |
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.
Why has it been 2 blocks if we're checking at block 1?
| subtensor.register_subnet(alice_wallet, True, True) | ||
|
|
||
| metagraph_info = subtensor.get_metagraph_info(netuid=1, block=1) | ||
| block = 1 |
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.
Does this need to be block = registration block + 1? Otherwise it's just always using the first block, which is happens before the subnet is even created. But even then we're basically checking a blank slate.
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.
in this part of the test we compare first blocks
2555f65
For opentensor/subtensor#2187
We are correcting an issuance with the emission calculation for subnets that are not root selling.
I'm not sure how this was passing before but it's not now.