-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dex/testing/dcr: connect voting wallet to beta node during reorg
During reorg, a clone of the alpha wallet is connected to the beta node after the beta node is disconnected from the alpha node. The added wallet uses the same seed as the alpha wallet and is thus able to vote on tickets purchased by the alpha wallet when the alpha node was connected to the beta node. Without a voting wallet connected to the beta node, it can only mine 1 block after it is disconnected from the alpha node. Moreover, connecting just any voting wallet to the beta node does not suffice as the added wallet may not have enough tickets called to vote on a previous block because the tickets called to vote are selected from a pool of tickets purchased by both the new and the alpha voting wallets and the alpha voting wallet may have more tickets called to vote on the previous block than the other voting wallet connected to the beta node.
- Loading branch information
1 parent
c34f5f7
commit 90b1d92
Showing
3 changed files
with
74 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters