liberland / liberland_substrate

Substrate implementation of the Liberland Network node
21 stars 14 forks source link

Stop using JSON spec files in runtime #375

Closed kacperzuk-neti closed 2 months ago

kacperzuk-neti commented 4 months ago

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: