subtensor icon indicating copy to clipboard operation
subtensor copied to clipboard

LastHotkeyEmissionDrain to include the value that was drained.

Open Thanos30 opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

It is possible for a subnet to be on epoch at the same block that a hotkey reaches 20 epochs and will be drained. In this case, there is a chance that the PendingHotkeyEmission of that hotkey increases through the accumulate_hotkey_emission function, and drained later on drain_hotkey_emission. In that case, there is no way for us to know the actual PendingHotkeyEmission before the drain.

Describe the solution you'd like

Either the LastHotkeyEmissionDrain to include the value that was drained along with the block number, or as formalised suggested, fire an event that will include that information.

Describe alternatives you've considered

No response

Additional context

No response

Thanos30 avatar Sep 19 '24 16:09 Thanos30