From 09ea8dac11406a23a91ab15464a383688ae46148 Mon Sep 17 00:00:00 2001 From: gamarin Date: Thu, 7 Jun 2018 12:30:49 +0200 Subject: [PATCH] additional chekc in VoteMsg --- docs/spec/governance/transactions.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/spec/governance/transactions.md b/docs/spec/governance/transactions.md index f5c39230c7..6192f908de 100644 --- a/docs/spec/governance/transactions.md +++ b/docs/spec/governance/transactions.md @@ -184,9 +184,11 @@ handled: throw - if (proposal.CurrentStatus == ProposalStatusActive) + if (proposal.CurrentStatus == ProposalStatusActive && len(stakeKeeper.GetDelegations(sender)) > 0) - // Sender can vote + // Sender can vote if + // Proposal is active + // Sender has some bonds store(Governance, , txGovVote.Vote) // Voters can vote multiple times. Re-voting overrides previous vote. This is ok because tallying is done once at the end.