-
Notifications
You must be signed in to change notification settings - Fork 74
Description
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 the votingwalletextpub config value. I believe the entire op can be moved to stakepoold (generate the per-user ticket address in stakepoold) and thus retire the votingwalletextpub 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 the votingwalletextpub is the same across all stakepoold instances. This check can be performed without needing to save the votingwalletextpub value somewhere; but rather allow the value to be retrieved for use in stakepoold when the CreateMultisig 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.