Skip to content

Commit

Permalink
Merge pull request #11315 from vegaprotocol/11314-batch-node-validati…
Browse files Browse the repository at this point in the history
…on-votes

fix: restore votes on batch proposals undergoing node-validation when…
  • Loading branch information
EVODelavega authored and jeremyletang committed May 23, 2024
1 parent 62a12b5 commit 8ba7237
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/governance/node_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down

0 comments on commit 8ba7237

Please sign in to comment.