Merge pull request #3866 from garethtdavies/ipfs-fetch-params

Adding hash for complete IPFS params
This commit is contained in:
str4d 2019-09-17 06:55:25 -04:00 committed by GitHub
commit a85887ee1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -13,8 +13,8 @@ SPROUT_VKEY_NAME='sprout-verifying.key'
SAPLING_SPEND_NAME='sapling-spend.params'
SAPLING_OUTPUT_NAME='sapling-output.params'
SAPLING_SPROUT_GROTH16_NAME='sprout-groth16.params'
SPROUT_URL="https://download.z.cash/downloads"
SPROUT_IPFS="/ipfs/QmZKKx7Xup7LiAtFRhYsE1M7waXcv9ir9eCECyXAFGxhEo"
DOWNLOAD_URL="https://download.z.cash/downloads"
IPFS_HASH="/ipfs/QmXRHVGLQBiKwvNq7c2vPxAKz1zRVmMYbmt7G5TQss7tY7"
SHA256CMD="$(command -v sha256sum || echo shasum)"
SHA256ARGS="$(command -v sha256sum >/dev/null || echo '-a 256')"
@ -38,7 +38,7 @@ function fetch_wget {
cat <<EOF
Retrieving (wget): $SPROUT_URL/$filename
Retrieving (wget): $DOWNLOAD_URL/$filename
EOF
wget \
@ -46,7 +46,7 @@ EOF
--output-document="$dlname" \
--continue \
--retry-connrefused --waitretry=3 --timeout=30 \
"$SPROUT_URL/$filename"
"$DOWNLOAD_URL/$filename"
}
function fetch_ipfs {
@ -59,10 +59,10 @@ function fetch_ipfs {
cat <<EOF
Retrieving (ipfs): $SPROUT_IPFS/$filename
Retrieving (ipfs): $IPFS_HASH/$filename
EOF
ipfs get --output "$dlname" "$SPROUT_IPFS/$filename"
ipfs get --output "$dlname" "$IPFS_HASH/$filename"
}
function fetch_curl {
@ -75,13 +75,13 @@ function fetch_curl {
cat <<EOF
Retrieving (curl): $SPROUT_URL/$filename
Retrieving (curl): $DOWNLOAD_URL/$filename
EOF
curl \
--output "$dlname" \
-# -L -C - \
"$SPROUT_URL/$filename"
"$DOWNLOAD_URL/$filename"
}