Skip to content

Commit

Permalink
Parity and chain spec update for Petersburg network upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
d10r committed Mar 18, 2019
1 parent 4c8f05c commit af0cc32
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
28 changes: 22 additions & 6 deletions download-parity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
set -e
set -u

BIN_LINUX="https://releases.parity.io/ethereum/v2.1.6/x86_64-unknown-linux-gnu/parity"
SHA256_LINUX="542f18da9e4291d98938d3c59cd87c1798bf9b4b7e535cf3321c848934fbdbdb"
VERSION="2.2.10"

BIN_DARWIN="https://releases.parity.io/ethereum/v2.1.6/x86_64-apple-darwin/parity"
SHA256_DARWIN="d3f6ed4261f283a1c774b5595cf492377c659c3a749ec0abb3d370acc9da0cd1"
BIN_LINUX="https://releases.parity.io/ethereum/v2.2.10/x86_64-unknown-linux-gnu/parity"
SHA256_LINUX="a8b3e844de560dbded8e2cdf33601ff1bda96747efd5c4bd3646763f0e125a62"

BIN_DARWIN="https://releases.parity.io/ethereum/v2.2.10/x86_64-apple-darwin/parity"
SHA256_DARWIN="6267f80dcf6709e40074b8bf369999be0615bbc075c281cbe483cfe0095801e7"

# param_1: message to be printed before exiting
function giving_up {
Expand All @@ -29,10 +31,24 @@ function check_integrity {
fi
}

force=false
if [[ $# -eq 1 ]]; then
if [[ $1 == "--force" ]]; then
echo "force"
force=true
else
giving_up "usage: $0 [--force]"
fi
elif [[ $# != 0 ]]; then
giving_up "usage: $0 [--force]"
fi
if [ -f parity ]; then
giving_up "A file named parity already exists in this folder. If you want to replace it, please delete it and then run this script again"
if ! $force; then
giving_up "A file named parity already exists in this folder. Run with argument '--force' in order to override."
fi
fi


if [[ "$OSTYPE" == "linux-gnu" ]]; then
echo "This looks like a Linux machine..."
curl -f $BIN_LINUX > parity
Expand All @@ -50,4 +66,4 @@ else
fi

echo
echo "Parity was successfully downloaded and verified!"
echo "Parity v$VERSION was successfully downloaded and verified!"
1 change: 1 addition & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"eip1014Transition": "0x0",
"eip1052Transition": "0x0",
"eip1283Transition": "0x0",
"eip1283DisableTransition": "2229330",
"wasmActivationTransition": "0x0"
},
"genesis": {
Expand Down

0 comments on commit af0cc32

Please sign in to comment.