Skip to content

Support forking a custom relay chain - #137

Open
mordamax wants to merge 4 commits into
mainfrom
feat/custom-relay
Open

Support forking a custom relay chain#137
mordamax wants to merge 4 commits into
mainfrom
feat/custom-relay

Conversation

@mordamax

Copy link
Copy Markdown
Contributor

Stacked on #129, and includes #135's change (a custom relay has to be able to supply its endpoint, so the two overlap).

-r custom%<name>%<rpc_endpoint>%<chain_spec_path> forks a relay zombie-bite has no built-in knowledge of. The name is what artifacts are named after, the endpoint is what state and metadata are read from, and the spec is what the node is started with (--chain <spec> instead of a network name). There is no built-in host config for such a relay, so Configuration::ActiveConfig has to come from the endpoint — the bite fails with that reason if it can't.

A relay name outside polkadot/kusama/paseo/westend is now a custom relay instead of silently falling back to polkadot. That is what lets the helper subcommands (generate-artifacts, clean-up-dir), which only get the name back as a string, keep naming a custom relay's artifacts correctly — and a typo'd name now fails instead of biting the wrong chain.

The node stores its db under the chain-spec's own id, which need not match the artifact name, so the snapshot path is resolved from the spec.

Closes #133
Closes #134

@mordamax
mordamax marked this pull request as ready for review August 26, 2026 20:02
@mordamax
mordamax requested a review from pepoviola August 26, 2026 20:02
Base automatically changed from feat/metadata-overrides to main August 28, 2026 20:43
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.

1 participant