From 4ab386388111662d47a679153ca11af711a20f72 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Mon, 10 Sep 2018 09:43:51 +0200 Subject: [PATCH] Handle https://github.com/paritytech/parity-ethereum/pull/9480, updates to parity config (#123) --- clients/parity:master/chain.json | 4 +++- clients/parity:master/parity.sh | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/clients/parity:master/chain.json b/clients/parity:master/chain.json index eb11c5656f..9444471f0b 100644 --- a/clients/parity:master/chain.json +++ b/clients/parity:master/chain.json @@ -4,7 +4,9 @@ "Ethash": { "params": { "minimumDifficulty": "0x020000", - "blockReward": "0x4563918244F40000", + "blockReward": { + "0": "0x4563918244F40000", + }, "difficultyBoundDivisor": "0x0800", "durationLimit": "0x0d", "frontierCompatibilityModeLimit": "0x0", diff --git a/clients/parity:master/parity.sh b/clients/parity:master/parity.sh index 3e59d79f40..b566e95e3f 100644 --- a/clients/parity:master/parity.sh +++ b/clients/parity:master/parity.sh @@ -109,8 +109,9 @@ if [ "$HIVE_FORK_BYZANTIUM" != "" ]; then # chainconfig=`echo $chainconfig | jq "setpath([\"params\", \"eip98Transition\"]; \"0x$HIVE_FORK_BYZANTIUM\")"` # Ethash params - chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"eip649Reward\"]; \"0x29A2241AF62C0000\")"` - chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"eip649Transition\"]; \"0x$HIVE_FORK_BYZANTIUM\")"` + # Set blockreward to 3M for byzantium + chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"blockReward\",\"0x$HIVE_FORK_BYZANTIUM\"]; \"0x29A2241AF62C0000\")"` + # difficulty calculation -- aka bomb delay chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"eip100bTransition\"]; \"0x$HIVE_FORK_BYZANTIUM\")"` # General params @@ -136,6 +137,9 @@ if [ "$HIVE_FORK_CONSTANTINOPLE" != "" ]; then chainconfig=`echo $chainconfig | jq "setpath([\"params\", \"eip1283Transition\"]; \"0x$HIVE_FORK_CONSTANTINOPLE\")"` # Skinny create 2 (overloaded on eip86 for some reason) chainconfig=`echo $chainconfig | jq "setpath([\"params\", \"eip86Transition\"]; \"0x$HIVE_FORK_CONSTANTINOPLE\")"` + # Ethash params + # Set blockreward to 2M for constantinople + chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"blockReward\",\"0x$HIVE_FORK_CONSTANTINOPLE\"]; \"0x1BC16D674EC80000\")"` fi echo $chainconfig > /chain.json