Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cli: Command to fetch chainSpec and optimise its size #1263

Closed
lexnv opened this issue Nov 14, 2023 · 0 comments · Fixed by #1278
Closed

cli: Command to fetch chainSpec and optimise its size #1263

lexnv opened this issue Nov 14, 2023 · 0 comments · Fixed by #1278
Assignees

Comments

@lexnv
Copy link
Collaborator

lexnv commented Nov 14, 2023

Add a cli command that:

  • fetches the chainSpec needed to start a light client from a running node
  • add an extra config to enable / disable chainSpec size optimization

The size optimization can be done by hashing the genesis.raw entries, obtaining as a result a stateRootHash that will drastically reduce the chainSpec size; and allow for faster light client initialization.

Then, this CLI tool together with scripts/artifacts.sh can run in a cronjob to automatically update:

  • demo chain specs
  • metadata files
  • codegen polkadot.rs file
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant