opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
159 stars 157 forks source link

Hotfix/pending hotkey emission on swap #799

Closed camfairchild closed 2 months ago

camfairchild commented 2 months ago

Description

This hotfixes an issue with the hotkeyswap and the newPendingdHotkeyEmission maps.

Currently any hotkeys that swap will lose the pending hotkey emission, being recorded as an entry in the Stake map Stake(old_hotkey, 0x0000) (default AccountId).

This PR fixes the swap functions for coldkey and hotkey and adds a migration for two known hotkey swaps.

Type of Change

Checklist