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 runtime upgrade to version-175 #1057

Closed
mclyk opened this issue Dec 16, 2021 · 4 comments
Closed

Test runtime upgrade to version-175 #1057

mclyk opened this issue Dec 16, 2021 · 4 comments
Assignees

Comments

@mclyk
Copy link
Contributor

mclyk commented Dec 16, 2021

Refer to #887

Here is the config file config.yml that we used to initial our network:
the current node-version on relaychain is v0.9.13, link
the current node-version on parachain is v1.7.2-1, link
the current wasm-version on parachain is v1.7.4. link

relaychain:
  image: parity/polkadot:v0.9.13
  chain: rococo-local
  runtimeGenesisConfig:
    configuration:
      config:
        validation_upgrade_frequency: 1
        validation_upgrade_delay: 1
  flags:
    - --rpc-methods=unsafe
    - --no-beefy
  nodes:
    - name: alice
    - name: bob
    - name: charlie

parachains:
  - image: parallelfinance/parallel:v1.7.4
    chain:
      base: heiko-dev
      collators:
        - alice
        - bob
        - charlie
      sudo: dave
    id: 2085
    parachain: true
    flags:
      - --rpc-methods=unsafe
      - --execution=wasm
    relaychainFlags:
      - --no-beefy
    nodes:
      - flags:
          - --alice
      - flags:
          - --bob
      - flags:
          - --charlie

@mclyk mclyk self-assigned this Dec 16, 2021
@mclyk
Copy link
Contributor Author

mclyk commented Dec 16, 2021

Initial network

1.1 Build docker config file

# use above config.yml, not use config.yml in repo
$ parachain-launch generate config.yml
$ docker-compose -f output/docker-compose.yml up -d --build

# shutdown the service
$ docker-compose -f output/docker-compose.yml down
$ docker volume prune -f
$ docker network prune -f

1.2 Parachain success produce blocks
image

2.1 Upgrade parachain node to v0.9.12-1
change from parallelfinance/parallel:v1.7.4 to parallelfinance/parallel:v1.7.2-1, which means changed nodes from v0.9.11 to v0.9.12

$ nano output/parachain-2085.Dockerfile
>>> FROM parallelfinance/parallel:v1.7.2-1

2.2 update parachain arguments

# repalce all `/app/heiko-dev-2085.json` with `heiko-dev`
$ nano output/docker-compose.yml

2.3 upgrade collator node version
(one by one)

$ docker-compose -f output/docker-compose.yml up -d --build parachain-2085-0
$ docker-compose -f output/docker-compose.yml up -d --build parachain-2085-1
$ docker-compose -f output/docker-compose.yml up -d --build parachain-2085-2

2.4 success update node to v1.7.2-1
image

@mclyk
Copy link
Contributor Author

mclyk commented Dec 16, 2021

Runtime upgrade

1.1 download wasm-v1.7.5-rc0
link

1.2 parachainSystem.authorizedUpgrade

image

1.3 parachainSystem.enactAuthorizedUpgrade

image

1.4 success

image

@GopherJ
Copy link
Contributor

GopherJ commented Dec 16, 2021

Tested also works correctly for me

@mclyk mclyk closed this as completed Dec 17, 2021
@mclyk
Copy link
Contributor Author

mclyk commented Dec 28, 2021

$ docker run --rm parallelfinance/parallel:latest build-spec --raw --chain=heiko-dev --disable-default-bootnode >> ./output/heiko-dev-2085.json
$ docker run --rm parity/polkadot:v0.9.13 build-spec  --raw --chain=rococo-local --disable-default-bootnode >> ./output/rococo-local.json

$ docker run -v $(pwd)/"output":/app --rm parallelfinance/parallel:latest export-genesis-state --chain=/app/heiko-dev-2085.json > ./output/heiko-dev-2085-genesis
$ docker run -v $(pwd)/"output":/app --rm parallelfinance/parallel:latest export-genesis-wasm --chain=/app/heiko-dev-2085.json > ./output/heiko-dev-2085.wasm



$ docker run -v $(pwd)/"output":/app --rm parallelfinance/parallel:latest export-genesis-wasm --chain=/app/heiko-dev-2085.json
$ docker run -v $(pwd)/"output":/app --rm parallelfinance/parallel:latest export-genesis-state --chain=/app/heiko-dev-2085.json
$ docker run --rm -v "/tmp/rococo-local.json":/rococo-local.json parity/polkadot:v0.9.13 build-spec --raw --chain=/rococo-local.json --disable-default-bootnode > output/rococo-local.json

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

No branches or pull requests

2 participants