diff --git a/Dockerfile b/Dockerfile index 445e5596..e027b485 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM ignitehq/cli:v0.27.1 +FROM ignitehq/cli:v0.26.1 USER root diff --git a/docker-run.sh b/docker-run.sh index aa8bfa0a..d459a8d1 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -12,8 +12,9 @@ then exit 1 fi +#we can derive the peer id from the address and should do so! SEEDS="" -PEERS="749792ffd93fe56d155ce1baa26ea58b46b2668a@lxgr.xyz:26657"; \ +PEERS="b62779bb72e9b3c0544c296e39c3a2a3973d5ac8@lxgr.xyz:26656"; \ sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.Cardchain/config/config.toml SNAP_RPCs=("http://crowd.rpc.t.stavr.tech:21207" @@ -38,7 +39,7 @@ SNAP_RPCs=("http://crowd.rpc.t.stavr.tech:21207" SNAP_RPC="http://lxgr.xyz:26657" LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height) echo $LATEST_HEIGHT -BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \ +BLOCK_HEIGHT=$((LATEST_HEIGHT)); \ TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) echo -e "\033[0;36mlatest height: $LATEST_HEIGHT \nblock height: $BLOCK_HEIGHT \ntrust hash: $TRUST_HASH \033[0m" @@ -70,6 +71,6 @@ echo -e "\033[0;32mstarting Blockchain\033[0m" Cardchaind start # backup area (this will be executed if the Cardchaind process is killed) -now=$(date +"%d.%m.%Y") -Cardchaind export > /backup/genesis$now.json -echo "BACKUP should be in /backup/genesis$now" \ No newline at end of file +#now=$(date +"%d.%m.%Y") +#Cardchaind export > /backup/genesis$now.json +#echo "BACKUP should be in /backup/genesis$now" \ No newline at end of file