Skip to content

Commit

Permalink
Handle openethereum/parity-ethereum#9480, updates to parity config
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Sep 10, 2018
1 parent db66f61 commit dce0089
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion clients/parity:master/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"Ethash": {
"params": {
"minimumDifficulty": "0x020000",
"blockReward": "0x4563918244F40000",
"blockReward": {
"0": "0x4563918244F40000",
},
"difficultyBoundDivisor": "0x0800",
"durationLimit": "0x0d",
"frontierCompatibilityModeLimit": "0x0",
Expand Down
8 changes: 6 additions & 2 deletions clients/parity:master/parity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit dce0089

Please sign in to comment.