opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
123 stars 122 forks source link

reset neuron data on registration #522

Open andreea-popescu-reef opened 3 weeks ago

andreea-popescu-reef commented 3 weeks ago

Description

On neuron registration the trust, emission, consensus, incentive, dividends values as well as axon info associated with the assigned neuron_uid are inherited from the previous neuron. Thus for the first few blocks after registration these values will be wrong, then reset to zero and then get populated with the correct values for the newly registered neuron. This change resets these values on neuron registration.

Related Issue(s)

N/A

Type of Change

Breaking Change

no

Checklist

Screenshots (if applicable)

N/A

Additional Notes

N/A

andreea-popescu-reef commented 3 weeks ago

@distributedstatemachine I don't think I'm doing any math operations

distributedstatemachine commented 3 weeks ago

Apologies @andreea-popescu-reef , i

meant unsafe , or potentially panicing operation. @keithtensor can you take a look ? the CI should catch these