Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tendermint: set value to TotalVotingPower
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
bluele committed Sep 13, 2022
1 parent 3963445 commit 831d2a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chains/tendermint/query.go
Original file line number Diff line number Diff line change
@@ -323,7 +323,12 @@ func (c *Chain) QueryValsetAtHeight(height clienttypes.Height) (*tmproto.Validat
}
tmValSet.GetProposer()

return tmValSet.ToProto()
protoValSet, err := tmValSet.ToProto()
if err != nil {
return nil, err
}
protoValSet.TotalVotingPower = tmValSet.TotalVotingPower()
return protoValSet, err
}

func (c *Chain) toTmValidators(vals stakingtypes.Validators) ([]*tmtypes.Validator, error) {

0 comments on commit 831d2a4

Please sign in to comment.