Merge branch 'master' into gamarin/update_gov_spec

This commit is contained in:
gamarin2
2018-07-11 15:59:24 +02:00
committed by GitHub
433 changed files with 36613 additions and 13800 deletions
+1
View File
@@ -56,6 +56,7 @@ const (
type ProposalStatus byte
const (
ProposalStatusOpen = 0x1 // Proposal is submitted. Participants can deposit on it but not vote
ProposalStatusActive = 0x2 // MinDeposit is reachhed, participants can vote
+2 -2
View File
@@ -166,6 +166,7 @@ vote on the proposal.
*Note: Gas cost for this message has to take into account the future tallying of the vote in EndBlocker*
Next is a pseudocode proposal of the way `TxGovVote` transactions are
handled:
@@ -188,11 +189,10 @@ handled:
if (proposal.CurrentStatus == ProposalStatusActive)
// Sender can vote if
// Proposal is active
// Sender has some bonds
store(Governance, <txGovVote.ProposalID|'addresses'|sender>, txGovVote.Vote) // Voters can vote multiple times. Re-voting overrides previous vote. This is ok because tallying is done once at the end.
```