Skip to content

Commit

Permalink
Merge pull request cosmos#319 from celestiaorg/jbowen93/v0.1.1-coinbase
Browse files Browse the repository at this point in the history
Add ProposerAddress as ValidatorInfo.Adress in Status rpc
  • Loading branch information
jbowen93 authored Mar 15, 2022
2 parents 9c2c374 + f4814e5 commit 6203203
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### BREAKING CHANGES

- Add separate key for aggregator signatures ([#309](https://github.com/celestiaorg/optimint/pull/309)) [@mauriceLC92](https://github.com/mauriceLC92)
- Add ProposerAddress as ValidatorInfo.Adress in Status rpc ([#319](https://github.com/celestiaorg/optimint/pull/319)) [@jbowen93](https://github.com/jbowen93)

### FEATURES

Expand Down
5 changes: 4 additions & 1 deletion rpc/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ func (c *Client) Status(ctx context.Context) (*ctypes.ResultStatus, error) {
latestBlockTimeNano := latest.Header.Time

result := &ctypes.ResultStatus{
// TODO(tzdybal): NodeInfo, ValidatorInfo
// TODO(tzdybal): NodeInfo
SyncInfo: ctypes.SyncInfo{
LatestBlockHash: latestBlockHash[:],
LatestAppHash: latestAppHash[:],
Expand All @@ -683,6 +683,9 @@ func (c *Client) Status(ctx context.Context) (*ctypes.ResultStatus, error) {
//EarliestBlockTime: time.Unix(0, earliestBlockTimeNano),
//CatchingUp: env.ConsensusReactor.WaitSync(),
},
ValidatorInfo: ctypes.ValidatorInfo{
Address: latest.Header.ProposerAddress,
},
}
return result, nil
}
Expand Down

0 comments on commit 6203203

Please sign in to comment.