-
Notifications
You must be signed in to change notification settings - Fork 40
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: update exposed db object IndexedBlock
in x/finality
module
#209
base: main
Are you sure you want to change the base?
Conversation
IndexedBlock
in x/finality moduleIndexedBlock
in x/finality
module
@@ -146,11 +146,22 @@ message QueryBlockRequest { | |||
uint64 height = 1; | |||
} | |||
|
|||
// BlockResponse is the necessary metadata and finalization status of a block | |||
message BlockResponse { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would name it IndexedBlockResponse
to make it clear that the response contains indexed blocks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, nits:
} | ||
|
||
func convertToIndexedBlockList(brs []*ftypes.IndexedBlockResponse) []*ftypes.IndexedBlock { | ||
var ibs []*ftypes.IndexedBlock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allocate the size in advance
} | ||
|
||
func convertToIndexedBlockResponseList(ibs []*types.IndexedBlock) []*types.IndexedBlockResponse { | ||
var blockResponses []*types.IndexedBlockResponse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
what's the status of this pr? @samricotta |
Part closes: https://github.com/babylonlabs-io/pm/issues/72
Currently some of the objects in the babylon apis are exposed and need to be handled correctly seen in https://github.com/babylonlabs-io/pm/issues/72
This PR handles the exposed objects in x/finality
Specifically the
IndexedBlock
object.