Repository navigation
Conversation
Contributor
|
CI Status: 23 required jobs green, 18 passed and 5 skipped by path filter. All job results
Signing credentials: failure as of 2026-09-28, a release may fail Commit |
Contributor
iOS simulator previewBuilt from 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.developOr download it in a browser, which arrives as a zip wrapping An arm64 simulator slice, so it needs an Apple Silicon Mac and does not |
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
force-pushed
the
fix/previewnet-genesis-2026-09
branch
from
September 28, 2026 08:25
b541245 to
cb0b15a
Compare
peetzweg
approved these changes
Sep 28, 2026
Member
|
duplicate of #995, I don't care which one merges but at least one. |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 seeChainNotSupportedError: Chain 0x55e3e689… is not supported by the current host(host-declined-chain), and the bundled smoldot specs describe chains that no longer exist.0x0459cb83…0x860145753657e73c29b9388ffa0a8aebc643ea87434b4b271b6c3c3cc9e6bf920xc27c8bf3…0xbac97e23fc8f4bccae72a98f8aeb2bcab20bf755862304e4b46ad6473456e8960xf720c28f…0x55e3e689ecfa9d2fffcf7d309b8011956671493982230bfd0420c683542249e90xea9158d7…0xa081192b90c1f6a3f8e9ce7b2a8246f41af805c66456c84e05fd97c2b3502425Live values read off each chain:
chain_getBlockHash(0)andchainSpec_v1_genesisHashagree per chain, andsystem_chainnames 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}genesistruapi-host-cli/SPEC.md§14.1 previewnet tabletruapi-provider/src/networks.rs— previewnetNetworkDef(relay + 3 parachains)truapi-provider/networks/previewnet{,-asset-hub,-bulletin,-people}.json— regenerated withscripts/update-chain-specs.sh(newgenesis.stateRootHash; relaylightSyncStatecheckpoint corroborated byrelay/bob). Paseo specs came out unchanged.@parity/truapi-hostand@parity/truapi-providerVerification
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 passthe_advertised_genesis_matches_what_each_chain_reports -- --ignored: onmainit reports all three previewnet roles drifted to exactly these hashes; on this branch every previewnet rolematches. (Paseo People shows as unreachable from my machine —paseo-people-next-system-rpc.polkadot.ioreturns 429 / "network unreachable" here — unrelated to this change.)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 updatepicks it up; until then previewnet is unusable from the installed CLI.