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

chore: add new query to return next block to be rewarded #377

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## Unreleased

### Improvements

- [#377](https://github.com/babylonlabs-io/babylon/pull/377) Query to get next
block height to be rewarded

### Bug fixes

- [#374](https://github.com/babylonlabs-io/babylon/pull/374) Fix non-consecutive finalization
Expand Down
17 changes: 17 additions & 0 deletions proto/babylon/finality/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ service Query {
rpc SigningInfos(QuerySigningInfosRequest) returns (QuerySigningInfosResponse) {
option (google.api.http).get = "/babylon/finality/v1/signing_infos";
}

// NextRewardHeight queries the next block height to reward
rpc NextRewardHeight(QueryNextRewardHeightRequest) returns (QueryNextRewardHeightResponse) {
option (google.api.http).get = "/babylon/finality/v1/next_reward_height";
}
}

// QueryParamsRequest is request type for the Query/Params RPC method.
Expand Down Expand Up @@ -396,3 +401,15 @@ message QuerySigningInfosResponse {
repeated SigningInfoResponse signing_infos = 1 [(gogoproto.nullable) = false];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

// QueryNextRewardHeightRequest is the request type for the Query/NextRewardHeight RPC
// method
message QueryNextRewardHeightRequest {
}

// QueryNextRewardHeightResponse is the response type for the Query/NextRewardHeight RPC
// method
message QueryNextRewardHeightResponse {
// NextRewardHeight is the next block height which will be rewarded
uint64 next_reward_height = 2;
}
161 changes: 79 additions & 82 deletions x/btcstaking/types/events.pb.go

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

Loading