From 42f6d9716a581054290aeba6145880f5c190344b Mon Sep 17 00:00:00 2001 From: Vladyslav Deryhin Date: Mon, 12 Aug 2024 16:54:42 +0300 Subject: [PATCH] [bsc] add option to disable diffblock --- dysnix/bsc/Chart.yaml | 2 +- dysnix/bsc/templates/statefulset.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dysnix/bsc/Chart.yaml b/dysnix/bsc/Chart.yaml index c1ce7b3a..60453b3f 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.46 +version: 0.6.47 appVersion: 1.4.11 keywords: diff --git a/dysnix/bsc/templates/statefulset.yaml b/dysnix/bsc/templates/statefulset.yaml index 4e61067e..c3b58c67 100644 --- a/dysnix/bsc/templates/statefulset.yaml +++ b/dysnix/bsc/templates/statefulset.yaml @@ -96,7 +96,9 @@ spec: - --cache={{ .Values.bsc.cache.value }} - --snapshot={{ .Values.bsc.snapshot }} - --persistdiff={{ .Values.bsc.persistdiff }} - - --diffblock={{ .Values.bsc.diffblock }} + {{- if kindIs "float64" .Values.bsc.diffblock }} + - --diffblock={{ int .Values.bsc.diffblock }} + {{- end }} - --port={{ .Values.service.p2pPort0 }} {{- if .Values.bsc.allowUnprotectedTxs }} - --rpc.allow-unprotected-txs