opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
159 stars 158 forks source link

Fix stake weight issues #998

Open ales-otf opened 3 days ago

ales-otf commented 3 days ago

Description

This PR fixes issues related to NeuronInfoApi inconsistencies. Currently NeuronInfoLite returns alpha, while NeuronInfo returns stake weight. This issue was discussed with @camfairchild and it was considered to use stake weights for stakes in NeuronInfo/NeuronInfoLite.

The issue was discovered during debugging: https://github.com/opentensor/subtensor/issues/879

No changes needed anymore related to NeuronInfoApi.

Also, during debugging, other issues were discovered (comment in #925 and related issue). This PR fixes these issues by changing initial TAO and Alpha for subnets to 1_000_000_000.

Initially the work were done on fix/neuron-info-lite-stake, but that branch were made from feat/rao-devnet-ready, so this branch just applies the changes to the new feat/rao-devnet-ready-2 branch.

Related Issue(s)

Type of Change

Breaking Changes

As bittensor wallet previously relied on wrong data and for them the issue seemed like API returned stake vs alpha, they should adapt their code to use stake weights instead.

Checklist