Skip to content

fix(host-cli): follow previewnet through its 2026-09 wipe - #1014

Closed
tommyldev wants to merge 1 commit into
mainfrom
fix/previewnet-genesis-2026-09
Closed

tommyldev wants to merge 1 commit into
mainfrom
fix/previewnet-genesis-2026-09

Conversation

@tommyldev

Copy link
Copy Markdown
Contributor

Problem

Every previewnet chain was re-genesised since #579 pinned the endpoint table. The host resolves chains by genesis, so truapi-host dev --network previewnet (0.21.0) declines every People / Asset Hub / Bulletin request from a product asking for the live hash — products see ChainNotSupportedError: Chain 0x55e3e689… is not supported by the current host (host-declined-chain), and the bundled smoldot specs describe chains that no longer exist.

Chain Pinned (stale) Live
Relay 0x0459cb83… 0x860145753657e73c29b9388ffa0a8aebc643ea87434b4b271b6c3c3cc9e6bf92
Asset Hub 0xc27c8bf3… 0xbac97e23fc8f4bccae72a98f8aeb2bcab20bf755862304e4b46ad6473456e896
People 0xf720c28f… 0x55e3e689ecfa9d2fffcf7d309b8011956671493982230bfd0420c683542249e9
Bulletin 0xea9158d7… 0xa081192b90c1f6a3f8e9ce7b2a8246f41af805c66456c84e05fd97c2b3502425

Live values read off each chain: chain_getBlockHash(0) and chainSpec_v1_genesisHash agree per chain, and system_chain names the role (Individuality Local, Asset Hub Local, Bulletin Local, Paseo Local).

Change

Same set of copies #579 touched, kept in lockstep by the existing tests:

  • truapi-host-cli/src/network.rs — PREVIEWNET_{ASSET_HUB,PEOPLE,BULLETIN} genesis
  • truapi-host-cli/SPEC.md §14.1 previewnet table
  • truapi-provider/src/networks.rs — previewnet NetworkDef (relay + 3 parachains)
  • truapi-provider/networks/previewnet{,-asset-hub,-bulletin,-people}.json — regenerated with scripts/update-chain-specs.sh (new genesis.stateRootHash; relay lightSyncState checkpoint corroborated by relay/bob). Paseo specs came out unchanged.
  • changeset: patch for @parity/truapi-host and @parity/truapi-provider

Verification

  • cargo test -p truapi-host-cli --bin truapi-host network:: — 6 passed (incl. the_spec_genesis_table_matches_the_preset, served_chain_genesis_hashes_match_the_endpoint_routes)
  • cargo test -p truapi-provider — all pass
  • the_advertised_genesis_matches_what_each_chain_reports -- --ignored: on main it reports all three previewnet roles drifted to exactly these hashes; on this branch every previewnet role matches. (Paseo People shows as unreachable from my machine — paseo-people-next-system-rpc.polkadot.io returns 429 / "network unreachable" here — unrelated to this change.)
  • Smoke: rebuilt the CLI, ran the Humanity SPA (peopl.testnet) against it on previewnet. Before: card query: HostProviderAcquisitionError … host-declined-chain. After: card query: ok, game query: ok, airdrops query: ok, provider acquired in 7 ms, and the app renders its real card.

Needs a release before truapi-host update picks it up; until then previewnet is unusable from the installed CLI.

@tommyldev
tommyldev requested a review from a team September 28, 2026 07:07
@github-actions github-actions Bot added the area:core Touches the Rust core under rust/crates label Sep 28, 2026
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

CI Status: 23 required jobs green, 18 passed and 5 skipped by path filter.

All job results
job result
android-bindings skipped
changes success
changeset-guard success
cli-package success
codegen success
e2e skipped
explorer success
headless-install success
host-android-bindings skipped
host-android-detekt skipped
host-wasm success
ios-bindings success
ios-swift success
licenses success
playground success
provider-android-bindings success
release-guard success
rust success
ts-client success
ts-debugger success
ts-host success
wasm-provider success
workflow-lint skipped

Signing credentials: failure as of 2026-09-28, a release may fail

Commit cb0b15a3 · run log

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

iOS simulator preview

Built from cb0b15a33, stamped with it in TrUAPICommit.

gh run download 36397316907 --name simulator-preview-cb0b15a33
unzip polkadot-app-*.app.zip
xcrun simctl install booted polkadot-app.app
xcrun simctl launch booted io.parity.polkadotapp.develop

Or download it in a browser, which arrives as a zip wrapping
the .app.zip, so it needs unzipping twice.

An arm64 simulator slice, so it needs an Apple Silicon Mac and does not
install on a device. Kept for 14 days, after which the link stops
resolving and a new push rebuilds it.

@tommyldev tommyldev closed this Sep 28, 2026
@tommyldev tommyldev reopened this Sep 28, 2026
Every previewnet chain (relay, Asset Hub, People, Bulletin) was
re-genesised since #579 pinned the endpoint table. The host resolves
chains by genesis, so `truapi-host dev --network previewnet` declined
every People, Asset Hub and Bulletin request from a product asking for
the live hash (`ChainNotSupportedError` / `host-declined-chain`), and
the bundled smoldot specs described chains that no longer exist.

Read the live values off each chain (`chain_getBlockHash(0)` and
`chainSpec_v1_genesisHash` agree per chain; `system_chain` names the
role) and updated the copies the tests keep in lockstep: the CLI preset
and its SPEC.md table, truapi-provider's catalog, and the bundled specs
via scripts/update-chain-specs.sh, which also took a fresh relay
checkpoint corroborated by a second node.

Verified with `the_advertised_genesis_matches_what_each_chain_reports`
(previewnet roles all match now) and by running the Humanity SPA
against the rebuilt CLI on previewnet: card, game and airdrop reads
succeed where they previously failed with host-declined-chain.
@tommyldev
tommyldev force-pushed the fix/previewnet-genesis-2026-09 branch from b541245 to cb0b15a Compare September 28, 2026 08:25
@peetzweg

Copy link
Copy Markdown
Member

duplicate of #995, I don't care which one merges but at least one.

@tommyldev

Copy link
Copy Markdown
Contributor Author

Closing, superseded by #995, which followed previewnet through its later reset, and the stack descriptors from #1885.

@tommyldev tommyldev closed this Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core Touches the Rust core under rust/crates size:M 30 to 99 lines changed status:waiting-on-review Ready for a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants