From c476b1da5af34dff6e0f45523e702c9d3da33b67 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Wed, 13 Jan 2021 03:33:56 -0500 Subject: [PATCH] Fix single-node.sh setup script (#537) --- contrib/Dockerfile.test | 2 +- contrib/single-node.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/Dockerfile.test b/contrib/Dockerfile.test index be17897b25a..6b989aaefb4 100644 --- a/contrib/Dockerfile.test +++ b/contrib/Dockerfile.test @@ -2,7 +2,7 @@ # > docker build -t gaia . # > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.gaiad:/root/.gaiad -v ~/.gaiacli:/root/.gaiacli gaia gaiad init # > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.gaiad:/root/.gaiad -v ~/.gaiacli:/root/.gaiacli gaia gaiad start -FROM golang:alpine AS build-env +FROM golang:1.15-alpine AS build-env # Set up dependencies ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python diff --git a/contrib/single-node.sh b/contrib/single-node.sh index 9656283aef1..9570b1a15fb 100755 --- a/contrib/single-node.sh +++ b/contrib/single-node.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -o errexit -o nounset + CHAINID=$1 GENACCT=$2 @@ -19,7 +21,7 @@ gaiad init --chain-id $CHAINID $CHAINID gaiad keys add validator --keyring-backend="test" gaiad add-genesis-account $(gaiad keys show validator -a --keyring-backend="test") $coins gaiad add-genesis-account $GENACCT $coins -gaiad gentx validator --keyring-backend="test" --chain-id $CHAINID +gaiad gentx validator 5000000000stake --keyring-backend="test" --chain-id $CHAINID gaiad collect-gentxs # Set proper defaults and change ports