Skip to content

Commit

Permalink
updates to docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Aug 21, 2023
1 parent 94385b2 commit b64ff74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

FROM ignitehq/cli:v0.27.1
FROM ignitehq/cli:v0.26.1


USER root
Expand Down
11 changes: 6 additions & 5 deletions docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

Expand Down Expand Up @@ -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"
#now=$(date +"%d.%m.%Y")
#Cardchaind export > /backup/genesis$now.json
#echo "BACKUP should be in /backup/genesis$now"

0 comments on commit b64ff74

Please sign in to comment.