Repository
https://github.com/Pink2Dev/Pink2
Components
As reported, there is an issue around the output of the RPC getstakinginfo, the output has
{
"enabled" : true,
"staking" : false,
"errors" : "",
...
}
However there is no method to absolutely diagnose why enabled may be true, whereas staking may be false. My original suggestion was to toggle the enabled boolean with the wallet being locked/unlocked.
Proposal
After discussion with the dev it appears the enabled boolean has another usage, but this still leaves the diagnosis of staking: false as somewhat hard to tie down, so there is the possiblility to enable some messages in errors: ""
Mockups / Examples
{
"enabled" : true,
"staking" : false,
"errors" : "wallet locked",
...
}
{
"enabled" : true,
"staking" : false,
"errors" : "out of sync",
...
}
Benefits
Improved clarity for uses over common issues that may be preventing their node from staking and supporting the network.
Hello @scalextrix
Thank you for contributing via utopian. I believe that this will indeed be helpful both server side and user side. This also will allow the user to easily understand what the problem is when wallet is refusing to connect/sync with the server which i believe could be caused by very poor internet connection. Without the correct message displayed could really be harmful to user experience.
Please note that this project has not received code update for nearly more than 6 months and will not be eligible for utopian support in the next 7 days (Last valid code update was Dec-12-2017).
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @scalextrix
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit