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

Test: weight time #2

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Test: weight time #2

wants to merge 4 commits into from

Conversation

mclyk
Copy link
Owner

@mclyk mclyk commented Nov 7, 2022

Test propose block time and function execute time

mclyk added 3 commits October 26, 2022 14:34
* update max block weight

* update text
* add more check

* improve check

* add test

* fix ci
@mclyk
Copy link
Owner Author

mclyk commented Nov 7, 2022

1. compile

首先基于该commit的编译镜像替换下载镜像的二进制文件

2. config.json

使用二进制文件启动节点

ts-node scripts/polkadot-launch/src/cli.ts config.json

config.json

{
  "relaychain": {
    "bin": "./polkadot",
    "chain": "polkadot-local",
    "nodes": [
      {
        "name": "alice",
        "wsPort": 9944,
        "rpcPort": 9933,
        "port": 30333,
        "flags": [
          "-l",
          "xcm=trace",
          "--state-cache-size",
          "0"
        ]
      },
      {
        "name": "bob",
        "wsPort": 9945,
        "rpcPort": 9934,
        "port": 30334,
        "flags": [
          "-l",
          "xcm=trace",
          "--state-cache-size",
          "0"
        ]
      },
      {
        "name": "charlie",
        "wsPort": 9946,
        "rpcPort": 9935,
        "port": 30335,
        "flags": [
          "-l",
          "xcm=trace",
          "--state-cache-size",
          "0"
        ]
      },
      {
        "name": "dave",
        "wsPort": 9947,
        "rpcPort": 9936,
        "port": 30336,
        "flags": [
          "-l",
          "xcm=trace",
          "--state-cache-size",
          "0"
        ]
      }
    ],
    "genesis": {
      "runtime": {
        "runtime_genesis_config": {
          "configuration": {
            "config": {
              "validation_upgrade_frequency": 10,
              "validation_upgrade_delay": 10
            }
          }
        }
      }
    }
  },
  "parachains": [
    {
      "bin": "./target/release/parallel",
      "chain": "parallel-dev",
      "nodes": [
        {
          "wsPort": 9948,
          "port": 30337,
          "rpcPort": 9937,
          "name": "alice",
          "flags": [
            "-l",
            "evm=trace,xcm=trace,loans=trace,sc_basic_authorship=trace,aura=trace",
            "--state-cache-size",
            "0",
            "--execution=native",
            "--",
            "--execution=wasm",
            "--state-cache-size",
            "0"
          ]
        }
      ],
      "id": 2012
    }
  ],
  "simpleParachains": [],
  "hrmpChannels": [],
  "types": {},
  "finalization": false
}

3

如果出块时间过长,可能造成relaychain的validator view改变,哪怕parachain propose time充足,relaychain端也无法为parachain出块
image
image

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 this pull request may close these issues.

1 participant