-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cold staking widget state different scenarios fixing #624
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unlock widget does not have the right behaviour
Wallet should be unlocked for staking only when unlocking the widget, instead of the current fully unlocked with timer.
unlock wallet for staking only does not have the right behaviour
When unlocking for staking only, coldstaking is at 0%. Locking and fully unlocking the wallet updates the coldstaking at 100% (real here).
@@ -64,6 +65,9 @@ export class ColdstakeComponent implements OnInit { | |||
if (this.coldstakeProgress < 100) { | |||
setTimeout(this.rpc_progressLoop.bind(this), 1000); | |||
} | |||
if (this.coldstakeProgress === 100) { | |||
this.activation = 'Activated'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we still need to poll here in case there's a new transaction after full activation
…et instead fully unlock
Perfect, @vikas-cis . |
#620