FollowMyVote / StakeWeightedVoting

An application to vote on proposals where votes are weighted proportional to the voter's balance of a coin
Other
107 stars 30 forks source link

Decision datagram key is incorrect #163

Closed nathanielhourt closed 7 years ago

nathanielhourt commented 7 years ago

The decision datagram key, as defined in datagram.capnp, is incorrect:

struct DecisionKey {
# The schema for the Key field of a decision datagram
    balanceId @0 :BalanceId;
}

The key is defined to be unique for a given balance, but there may be several decisions all on the same balance, each referencing different contests. The key should contain the contest ID instead of the balance ID. As it stands now, there is only one valid per voter per coin, instead of per voter per contest.