Skip to content

Commit

Permalink
[bsc] fix cache value
Browse files Browse the repository at this point in the history
  • Loading branch information
voron committed Dec 10, 2023
1 parent 539f52c commit 340eed9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dysnix/bsc/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 2 additions & 2 deletions dysnix/bsc/templates/scripts/_prune.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dysnix/bsc/templates/scripts/_prune_block.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 340eed9

Please sign in to comment.