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

How to get rid of the validator set? #43

Open
laurogripa opened this issue Oct 4, 2021 · 2 comments
Open

How to get rid of the validator set? #43

laurogripa opened this issue Oct 4, 2021 · 2 comments

Comments

@laurogripa
Copy link

laurogripa commented Oct 4, 2021

Hello!

I'm a member of the Kusama Society and we are developing a dedicated interface as a development plan for the society. We want to create some integration tests and for that we want to run a development node reflecting the state of Society members at some point in time.

I'm trying to run a development chain forked off from Kusama. So far I synched an archived node and created the fork against said node. Apparently all went well, but I'm unable to produce blocks and execute extrinsics. I suppose it's because the chain is waiting for the current Kusama validator set. How do I change the validator set and get control over the chain?

I tried editing fork.json but I don't understand its structure.

@maxsam4
Copy link
Owner

maxsam4 commented Oct 5, 2021

The script automatically replaces the validators with Alice (unless some recent changes to substrate broke this).

Make sure you running the binary with --alice for it to generate blocks?

@laurogripa
Copy link
Author

laurogripa commented Oct 6, 2021

@maxsam4 Yes! I'm running as ./binary --chain fork.json --alice

I did the following steps:

  1. Fully synched an archive node of Kusama: polkadot --chain=kusama --pruning=archive (took several hours to complete)
  2. Downloaded the Polkadot binary and the Kusama runtime compact wasm blob from https://github.com/paritytech/polkadot/releases/tag/v0.9.10 (as I understand both chains share the same binary)
  3. Renamed polkadot binary to kusama and moved both the binary and wasm blob to the data folder of this script
  4. Ran npm start (took around ten minutes)
  5. Ran ./binary --chain fork.json --alice

The chain is running properly, but not producing blocks nor is reflecting the correct state of the Kusama Society (it's actually empty)

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