#14 Merged at 3fab6de
Repository
sigmike
Branch
reputation_vote
Repository
JordanLeePeershares
Branch
3.1-stable
Author
  1. Michael Witrant
Reviewers
Description

To solve issue #15. It includes pull request #12 and pull request #13 because it needs them.

The user can set the reputation votes in 3 ways:

1) With the setvote RPC. He must provide an array of objects containing an address and a weight (positive for upvotes and negative for downvotes, as mentioned in the issue). For example:

    {
      "reputations": [
        {"address": "tV5zFXK46bFTWM3ra8UcCWzCRsc12mg3as", "weight": 10},
        {"address": "tHpbt9ZTgWfGxYDoukHj1P3AMsuvKm5XtG", "weight": -2}
      ]
    }

2) In the GUI. Here's a screenshot:

reputation_vote.png

The user doesn't provide negative weights for down votes. Instead it adds the vote to the right table with a positive weight.

3) With a datafeed. There's a new part "reputations" to define whether the reputation votes should be imported from the data feed.


The 3 reputation votes are added randomly to each generated block as mentioned in the issue. A weight of zero is allowed. The corresponding address will not be included in any block.

The reputation votes are not used by anything yet (will be done in issue #16 or if we decide to display the scores in a RPC or in the GUI).

Comments (2)

  1. Michael Witrant author

    I've added the RPC and the GUI. Examples:

    {
      "t82WQUtxiXJZjzSSC1nF5tDaNrxGHwsV3H" : -281.0,
      "tBfFT8qt88FGRvCDKiaqFB7Zw8cAtKnyPW" : 247.0,
      "tHgyFmmBPmcwHxHh3bpng8uiRVgQ9zqWuK" : 572.0,
      "uUCJuuivVpATbmWcBEKeKhqs9vvJ44UYSL" : 115.0
    }
    

    reputation_display.png