scalextrix avatar

Pinkcoin; getstakinginfo output clarification/update

scalextrix

Published: 01 Jun 2018 › Updated: 01 Jun 2018Pinkcoin; getstakinginfo output clarification/update

Pinkcoin; getstakinginfo output clarification/update

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.

GitHub Account

https://github.com/scalextrix

Leave Pinkcoin; getstakinginfo output clarification/update to:

Written by

Fan of crypto, solar energy, grid computing, Gridcoin, SolarCoin, member of the ElectriCChain.org team

Read more #utopian-io posts


Best Posts From scalextrix

We have not curated any of scalextrix's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From scalextrix