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
My delegate got punished and I unvoted myself. Unlocking usually takes 30 days but due to the fact I was punished the unlock time is not 30 days, as a punishment locks the LSK that were in use for "self-vote" at the time of the punishement for 90 days.
This is the error message on my Lisk Core Server:
0|lisk-core | 20:11:51 ERROR lisk-framework: Failed to add transaction to pool. (module=lisk:app)
0|lisk-core | Message: Unlocking is not permitted as the delegate is currently being punished.
0|lisk-core | Trace: TransactionApplyError: Unlocking is not permitted as the delegate is currently being punished.
0|lisk-core | at Processor.verifyTransactions (/home/lisk/.nvm/versions/node/v12.22.1/lib/node_modules/lisk-core/node_modules/lisk-framework/dist-node/node/processor/processor.js:224:23)
You should use this error message and tell users in Lisk Desktop what is wrong. But this is not even needed, if Lisk Dekstop would calculate the unlocking time correctly.
So, let's go on with the root issue: The unlock button should only be available when you really are allowed to unlock your funds.
Example 1 (watch the dates!):
01.04.2021: Delegate A votes itself with 400 LSK.
02.04.2021: Delegate A gets punished.
02.04.2021: Delegate A unvotes itself with 400 LSK.
Now Lisk Desktop starts an unlocking-timer of 30 days but it should be a timer of 90 days due to the punishment that happened the same day.
Example 2 (watch the dates!):
01.04.2021: Delegate A votes itself with 400 LSK.
02.04.2021: Delegate A gets punished.
09.04.2021: Delegate A unvotes itself with 400 LSK.
Now Lisk Desktop starts an unlocking-timer of 30 days but it should be a timer of 82 days due to the punishment.
Example 3 (watch the dates!):
01.04.2021: Delegate A votes itself with 400 LSK.
02.04.2021: Delegate A gets punished.
25.06.2021: Delegate A unvotes itself with 400 LSK.
Now Lisk Desktop starts an unlocking-timer of 30 days and this would be correct as the punishment ends earlier.
How to fix this?
When unvoting was done, Lisk Desktop needs to check if a delegate is punished or not and if the LSK are part of this punishment. Based on this information, Lisk Desktop should calculate the correct unlocking period and only make the unlocking button available when you really are allowed to unlock your LSK.
The text was updated successfully, but these errors were encountered:
My delegate got punished and I unvoted myself. Unlocking usually takes 30 days but due to the fact I was punished the unlock time is not 30 days, as a punishment locks the LSK that were in use for "self-vote" at the time of the punishement for 90 days.
This is the error message on my Lisk Core Server:
You should use this error message and tell users in Lisk Desktop what is wrong. But this is not even needed, if Lisk Dekstop would calculate the unlocking time correctly.
So, let's go on with the root issue: The unlock button should only be available when you really are allowed to unlock your funds.
Example 1 (watch the dates!):
01.04.2021: Delegate A votes itself with 400 LSK.
02.04.2021: Delegate A gets punished.
02.04.2021: Delegate A unvotes itself with 400 LSK.
Now Lisk Desktop starts an unlocking-timer of 30 days but it should be a timer of 90 days due to the punishment that happened the same day.
Example 2 (watch the dates!):
01.04.2021: Delegate A votes itself with 400 LSK.
02.04.2021: Delegate A gets punished.
09.04.2021: Delegate A unvotes itself with 400 LSK.
Now Lisk Desktop starts an unlocking-timer of 30 days but it should be a timer of 82 days due to the punishment.
Example 3 (watch the dates!):
01.04.2021: Delegate A votes itself with 400 LSK.
02.04.2021: Delegate A gets punished.
25.06.2021: Delegate A unvotes itself with 400 LSK.
Now Lisk Desktop starts an unlocking-timer of 30 days and this would be correct as the punishment ends earlier.
How to fix this?
When unvoting was done, Lisk Desktop needs to check if a delegate is punished or not and if the LSK are part of this punishment. Based on this information, Lisk Desktop should calculate the correct unlocking period and only make the unlocking button available when you really are allowed to unlock your LSK.
The text was updated successfully, but these errors were encountered: