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
enablevoting=0 in dcrwallet conf #520
Conversation
stakepoold does the voting
Is the redundancy a problem? |
The problem is that enablevoting=1 will cause dcrwallet to vote without respecting the users votebits. stakepoold does the voting with the correct votebits. |
That's a pretty big deal. |
@jholdstock Is there a way to ensure at runtime that this dcrwallet config value is correctly set? It could be so easy to miss resulting in the issue you described above. Or use gRPC to set dcrwallet voting instructions when a user updates his voting prefs. https://github.com/decred/dcrwallet/blob/master/rpc/documentation/api.md#setvotechoices. I'm leaning towards the second option, and even discontinuing voting with stakepoold. dcrwallet is needed to generate the vote tx afterall, so stakepoold cannot even vote if dcrwallet is down. Why not just let dcrwallet handle it all? |
@itswisdomagain can there be different votes for different tickets that way? |
Missed that @JoeGruffins. It cannot, currently.
So I guess we look for a way to ensure at runtime that the dcrwallet |
We can get it through walletinfo https://github.com/decred/dcrwallet/blob/51900c2bd053bcca091d030611b6ada482719220/rpc/jsonrpc/methods.go#L3477 |
In addition to the possibility of improper votebits, one idea of having stakepoold create the vote (using dcrwallet to sign it) was to avoid relying on dcrwallet to track stakepool user tickets. In fact, stakepooluserinfo is one of those things that dcrwallet should strive to eliminate, along with all other stake pool realted stuff. |
BTW, I'm extremely surprised that the sample didn't already have |
* commit '0cec13529c159059eff39dc6eb5b69cde5c1bd2d': Add 1.2.0 release note. (decred#509) multi: cleanup (decred#527) Ensure low fee tickets are detected upon maturation. (decred#524) Add RPC automatic reconnections (decred#510) Prevent unnecessary wallet rescans. (decred#519) enablevoting=0 in dcrwallet conf (decred#520) stakepoold: Stop if wallet voting is enabled (decred#523)
stakepoold does the voting
No description provided.