Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix try-runtime #1961

Closed
zjb0807 opened this issue Mar 15, 2022 · 2 comments · Fixed by #1988
Closed

Fix try-runtime #1961

zjb0807 opened this issue Mar 15, 2022 · 2 comments · Fixed by #1988
Assignees

Comments

@zjb0807
Copy link
Member

zjb0807 commented Mar 15, 2022

paritytech/substrate#11017

@zqhxuyuan
Copy link
Contributor

zqhxuyuan commented Mar 15, 2022

depend on polkadot-v0.9.17:

cargo run --features with-karura-runtime --features try-runtime -- try-runtime --chain=karura-dev --wasm-execution=compiled offchain-worker live --uri wss://karura.api.onfinality.io:443/public-ws --at=0xbd927a498ef4c30fea7be43d48df511ddf1ec062af90f46da1f96eb11ae226fa -s snapshot.bin
    Finished dev [unoptimized + debuginfo] target(s) in 2.08s
     Running `target/debug/acala try-runtime --chain=karura-dev --wasm-execution=compiled offchain-worker live --uri 'wss://karura.api.onfinality.io:443/public-ws' --at=0xbd927a498ef4c30fea7be43d48df511ddf1ec062af90f46da1f96eb11ae226fa -s snapshot.bin`
thread 'main' panicked at 'Argument "pallets" 🔥
  Arg::is_use_value_delimiter_set is required when Arg::is_require_value_delimiter_set is set.
', /Users/zqh/.cargo/registry/src/github.jparrowsec.cn-1ecc6299db9ec823/clap-3.1.6/src/build/debug_asserts.rs:659:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

polkadot-v0.9.17 also has this problem:

➜  polkadot git:(release-v0.9.17) target/debug/polkadot try-runtime --chain=polkadot-dev --wasm-execution=compiled on-runtime-upgrade live --uri 'wss://rpc.polkadot.io'
The application panicked (crashed).
Message:  Argument "pallets"
  ArgSettings::UseValueDelimiter is required when ArgSettings::RequireDelimiter is set.

Location: /Users/zqh/.cargo/registry/src/github.jparrowsec.cn-1ecc6299db9ec823/clap-3.0.14/src/build/arg/debug_asserts.rs:71

Backtrace omitted.
Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

@zqhxuyuan
Copy link
Contributor

should be worked on v0.9.18:

     Running `target/debug/acala try-runtime --chain=karura-dev --wasm-execution=compiled offchain-worker live --uri 'wss://karura.api.onfinality.io:443/public-ws' --at=0xbd927a498ef4c30fea7be43d48df511ddf1ec062af90f46da1f96eb11ae226fa -s snapshot.bin`
2022-04-03 19:15:18 Connection established to target: Target { sockaddrs: [], host: "karura.api.onfinality.io", host_header: "karura.api.onfinality.io:443", _mode: Tls, path_and_query: "/public-ws" }
2022-04-03 19:15:18 fetched header from "wss://karura.api.onfinality.io:443/public-ws", block number: 1480056
2022-04-03 19:15:19 Connection established to target: Target { sockaddrs: [], host: "karura.api.onfinality.io", host_header: "karura.api.onfinality.io:443", _mode: Tls, path_and_query: "/public-ws" }
2022-04-03 19:15:19 scraping key-pairs from remote @ 0xbd927a498ef4c30fea7be43d48df511ddf1ec062af90f46da1f96eb11ae226fa
2022-04-03 19:15:19 downloading data for all pallets.
2022-04-03 19:21:09 adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef7f9cce9c888469bb1a0dceaa129672ef8
2022-04-03 19:21:09 adding data for hashed key: 3a636f6465
2022-04-03 19:21:13 👩‍👦 scraping child-tree data from 0 top keys
2022-04-03 19:21:13 injecting a total of 255109 top keys
2022-04-03 19:22:39 injecting a total of 0 child keys
2022-04-03 19:22:40 initialized state externalities with storage root 0x87c04516d0455ca210a58da737fb4f789151ebefb7063d31b6f1b07d5f004f61
2022-04-03 19:22:51 Connection established to target: Target { sockaddrs: [], host: "karura.api.onfinality.io", host_header: "karura.api.onfinality.io:443", _mode: Tls, path_and_query: "/public-ws" }
2022-04-03 19:22:51 found matching spec name: "karura"
2022-04-03 19:22:51 spec version mismatch (local 2023 != remote 2041). This could cause some issues.
2022-04-03 19:22:51 OffchainWorkerApi_offchain_worker executed without errors.

@zqhxuyuan zqhxuyuan mentioned this issue Apr 4, 2022
12 tasks
@xlc xlc closed this as completed in #1988 Apr 6, 2022
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 a pull request may close this issue.

2 participants