dcrstakepool
dcrstakepool copied to clipboard
tickets that mature and are called to vote in the same block are sometimes not voted
stakepoold acts on notifications from dcrd but since the winning tickets notification typically arrives before the new tickets notification, we won't properly vote when a newly matured ticket is called to vote since live tickets are only appended when they mature.
With some guidance from @JoeGruffins I'd like to tackle this issue as a bug regarding the interaction between dcrstakepool, dcrd and dcrwallet.
Steps:
- local dcrd and dcrwallet simnet using Docker Compose (or similar), possibly with diffusion lag as parameter.
- dcrstakepool on Docker, useful for understanding how it works and how to improve docs.
- dcrd, dcrwallet and dcrstakepool on a Docker simnet.
- unit test to elicit the current issue
- resolution and evaluation with unit test.
If you have any feedback or suggestions please let me know ;)
Enrico
I noticed that writing simnet tests for point 1) should be an extension of rpctest which right now is broken. It does exist decred/dcrwallet#1275, which I could build upon, but I don't really see it getting merged anytime soon. Same with gRPC simnet tests decred/dcrwallet#1298.
So since base dcrwallet simnet tests are not yet in place, dcrstakepool simnet test approach is not gonna work right now.