From ffeff500c1f14fba04d269bce00f52bc7204d7a2 Mon Sep 17 00:00:00 2001 From: lxgr-linux Date: Sun, 20 Aug 2023 22:06:08 +0200 Subject: [PATCH 1/2] changed p2p port --- Dockerfile | 4 ++-- config.yml | 2 +- docker-run.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 445e5596..f926aa6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM ignitehq/cli:v0.27.1 +FROM ignitehq/cli:v0.26.1 USER root @@ -44,4 +44,4 @@ RUN wget -O $HOME/.Cardchain/config/addrbook.json "https://raw.githubusercontent RUN chmod +x ./docker-run.sh -ENTRYPOINT bash docker-run.sh \ No newline at end of file +ENTRYPOINT bash docker-run.sh diff --git a/config.yml b/config.yml index 69c10d39..bdfdb976 100644 --- a/config.yml +++ b/config.yml @@ -102,7 +102,7 @@ validators: timeout_commit: 5s moniker: yesyoulikeCC p2p: - laddr: 0.0.0.0:26658 + laddr: 0.0.0.0:26656 rpc: laddr: 0.0.0.0:26657 pprof_laddr: :6061 diff --git a/docker-run.sh b/docker-run.sh index aa8bfa0a..2c998cf4 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -13,7 +13,7 @@ then fi SEEDS="" -PEERS="749792ffd93fe56d155ce1baa26ea58b46b2668a@lxgr.xyz:26657"; \ +PEERS="749792ffd93fe56d155ce1baa26ea58b46b2668a@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" @@ -72,4 +72,4 @@ 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 +echo "BACKUP should be in /backup/genesis$now" From 4925c107b34e13940f5eea1164d2ad2eafb0534c Mon Sep 17 00:00:00 2001 From: lxgr-linux Date: Mon, 21 Aug 2023 09:21:18 +0200 Subject: [PATCH 2/2] Statesync now works properly --- docker-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-run.sh b/docker-run.sh index 2c998cf4..84aa0d27 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -13,7 +13,7 @@ then fi SEEDS="" -PEERS="749792ffd93fe56d155ce1baa26ea58b46b2668a@lxgr.xyz:26656"; \ +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 +38,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"