-
Notifications
You must be signed in to change notification settings - Fork 74
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
deprecate votingwalletextpub
dcrstakepool config option
#496
Comments
I may be reading this wrong, but #422 will deprecate votingwalletextpub. |
Oops, I meant #422 in my issue desc actually, not #407. Will correct. Yes, it does deprecate the option from dcrstakepool config but does not completely retire it from dcrstakepool. The approach in #422 so far is to issue rpc calls to stakepoold to retrieve the voting wallet pub key. I'm suggssting we shouldn't even need to do that. #422 is already a work in the desired direction, hence I meant to reference it as what could be modified to apply the suggestion above. I mis-referenced #407. |
I feel like there was a reason @jholdstock wanted to do the multisig on all the wallets. So the voting wallets watched addresses are incremented I think. The xpub is also used when a new user signs up, before they make the multisig our address for them is saved in the db. I guess that could be changed tho. |
Ah, I see. What you say about the wallet watched addresses increment makes some sense. I'll look at the code again though to confirm if that's necessary. I'm not sure the ticket address from the voting wallet is saved before the multisig is created. In any case, we can/should modify the |
Yeah, I was wrong about the xpub being used on sign up. I don't think it matters until the multisig is made. |
What would be the benefit of not saving the xpub? |
If there's no need for it, why save it? And I don't see a need for it as it can easily be included in the |
Calling |
That makes sense @jholdstock. The goal of this issue then would be to have all |
The
votingwalletextpub
is only used for generating a ticket address to pair with a user's wallet address to generate a multisig. #451 moved the multisig creation process to stakepoold but the ticket address is still generated by dcrstakepool using thevotingwalletextpub
config value. I believe the entire op can be moved to stakepoold (generate the per-user ticket address in stakepoold) and thus retire thevotingwalletextpub
config option.This would render part of the work done in #422 obsolete.
Also, with reference to #451, there would be no need to perform the
CreateMultisig
rpc call on all stakepoold servers if a check is done at dcrstakepool startup to ensure that thevotingwalletextpub
is the same across all stakepoold instances. This check can be performed without needing to save thevotingwalletextpub
value somewhere; but rather allow the value to be retrieved for use in stakepoold when theCreateMultisig
rpc method is invoked.With the above note in mind, #422 could then focus on ensuring that the dcrwallet instances running on all stakepoold backends are properly configured (by checking that the
votingwalletextpub
value is the same across all stakepoold instances). #422 would also continue to check that the coldwalletextpubkey does not belong to any of the stakepoold dcrwallet instances.The text was updated successfully, but these errors were encountered: