Skip to content

fix RPC blockresults return (#5459) (#5463) #5463

Merged
tac0turtle merged 3 commits intov0.34.0-rc5from
marko/fix_rpc_backport
Oct 7, 2020
Merged

fix RPC blockresults return (#5459) (#5463) #5463
tac0turtle merged 3 commits intov0.34.0-rc5from
marko/fix_rpc_backport

Conversation

@tac0turtle
Copy link
Contributor

Description

Please add a description of the changes that this PR introduces and the files that
are the most critical to review.

Closes: #XXX

## Description

In blocks_results we use the proto definition of abciResponses: https://github.com/tendermint/tendermint/blob/2672b91ab099b8b02f3afabae4a0a745acd93c3f/rpc/core/blocks.go#L152-L155, this leads to the use of the proto definition of the pubkey which is an interface in go (oneof). The interface must be registered with the JSON encoder to have it work correctly.

A clearer divide between proto types and native types is needed.

Closes: #XXX
In blocks_results we use the proto definition of abciResponses: https://github.com/tendermint/tendermint/blob/2672b91ab099b8b02f3afabae4a0a745acd93c3f/rpc/core/blocks.go#L152-L155, this leads to the use of the proto definition of the pubkey which is an interface in go (oneof). The interface must be registered with the JSON encoder to have it work correctly.

A clearer divide between proto types and native types is needed.

Closes: #XXX
@tac0turtle tac0turtle added C:rpc Component: JSON RPC, gRPC S:backport labels Oct 5, 2020
@codecov
Copy link

codecov bot commented Oct 5, 2020

Codecov Report

❗ No coverage uploaded for pull request base (v0.34.0-rc5@383bc53). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             v0.34.0-rc5    #5463   +/-   ##
==============================================
  Coverage               ?   61.33%           
==============================================
  Files                  ?      259           
  Lines                  ?    23435           
  Branches               ?        0           
==============================================
  Hits                   ?    14374           
  Misses                 ?     7599           
  Partials               ?     1462           

@erikgrinaker
Copy link
Contributor

erikgrinaker commented Oct 5, 2020

This probably needs a changelog entry. Also, when backporting we should keep the original PR/commit message, otherwise the branch history will just be full of "backport" commit messages which isn't particularly informative.

@tac0turtle tac0turtle changed the title rpc: backport fix RPC blockresults return (#5459) (#5463) Oct 7, 2020
@tac0turtle tac0turtle merged commit dac18d7 into v0.34.0-rc5 Oct 7, 2020
@tac0turtle tac0turtle deleted the marko/fix_rpc_backport branch October 7, 2020 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C:rpc Component: JSON RPC, gRPC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants