Improves usability of fetch-params.sh

Remove the lockfile at the end (fixes #1731)
Makes it clearer what happens in the script output if params already exist.
This commit is contained in:
Kevin Gallagher 2016-11-02 11:06:55 -07:00
parent 77dcb00d0e
commit 4bc627b6a3
1 changed files with 5 additions and 3 deletions

View File

@ -67,6 +67,10 @@ function main() {
cat <<EOF
Zcash - fetch-params.sh
This script will fetch the Zcash zkSNARK parameters and verify their
integrity with sha256sum.
If they already exist locally, it will exit now and do nothing else.
EOF
# Now create PARAMS_DIR and insert a README if necessary:
@ -84,9 +88,6 @@ EOF
# This may be the first time the user's run this script, so give
# them some info, especially about bandwidth usage:
cat <<EOF
This script will fetch the Zcash zkSNARK parameters and verify their
integrity with sha256sum.
The parameters are currently just under 911MB in size, so plan accordingly
for your bandwidth constraints. If the files are already present and
have the correct sha256sum, no networking is used.
@ -104,4 +105,5 @@ EOF
}
main
rm -f /tmp/fetch_params.lock
exit 0