Skip to content

Commit

Permalink
fix: update snapshot after voting
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Apr 22, 2024
1 parent 06356da commit 1c015c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cmd/parse/gov/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ func proposalCmd(parseConfig *parsecmdtypes.Config) *cobra.Command {
return err
}

return nil
validators, err := parseCtx.Node.Validators(height)
if err != nil {
return err
}

return govModule.UpdateProposalValidatorStatusesSnapshot(height, validators, proposalID)
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/gov/utils_proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (m *Module) UpdateProposal(height int64, blockTime time.Time, id uint64) er
return fmt.Errorf("error while handling passed proposals: %s", err)
}

return nil
return m.UpdateProposalStakingPoolSnapshot(height, proposal.ProposalId)
}

func (m *Module) UpdateProposalValidatorStatusesSnapshot(height int64, blockVals *tmctypes.ResultValidators, id uint64) error {
Expand Down

0 comments on commit 1c015c9

Please sign in to comment.