I want to generate a
customSpec.json where i can manually add the accounts of the
initial_nominators. I've seen the code chain_spec.rs where we in the fn testnet_genesis there is initial nominators. How can we add this in
This is where you should start reading:
You have already found chain_spec.rs where there are a few functions
local_testnet_config cosponsoring to the different chains defined as names like
staging (defined in command.rs).
At line 242 the vector
initial_nominators is defined and at line 384 it is called with an empty argument, fill this vector with something like
vec![authority_keys_from_seed("Bob")] to get some initial nominators.
Then compile and run your node with argument
--chain=staging and save the output generated chainspec.