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

Minor improvements to light-client-cli #3412

Merged
merged 3 commits into from
Jul 11, 2023
Merged

Conversation

eranrund
Copy link
Contributor

This PR implements two changes in the light client CLI utility that makes it more friendly when used in the context of the cosmwasm work I am doing outside of this repo.

The changes are:

  1. We can now pass known trusted block ids to GenerateConfig. This is useful since I want to trust some old knopwn block(s) that contain burn transactions - I can easily find them on https://auditor.mobilecoin.foundation/ and then go to the block explorer to get their ids.
  2. Allow specifying the file format outputted by FetchBlocks. Previously it was outputting a protobuf-encoded ArchiveBlocks. Unfortunately we do not currently have a prost version of this, so using it in the cosmwasm realm is impossible without adding that (and all the associated conversions to go between that and protobuf/BlockData). Instead of doing that, I added an option to output as a JSON-formatted array of individually encoded BlockData protos, which can easily be deserialized on the cosmwasm side. The specific format in which we hand data to the contract is likely going to change/evolve over time but for now this allows me to make progress.

Copy link
Contributor

@voloshyn voloshyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eranrund eranrund merged commit 897a64f into master Jul 11, 2023
20 checks passed
@eranrund eranrund deleted the light-client-cli-improvements branch July 11, 2023 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants