fix a couple small bugs

This commit is contained in:
whyrusleeping 2019-10-02 15:12:37 -06:00
parent 8903fb4f19
commit 10a5dd15f7
2 changed files with 16 additions and 2 deletions

View File

@ -2,5 +2,19 @@
set -euo pipefail set -euo pipefail
sed "s/{{PARAMSJSON}}/$(base64 build/proof-params/parameters.json -w 0)/g" build/proof-params/paramfetch.sh.template > ./build/paramfetch.sh function b64() {
f="$1"
case `uname` in
Darwin)
base64 -i "$f"
;;
Linux)
base64 "$f" -w 0
;;
esac
printf "unsupported system" 1>&2
exit 1
}
sed "s/{{PARAMSJSON}}/$(b64 build/proof-params/parameters.json)/g" build/proof-params/paramfetch.sh.template > ./build/paramfetch.sh
chmod +x ./build/paramfetch.sh chmod +x ./build/paramfetch.sh

View File

@ -546,7 +546,7 @@ loop:
blockSet = append(blockSet, b) blockSet = append(blockSet, b)
} }
syncer.syncState.SetHeight(blks[len(blockSet)-1].Height()) syncer.syncState.SetHeight(blks[len(blks)-1].Height())
at = blks[len(blks)-1].Parents() at = blks[len(blks)-1].Parents()
} }