kilt-node icon indicating copy to clipboard operation
kilt-node copied to clipboard

chore: update RILT chain spec and boot nodes

Open Ad96el opened this issue 1 year ago • 1 comments

fixes KILTProtocol/ticket#3400

RILT is booted from scratch, resulting in a different genesis state/wasm. To add more nodes later on, we need to update the chain's specifications.

The chain spec is generated by calling:

docker run kiltprotocol/kilt-node:1.13.0 build-spec --chain=rilt-new --raw > nodes/parachain/res/rilt.json

The deprecated bootnodes are also updated.

Ad96el avatar May 15 '24 09:05 Ad96el

@Ad96el can you pick this up now and update accordingly? I think it's also a nice exercise to get familiar with the new structure.

ntn-x2 avatar May 29 '24 12:05 ntn-x2

In order to get the chain spec, I did:

  • calculate wasm by docker run kiltprotocol/kilt-node:1.13.0 export-genesis-wasm --chain=dev > ril_new_wasm.hex
  • calculate plain chain spec by ./target/debug/kilt-parachain build-spec --chain=rilt-new > plain.json
    • replaced the wasm blob from the plain.json with the wasm blob from the docker image
    • changed genesis state by:
Genesis state
 "balances": {
        "balances": [
          [
            "5EUAKn69gCkR97BMK1HssmS2YMDo884VUTNVXyRdkTibPg1n",
            10000000000000000000000
          ],
          [
            "5Ek75jyeVzfxpR5uWnGnEo1AnqKqhU68HrmyoHgPzEU4X9C7",
            10000000000000000000000
          ]
        ]
      },
      "sudo": {
        "key": "5EUAKn69gCkR97BMK1HssmS2YMDo884VUTNVXyRdkTibPg1n"
      },
      "aura": {
        "authorities": []
      },
      "session": {
        "keys": [
          [
            "5EUAKn69gCkR97BMK1HssmS2YMDo884VUTNVXyRdkTibPg1n",
            "5EUAKn69gCkR97BMK1HssmS2YMDo884VUTNVXyRdkTibPg1n",
            {
              "aura": "5EPTCZ2zNNf3YGEFH59aEiEYKLvp1L9Xagx6fKnm97nuk5Aj"
            }
          ],
          [
            "5Ek75jyeVzfxpR5uWnGnEo1AnqKqhU68HrmyoHgPzEU4X9C7",
            "5Ek75jyeVzfxpR5uWnGnEo1AnqKqhU68HrmyoHgPzEU4X9C7",
            {
              "aura": "5EtbfuPqngDXf8mkxFS4HWw7mtnz1uZyn2GtGseVjtb1rrdQ"
            }
          ]
        ]
      },
      "parachainStaking": {
        "stakers": [
          [
            "5EUAKn69gCkR97BMK1HssmS2YMDo884VUTNVXyRdkTibPg1n",
            null,
            200000000000000000000
          ],
          [
            "5Ek75jyeVzfxpR5uWnGnEo1AnqKqhU68HrmyoHgPzEU4X9C7",
            null,
            200000000000000000000
          ]
        ],
        "inflationConfig": {
          "collator": {
            "max_rate": 400000000000000000,
            "reward_rate": {
              "annual": 100000000000000000,
              "per_block": 38025705376
            }
          },
          "delegator": {
            "max_rate": 100000000000000000,
            "reward_rate": {
              "annual": 80000000000000000,
              "per_block": 30420564301
            }
          }
        },
        "maxCandidateStake": 200000000000000000000
      },
      "auraExt": {},
      "democracy": {},
      "council": {
        "members": []
      },
      "technicalCommittee": {
        "members": []
      },
      "technicalMembership": {
        "members": []
      },
      "treasury": {},
      "vesting": {
        "vesting": []
      },
      "tipsMembership": {
        "members": []
      },
      "didLookup": {
        "links": []
      },
      "parachainSystem": {},
      "parachainInfo": {
        "parachainId": 8310
      },
      "polkadotXcm": {
        "safeXcmVersion": 3
      }
  • The raw chain spec is calculated by ./target/debug/kilt-parachain build-spec --chain ./plain.json --raw > peregrine-rilt.json

Ad96el avatar Jul 15 '24 11:07 Ad96el

Integration tests will be fixed in a separate PR.

ntn-x2 avatar Jul 17 '24 14:07 ntn-x2