From 38975ac6952ab1b8f6d74f30b7ddb6ecb94f1adc Mon Sep 17 00:00:00 2001 From: gamarin Date: Tue, 27 Feb 2018 16:04:44 +0100 Subject: [PATCH] Remove map from Proposal struct --- docs/spec/governance/state.md | 5 +++-- docs/spec/governance/transactions.md | 27 ++++++++++++++++++--------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/docs/spec/governance/state.md b/docs/spec/governance/state.md index 1fb2581c2..ecaadfbed 100644 --- a/docs/spec/governance/state.md +++ b/docs/spec/governance/state.md @@ -40,7 +40,6 @@ type Proposal struct { VotingStartBlock int64 // Height of the block where MinDeposit was reached. -1 if MinDeposit is not reached InitTotalVotingPower int64 // Total voting power when proposal enters voting period (default 0) InitProcedureNumber int16 // Procedure number of the active procedure when proposal enters voting period (default -1) - Votes map[string]int64 // Votes for each option (Yes, No, NoWithVeto, Abstain) } ``` @@ -61,6 +60,7 @@ type ValidatorGovInfo struct { `ProcedureNumber`. First ever procedure is found at index '1'. Index '0' is reserved for parameter `ActiveProcedureNumber` which returns the number of the current procedure. * `Proposals`: A mapping `map[int64]Proposal` of proposals indexed by their `proposalID` +* `Votes`: A mapping `map[[]byte]int64` of votes indexed by `: