Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change TmService's validator pubkey type to any #8060

Merged
merged 6 commits into from
Dec 7, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change address to string
  • Loading branch information
aleem1314 committed Dec 7, 2020
commit a94435a8cbe058f7bce46aa2bf97c09667a1941f
156 changes: 77 additions & 79 deletions client/grpc/tmservice/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions client/grpc/tmservice/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (s queryServer) GetLatestValidatorSet(ctx context.Context, req *GetLatestVa
return nil, err
}
outputValidatorsRes.Validators[i] = &Validator{
Address: validator.Address,
Address: validator.Address.String(),
ProposerPriority: validator.ProposerPriority,
PubKey: anyPub,
amaury1093 marked this conversation as resolved.
Show resolved Hide resolved
VotingPower: validator.VotingPower,
Expand Down Expand Up @@ -164,7 +164,7 @@ func (s queryServer) GetValidatorSetByHeight(ctx context.Context, req *GetValida
return nil, err
}
outputValidatorsRes.Validators[i] = &Validator{
Address: validator.Address,
Address: validator.Address.String(),
ProposerPriority: validator.ProposerPriority,
PubKey: anyPub,
VotingPower: validator.VotingPower,
Expand Down
2 changes: 1 addition & 1 deletion proto/cosmos/base/tendermint/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ message GetLatestValidatorSetResponse {

// Validator is the type for the validator-set.
message Validator {
bytes address = 1;
string address = 1;
google.protobuf.Any pub_key = 2;
int64 voting_power = 3;
int64 proposer_priority = 4;
Expand Down