From c836bdff1f1c111b8ba90734f2a21499bdc33923 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Fri, 7 Apr 2023 23:02:36 +0200 Subject: [PATCH] =?UTF-8?q?bsc=201.1.20=20=E2=86=92=201.1.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/templates/backend/scripts/bsc.sh | 4 ++-- build/templates/backend/scripts/bsc_archive.sh | 4 ++-- configs/coins/bsc.json | 12 ++++++------ configs/coins/bsc_archive.json | 12 ++++++------ 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/build/templates/backend/scripts/bsc.sh b/build/templates/backend/scripts/bsc.sh index 4518c55b..fdcfbf80 100644 --- a/build/templates/backend/scripts/bsc.sh +++ b/build/templates/backend/scripts/bsc.sh @@ -8,9 +8,9 @@ INSTALL_DIR={{.Env.BackendInstallPath}}/{{.Coin.Alias}} DATA_DIR={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend GETH_BIN=$INSTALL_DIR/geth_linux -LIGHTCHAINDATA_DIR=$DATA_DIR/geth/lightchaindata +CHAINDATA_DIR=$DATA_DIR/geth/chaindata -if [ ! -d "$LIGHTCHAINDATA_DIR" ]; then +if [ ! -d "$CHAINDATA_DIR" ]; then $GETH_BIN init --datadir $DATA_DIR $INSTALL_DIR/genesis.json fi diff --git a/build/templates/backend/scripts/bsc_archive.sh b/build/templates/backend/scripts/bsc_archive.sh index aa86e253..17990d9e 100644 --- a/build/templates/backend/scripts/bsc_archive.sh +++ b/build/templates/backend/scripts/bsc_archive.sh @@ -8,9 +8,9 @@ INSTALL_DIR={{.Env.BackendInstallPath}}/{{.Coin.Alias}} DATA_DIR={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend GETH_BIN=$INSTALL_DIR/geth_linux -LIGHTCHAINDATA_DIR=$DATA_DIR/geth/lightchaindata +CHAINDATA_DIR=$DATA_DIR/geth/chaindata -if [ ! -d "$LIGHTCHAINDATA_DIR" ]; then +if [ ! -d "$CHAINDATA_DIR" ]; then $GETH_BIN init --datadir $DATA_DIR $INSTALL_DIR/genesis.json fi diff --git a/configs/coins/bsc.json b/configs/coins/bsc.json index 8d1e3220..2f31bd30 100644 --- a/configs/coins/bsc.json +++ b/configs/coins/bsc.json @@ -20,16 +20,16 @@ "package_name": "backend-bsc", "package_revision": "satoshilabs-1", "system_user": "bsc", - "version": "1.1.20", - "binary_url": "https://github.com/bnb-chain/bsc/releases/download/v1.1.20/geth_linux", + "version": "1.1.21", + "binary_url": "https://github.com/bnb-chain/bsc/releases/download/v1.1.21/geth_linux", "verification_type": "sha256", - "verification_source": "8e5ed3e1351d1317f2f7b2039897ab875c3ddad6351676a1debaeacba32d5a8e", + "verification_source": "4ebfe29a3f08bfd7ccd10bffa98e96f50274d57514e4dc793b5f4ac03e3e045f", "extract_command": "mv ${ARCHIVE} backend/geth_linux && chmod +x backend/geth_linux && echo", "exclude_files": [], "exec_command_template": "/bin/sh -c '{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bsc_exec.sh 2>> {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log'", "exec_script": "bsc.sh", "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log", - "postinst_script_template": "wget https://github.com/bnb-chain/bsc/releases/download/v1.1.20/mainnet.zip -O {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && unzip -o -d {{.Env.BackendInstallPath}}/{{.Coin.Alias}} {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && rm -f {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && sed -i -e '/\\[Node.LogConfig\\]/,+5d' {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/config.toml", + "postinst_script_template": "wget https://github.com/bnb-chain/bsc/releases/download/v1.1.21/mainnet.zip -O {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && unzip -o -d {{.Env.BackendInstallPath}}/{{.Coin.Alias}} {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && rm -f {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && sed -i -e '/\\[Node.LogConfig\\]/,+5d' {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/config.toml", "service_type": "simple", "service_additional_params_template": "", "protect_memory": true, @@ -38,8 +38,8 @@ "client_config_file": "", "platforms": { "arm64": { - "binary_url": "https://github.com/bnb-chain/bsc/releases/download/v1.1.20/geth-linux-arm64", - "verification_source": "d7fd71b2005b7c025bc5ec12ac681ebbdcb5d5d71c2264f277734318905d1468" + "binary_url": "https://github.com/bnb-chain/bsc/releases/download/v1.1.21/geth-linux-arm64", + "verification_source": "ab736d6238c26189dbd1c81447540a155e8190a8a6eb6a0862dca574987cabf3" } } }, diff --git a/configs/coins/bsc_archive.json b/configs/coins/bsc_archive.json index 43261167..5b0212f0 100644 --- a/configs/coins/bsc_archive.json +++ b/configs/coins/bsc_archive.json @@ -20,16 +20,16 @@ "package_name": "backend-bsc-archive", "package_revision": "satoshilabs-1", "system_user": "bsc", - "version": "1.1.20", - "binary_url": "https://github.com/bnb-chain/bsc/releases/download/v1.1.20/geth_linux", + "version": "1.1.21", + "binary_url": "https://github.com/bnb-chain/bsc/releases/download/v1.1.21/geth_linux", "verification_type": "sha256", - "verification_source": "8e5ed3e1351d1317f2f7b2039897ab875c3ddad6351676a1debaeacba32d5a8e", + "verification_source": "4ebfe29a3f08bfd7ccd10bffa98e96f50274d57514e4dc793b5f4ac03e3e045f", "extract_command": "mv ${ARCHIVE} backend/geth_linux && chmod +x backend/geth_linux && echo", "exclude_files": [], "exec_command_template": "/bin/sh -c '{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bsc_archive_exec.sh 2>> {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log'", "exec_script": "bsc_archive.sh", "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log", - "postinst_script_template": "wget https://github.com/bnb-chain/bsc/releases/download/v1.1.20/mainnet.zip -O {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && unzip -o -d {{.Env.BackendInstallPath}}/{{.Coin.Alias}} {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && rm -f {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && sed -i -e '/\\[Node.LogConfig\\]/,+5d' {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/config.toml", + "postinst_script_template": "wget https://github.com/bnb-chain/bsc/releases/download/v1.1.21/mainnet.zip -O {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && unzip -o -d {{.Env.BackendInstallPath}}/{{.Coin.Alias}} {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && rm -f {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/mainnet.zip && sed -i -e '/\\[Node.LogConfig\\]/,+5d' {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/config.toml", "service_type": "simple", "service_additional_params_template": "", "protect_memory": true, @@ -38,8 +38,8 @@ "client_config_file": "", "platforms": { "arm64": { - "binary_url": "https://github.com/bnb-chain/bsc/releases/download/v1.1.20/geth-linux-arm64", - "verification_source": "d7fd71b2005b7c025bc5ec12ac681ebbdcb5d5d71c2264f277734318905d1468" + "binary_url": "https://github.com/bnb-chain/bsc/releases/download/v1.1.21/geth-linux-arm64", + "verification_source": "ab736d6238c26189dbd1c81447540a155e8190a8a6eb6a0862dca574987cabf3" } } },