Skip to content

Conversation

@camfairchild
Copy link
Collaborator

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.

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
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Collaborator

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

@basfroman basfroman added the subtensor-localnet:main Run e2e tests based on subtensor-localnet:main docker image. label Nov 10, 2025
basfroman
basfroman previously approved these changes Nov 11, 2025
thewhaleking
thewhaleking previously approved these changes Nov 11, 2025
@basfroman basfroman added subtensor-localnet:main Run e2e tests based on subtensor-localnet:main docker image. and removed subtensor-localnet:main Run e2e tests based on subtensor-localnet:main docker image. labels Nov 12, 2025
@basfroman basfroman dismissed stale reviews from thewhaleking and themself via 2555f65 November 13, 2025 00:52
@basfroman basfroman removed the subtensor-localnet:main Run e2e tests based on subtensor-localnet:main docker image. label Nov 13, 2025
@basfroman basfroman closed this Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants