Skip to content

Runtime upgrade with dev console + smoldot spins indefinitely with console errors #35

@seadanda

Description

@seadanda

I tried using the dev console with the light client to system.apply_authorized_upgrade.

This involves uploading the wasm and submitting unsigned (to avoid hefty fees), but when I submitted it I get a transaction when moves to state transaction signed as shown below

Image

then hangs there indefinitely. In the console logs I can see that a websocket connection fails:

WebSocket connection to 'wss://boot-polkadot.luckyfriday.io/' failed:
connect$1 | @ | index-p-BkVK_1.js:28

It iterates through the bootnodes with this same error, then I just get

Disconnected from polkadot{.js}-0x6e10e163a1550e8d-content
3page.js:1 Attempt 1 failed: Could not establish connection. Receiving end does not exist.

repeated at some timeout.
I'm not sure if those issues are relevant, but I see nothing else that looks like it could be the issue. I left it running for about 20 minutes and it got nowhere.

Reproduce for Polkadot relay's recent upgrade:

npx @acala-network/chopsticks@latest -c polkadot --block 0x4c34d458d2dcd911f89eacf06abca096dacd4c94cb24ce00b694c8d6c4a0ec56

Connect to this local via smoldot and system->apply_authorized_upgrade and upload the relay WASM from the fellows v1.4.0 release then submit the extrinsic unsigned.

Note that I haven't actually reproduced it locally. You'll need to insert your magic here to connect using smoldot (is there a guide to doing this with local chains?), when I connect to my chopsticks instance via ws://127.0.0.1:8000 it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions