You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Currently, during the execution of unlocking, the unvote height is not considered for the condition. Therefore, if the voter unvoted the delegate but not unlocked, then delegate got punished, the token will become locked until first condition is met
Also, this feature should be abled to switched on by genesis config using height
Steps to reproduce
Vote for a delegate
Unvote a delegate
Punish a delegate
Which version(s) does this affect? (Environment, OS, etc...)
5.1.4-
The text was updated successfully, but these errors were encountered:
Expected behavior
According to the LIP
needs to be considered, so that if unvoted 2000 blocks before, it the token will not be locked.
Actual behavior
https://github.com/LiskHQ/lisk-sdk/blob/main/framework/src/modules/dpos/transaction_assets/unlock_transaction_asset.ts#L108-L127
https://github.com/LiskHQ/lisk-sdk/blob/a1e9c65edee71b7d415bfed9b7cfa29f03a3d385/framework/src/modules/dpos/utils.ts#L62-L72
Currently, during the execution of unlocking, the unvote height is not considered for the condition. Therefore, if the voter unvoted the delegate but not unlocked, then delegate got punished, the token will become locked until first condition is met
Also, this feature should be abled to switched on by genesis config using height
Steps to reproduce
Which version(s) does this affect? (Environment, OS, etc...)
5.1.4-
The text was updated successfully, but these errors were encountered: