Commit Graph

3 Commits

Author SHA1 Message Date
Josh Rickmar
39734da2e4 rpcserver: Add existsmissedtickets RPC.
This RPC works identically to the existsexpiredtickets RPC but checks
for missed rather than expired tickets.
2017-05-17 10:24:56 -04:00
Marco Peereboom
4b2c7cbf0d Add getstakeversioninfo command. (#568)
The getstakeversioninfo command returns vote and stake versions tally
for N intervals.  It does always start with the current top of the chain
and counts backwards.
2017-02-16 11:54:19 -05:00
Marco Peereboom
6967358649 blockchain: Implement configurable voting on top of PoS. (#542)
Port BIP0009 over from btcd.  The following is an overview of the
changes:
- Add new configuration options to the chaincfg package which allows the
  rule deployments to be defined per chain
- Implement code to calculate the threshold state as required by voting
  - Use threshold state caches that are stored to the database in order
    to accelerate startup time
  - Remove caches that are invalid due to definition changes in the
    params including additions, deletions, and changes to existing
    entries
  - Verify that PoW and PoS majorities have been reached.
- Add tests for new error type
- Add tests for threshold state
- Deployments are per stake version.
- Add human readable vote/choice infrastructure.
- Add RPC command to interrogate vote status (getvoteinfo).
2017-02-13 13:32:40 -05:00