From 8ba723715eaff478d655936aa43b6b681cb679be Mon Sep 17 00:00:00 2001 From: Elias Van Ootegem Date: Thu, 23 May 2024 15:47:29 +0200 Subject: [PATCH] Merge pull request #11315 from vegaprotocol/11314-batch-node-validation-votes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: restore votes on batch proposals undergoing node-validation when… --- core/governance/node_validation.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/governance/node_validation.go b/core/governance/node_validation.go index 932c611bfc8..ee34e1c3cd5 100644 --- a/core/governance/node_validation.go +++ b/core/governance/node_validation.go @@ -435,9 +435,9 @@ func (n *NodeValidation) restoreBatch(ctx context.Context, pProto *snapshotpb.Ba nbp := &nodeBatchProposal{ batchProposal: &batchProposal{ BatchProposal: p, - yes: map[string]*types.Vote{}, - no: map[string]*types.Vote{}, - invalidVotes: map[string]*types.Vote{}, + yes: votesAsMapFromProto(pProto.BatchProposal.Yes), + no: votesAsMapFromProto(pProto.BatchProposal.No), + invalidVotes: votesAsMapFromProto(pProto.BatchProposal.Invalid), }, nodeProposals: nodeProposals, state: atomic.Uint32{},