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

Stop using JSON spec files in runtime #375

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

kacperzuk-neti
Copy link
Collaborator

Our current binaries embed the JSON from specs/bastiat.raw.json and specs/mainnet.raw.json during build and allow using --chain bastiat and --chain mainnet without having to use separate JSON file.

Let's stop publishing separate JSON files and make install.sh rely on embedded specs.

Rationale: this will greatly simplify the upgrade process for users in case of chain spec changes (new bootnodes, new telemetry server, recovering chain in case of catastrophic failure) - they'll be able to just drop-in new binary and things will just work.

Compatibility:

  • new docker image won't embed the spec files - users running docker will need to change their command line after updating to latest image
  • new install.sh script won't detect existing json-spec-based installations - users will be prompted to select the network (bastiat/mainnet) again when running script to update from json-spec to embedded-spec.

@kacperzuk-neti kacperzuk-neti self-assigned this May 9, 2024
@DorianSternVukotic DorianSternVukotic merged commit 879267a into develop Jul 13, 2024
4 checks passed
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

2 participants