From 340eed98ec57853a07791c899c48717004923be0 Mon Sep 17 00:00:00 2001 From: Alex Vorona Date: Sun, 10 Dec 2023 23:27:57 +0000 Subject: [PATCH] [bsc] fix cache value --- dysnix/bsc/Chart.yaml | 2 +- dysnix/bsc/templates/scripts/_prune.tpl | 4 ++-- dysnix/bsc/templates/scripts/_prune_block.tpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dysnix/bsc/Chart.yaml b/dysnix/bsc/Chart.yaml index 0872deaa..45e922b2 100644 --- a/dysnix/bsc/Chart.yaml +++ b/dysnix/bsc/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: bsc description: Binance Smart Chain chart for Kubernetes -version: 0.6.34 +version: 0.6.35 appVersion: 1.2.15 keywords: diff --git a/dysnix/bsc/templates/scripts/_prune.tpl b/dysnix/bsc/templates/scripts/_prune.tpl index a6aab217..a8cfed57 100644 --- a/dysnix/bsc/templates/scripts/_prune.tpl +++ b/dysnix/bsc/templates/scripts/_prune.tpl @@ -17,9 +17,9 @@ ret=0 if [ "${BSC_PRUNE}" == "True" ] ; then # background logging tail -F "${DATA_DIR}/bsc.log" & - $GETH --config=/config/config.toml --datadir=${DATA_DIR} --cache {{ .Values.bsc.cache }} snapshot prune-state + $GETH --config=/config/config.toml --datadir=${DATA_DIR} --cache {{ .Values.bsc.cache.value }} snapshot prune-state # prune-block will turn our full node into light one actually - # $GETH --config=/config/config.toml --datadir=${DATA_DIR} --datadir.ancient=${DATA_DIR}/geth/chaindata/ancient --cache {{ .Values.bsc.cache }} snapshot prune-block + # $GETH --config=/config/config.toml --datadir=${DATA_DIR} --datadir.ancient=${DATA_DIR}/geth/chaindata/ancient --cache {{ .Values.bsc.cache.value }} snapshot prune-block ret=$? if [ "${ret}" -eq "0" ];then # update timestamp diff --git a/dysnix/bsc/templates/scripts/_prune_block.tpl b/dysnix/bsc/templates/scripts/_prune_block.tpl index 5282858c..508f9bcb 100644 --- a/dysnix/bsc/templates/scripts/_prune_block.tpl +++ b/dysnix/bsc/templates/scripts/_prune_block.tpl @@ -18,7 +18,7 @@ ret=0 # background logging tail -F "${DATA_DIR}/bsc.log" & # prune-block will turn our full node into light one actually - $GETH --config=/config/config.toml --datadir=${DATA_DIR} --datadir.ancient=${DATA_DIR}/geth/chaindata/ancient --cache {{ .Values.bsc.cache }} snapshot prune-block --block-amount-reserved=${BLOCKS_RESERVED} + $GETH --config=/config/config.toml --datadir=${DATA_DIR} --datadir.ancient=${DATA_DIR}/geth/chaindata/ancient --cache {{ .Values.bsc.cache.value }} snapshot prune-block --block-amount-reserved=${BLOCKS_RESERVED} ret=$? if [ "${ret}" -eq "0" ];then # update timestamp