Skip to content

feat(resolver): add WebRTC-direct bootnodes to the Paseo Asset Hub and Bulletin chain specs#85

Draft
BigTava wants to merge 1 commit into
mainfrom
webrtc-chainspec-bootnodes
Draft

feat(resolver): add WebRTC-direct bootnodes to the Paseo Asset Hub and Bulletin chain specs#85
BigTava wants to merge 1 commit into
mainfrom
webrtc-chainspec-bootnodes

Conversation

@BigTava

@BigTava BigTava commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add two webrtc-direct bootnodes each to the Paseo Asset Hub Next and Bulletin Next smoldot chain specs, keeping the compact genesis.stateRootHash form so the change stays additive and small.
  • This lets the main-thread smoldot-direct backend reach the collators over WebRTC in addition to WSS.
  • Known blocker, do not merge as-is: these bootnodes crash the default smoldot-shared-worker backend, because smoldot's connect path calls RTCPeerConnection.generateCertificate unconditionally and RTCPeerConnection is undefined in a SharedWorker scope, which stops the Asset Hub chainHead_v1_follow and fails init.
  • A follow-up must strip /webrtc-direct/ bootnodes at runtime when RTCPeerConnection is undefined (worker scope) before this can ship.
  • Opened as a draft pending that feature-detect filter.

@github-actions

Copy link
Copy Markdown
Contributor

⚡ Performance Report

⚠️ No baseline found on main. This PR's results are recorded but cannot be compared.
Merge to main to establish a baseline.

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Report

Chunks over 500 KB:

File Raw Brotli Gzip
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1019.4 KB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.82 MB
host/assets/previewnet.smol.json 1.88 MB 181.4 KB 353.0 KB
host/assets/smoldot_worker.js 2.95 MB 2.21 MB 2.21 MB
Total 11.39 MB (-384 B) 5.45 MB (-731 B) (-52%) 5.92 MB (-760 B)
All files
File Raw Brotli Gzip
host/.well-known/apple-app-site-association 738 B 738 B 738 B
host/.well-known/assetlinks.json 1.3 KB 317 B 391 B
host/assets/auth.js 487.5 KB 183.5 KB (-9 B) 230.5 KB (-3 B)
host/assets/blake2.js 10.2 KB 3.2 KB 3.7 KB (-1 B)
host/assets/bridge.js 5.4 KB 1.8 KB (+3 B) 2.1 KB (+2 B)
host/assets/browser.js 22.9 KB 7.6 KB 8.6 KB
host/assets/client.js 93.3 KB 27.5 KB (-30 B) 30.2 KB
host/assets/container.js 53.9 KB 13.2 KB (+12 B) 14.9 KB
host/assets/dist.js 28.8 KB (+3.9 KB) 9.9 KB (+2.2 KB) 11.1 KB (+2.5 KB)
host/assets/dist.js 20.6 KB (-4.3 KB) 4.8 KB (-2.9 KB) 5.4 KB (-3.2 KB)
host/assets/dist.js 24.9 KB 7.7 KB 8.6 KB
host/assets/dotli-debug-bus.js 495 B 495 B 495 B
host/assets/index.js 106.6 KB 29.1 KB (+25 B) 33.9 KB (-9 B)
host/assets/index.css 47.9 KB 7.4 KB 8.3 KB
host/assets/log.js 972 B 972 B 972 B
host/assets/manifest.js 22.6 KB 7.3 KB 8.0 KB (+2 B)
host/assets/mode.js 1.7 KB 600 B 664 B
host/assets/nanoevents.js 215 B 215 B 215 B
host/assets/nova-scale.js 6.7 KB 2.6 KB 2.9 KB
host/assets/panel.js 84.8 KB 23.0 KB (-6 B) 26.2 KB
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1019.4 KB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.82 MB
host/assets/paseo.smol.json 25.4 KB 4.9 KB 5.6 KB
host/assets/previewnet.smol.json 1.88 MB 181.4 KB 353.0 KB
host/assets/resolve.js 152 B 152 B 152 B
host/assets/rolldown-runtime.js 694 B 694 B 694 B
host/assets/rpc-resolve.js 2.5 KB 1.0 KB (-2 B) 1.2 KB (-2 B)
host/assets/shared-mode.js 1.9 KB 793 B 895 B (-2 B)
host/assets/smoldot_worker.js 2.95 MB 2.21 MB 2.21 MB
host/assets/spans.js 1.6 KB 765 B 914 B
host/assets/src.js 1.9 KB 889 B (-14 B) 1002 B (+1 B)
host/assets/styles.css 15.1 KB 3.2 KB 3.8 KB
host/assets/substrate-client.js 7.2 KB 2.7 KB (-3 B) 3.0 KB (-3 B)
host/assets/ws.js 25.9 KB 8.4 KB (+7 B) 9.1 KB
host/dotli.png 11.5 KB 11.5 KB 11.5 KB
host/favicon.svg 1.8 KB 1.8 KB 1.8 KB
host/host-sw.js 2.8 KB 1.1 KB (-1 B) 1.3 KB (-5 B)
host/icon-192.png 12.5 KB 12.5 KB 12.5 KB
host/icon-512.png 42.8 KB 42.8 KB 42.8 KB
host/index.html 20.2 KB 4.5 KB (-2 B) 5.5 KB (-1 B)
host/manifest.webmanifest 441 B 441 B 441 B
host/workbox.js 14.8 KB 4.6 KB 5.1 KB
sandbox/app-sw.js 9.6 KB 3.1 KB (-16 B) 3.5 KB (-1 B)
sandbox/assets/bitswap-bridge.js 840 B 840 B 840 B
sandbox/assets/fetch.js 3.4 KB 1.2 KB (-1 B) 1.4 KB (-3 B)
sandbox/assets/index.css 47.9 KB 7.4 KB 8.3 KB
sandbox/assets/index.js 118.0 KB 33.7 KB (-20 B) 39.6 KB (-1 B)
sandbox/favicon.svg 1.8 KB 1.8 KB 1.8 KB
sandbox/index.html 1.7 KB 580 B (-3 B) 785 B (-3 B)
Total 11.39 MB (-384 B) 5.45 MB (-731 B) (-52%) 5.92 MB (-760 B)

Commit: f592a08

@github-actions

Copy link
Copy Markdown
Contributor

E2E Product suite failed on 6912f0a23e864fec7ab696c509373310bee0fd78 — 38 passed, 7 failed, 17 skipped.

Failed tests:

  • Bulletin Allowance
  • All Allowances
  • Submit
  • In-App
  • Factory
  • Submit
  • Sign Raw Message

Logs: https://github.com/paritytech/dotli-community/actions/runs/29590250322
Artifacts: e2e-product-results (uploaded above) — open the failed test's trace.zip with npx playwright show-trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant