Closed drandreaskrueger closed 6 years ago
Thx!
Great tool.
My workaround for now:
sed -i 's/0x1312D00/0x2625A00/g' config/spec/genesis/aura
though not elegant nor universal
They're intended to be either 1) templated or 2) using a command line option that already exists in the parity cli since they can be added to the end of the command.
Have a look at this: https://gitlab.com/electronDLT/chainhammer/blob/master/parity.md#run-13
To change the blocktime on the fly, I am using jq
to directly manipulate the spec.json AFTER having called ./parity-deploy.sh ...
(AFTER because BEFORE ... the template which contains stepDuration (config/spec/engine/aura
) ... is not JSON compliant - so jq
does not work).
sudo apt install jq
jq ".engine.authorityRound.params.stepDuration = 5" deployment/chain/spec.json > tmp; mv tmp deployment/chain/spec.json
As there is no commandline switch (or is there?) that case could only fall under "1) templated" - right?
You can also use the custom_chain.toml which is a chain spec and node config within one file. There's example in the customchain directory.
For any additional arguments just add it to the end of the ./parity-deploy.sh
command and it will be used on all containers.
--config custom_chain.toml
ah, nice one. I had overlooked that until now. Might try. But my tweaking of deployment/chain/spec.json
after running parity-deploy.sh ... does the trick actually. I only just want to change small pieces, like "gasLimit": "20000000"
I cannot get past this:
and I suppose that is because the file looks like this:
and not like this
Could you perhaps in a future version make the separate config pieces JSON compliant? Then parameters are easier to change:
And/or:
(How) can I change the genesis parameter on the commandline
perhaps like this?