dcrstakepool icon indicating copy to clipboard operation
dcrstakepool copied to clipboard

tickets that mature and are called to vote in the same block are sometimes not voted

Open jolan opened this issue 7 years ago • 2 comments

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.

jolan avatar Jan 23 '18 15:01 jolan

With some guidance from @JoeGruffins I'd like to tackle this issue as a bug regarding the interaction between dcrstakepool, dcrd and dcrwallet.

Steps:

  1. local dcrd and dcrwallet simnet using Docker Compose (or similar), possibly with diffusion lag as parameter.
  2. dcrstakepool on Docker, useful for understanding how it works and how to improve docs.
  3. dcrd, dcrwallet and dcrstakepool on a Docker simnet.
  4. unit test to elicit the current issue
  5. resolution and evaluation with unit test.

If you have any feedback or suggestions please let me know ;)

Enrico

ebonetti avatar Oct 25 '19 14:10 ebonetti

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.

ebonetti avatar Nov 04 '19 13:11 ebonetti