Skip to content

Track winning tickets #27

Closed
Closed

Description

@chappjc

The winning tickets are easily obtained from the dcrd notifier, or the ticket treap database, so it is easy to obtain for new or old blocks. We just need to decide if the 5 ticket hashes should be stored in the block summary database or in a new DB just for the winning tickets. I vote for the second.

Activity

  1. added this to the 0.2.0 milestone on Mar 16, 2017
  2. modified the milestones: 0.4.0, 0.2.0 on Jun 8, 2017
  3. modified the milestones: 0.4.0, 0.6.0 on Jul 7, 2017
  4. modified the milestones: 0.7, 0.6.0 on Jul 25, 2017
  5. modified the milestones: 0.8, 0.7 on Aug 20, 2017
  6. chappjc commented on Aug 26, 2017

    @chappjc
    MemberAuthor

    and misses

  7. raedah commented on Sep 3, 2017

    @raedah

    What data are we storing about winning tickets and what will it be used for?

  8. chappjc commented on Sep 3, 2017

    @chappjc
    MemberAuthor

    A peculiarity of the Decred ticket lottery (IMO) is that the IDs of the tickets that are selected to vote are not recorded explicitly. They must be derived, and this is not easily done are the moment. Internal packages and notifications make this easy for the best block, but that's it.

    So if a vote is missed for a ticket, there's really no way know that for sure arbitrary ticket hash.

    Having a table of the called ticket hashes for each block, and the ones that voted (and implicitly the ones that missed) would be good to have. Especially helpful would be a look by hash to see if a ticket was called and voted.

  9. chappjc commented on Sep 3, 2017

    @chappjc
    MemberAuthor

    The stakedb and notifications make this easy, but it's a little work to implement. Once I start this, it won't take much time

  10. modified the milestones: 0.9, 0.8 on Sep 5, 2017
  11. modified the milestones: 0.9, 1.1.0 on Nov 3, 2017
  12. chappjc commented on Feb 11, 2018

    @chappjc
    MemberAuthor

    closed by PR #300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions