Skip to content

Publish the fork's own nodes as bootNodes, optionally under a public host - #132

Merged
pepoviola merged 1 commit into
feat/bundle-manifestfrom
feat/publish-bootnodes
Aug 29, 2026
Merged

Publish the fork's own nodes as bootNodes, optionally under a public host#132
pepoviola merged 1 commit into
feat/bundle-manifestfrom
feat/publish-bootnodes

Conversation

@mordamax

@mordamax mordamax commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Stacked on #131.

A published chain-spec ships with bootNodes: [], so a node this process did not start has no way to find the fork — the peer wiring only exists in the spawned nodes' arguments. --publish-bootnodes [<host>] fills the list with the fork's own nodes: no value publishes the loopback addresses (same-host consumers), a value advertises that name instead, rewriting only the host (/ip4/127.0.0.1/…/dns4/<host>/…, or /ip4/ for a literal IP) and keeping port, transport and peer id. Same model as ppn service patch-bootnodes.

Addresses are captured while the network is up but written after the artifacts are generated, so the reusable bite bundle is untouched and only the published one advertises this run's nodes. Specs are matched by their own para_id rather than by file name, since a fork carries the source chain's spec id (collectives_polkadot vs the file's collectives-polkadot).

Closes #123

@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

@pepoviola pepoviola left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, the only qq is if we have a simple way to get the patched spec to use after spawn

@pepoviola
pepoviola merged commit 727cba8 into feat/bundle-manifest Aug 29, 2026
3 checks passed
@pepoviola
pepoviola deleted the feat/publish-bootnodes branch August 29, 2026 14:04
pepoviola added a commit that referenced this pull request Aug 31, 2026
* Verify overrides against chain metadata, patch live HostConfiguration

* Address review: error on required items, pin reads to bite block, test metadata paths

* Write a bundle manifest describing the bite artifacts

* Publish the fork's own nodes as bootNodes, optionally under a public host (#132)

* Pack a step's artifacts into one restorable bundle (#136)

* Publish the fork's own nodes as bootNodes, optionally under a public host

* Pack a step's artifacts into one restorable bundle

---------

Co-authored-by: Javier Viola <363911+pepoviola@users.noreply.github.com>

* Address review: drop binary-version tracking from the manifest

---------

Co-authored-by: Javier Viola <363911+pepoviola@users.noreply.github.com>
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.

2 participants