diff --git a/packages/helm-charts/common/templates/_helpers.tpl b/packages/helm-charts/common/templates/_helpers.tpl index 916eca6a37e..739222a848b 100644 --- a/packages/helm-charts/common/templates/_helpers.tpl +++ b/packages/helm-charts/common/templates/_helpers.tpl @@ -494,7 +494,7 @@ prometheus.io/port: "{{ $pprof.port | default 6060 }}" - "-c" - | if [ -d /root/.celo/celo/chaindata ]; then - lastBlockTimestamp=$(timeout 600 geth console --maxpeers 0 --light.maxpeers 0 --syncmode full --txpool.nolocals --exec "eth.getBlock(\"latest\").timestamp") + lastBlockTimestamp=$(timeout 120 geth console --maxpeers 0 --light.maxpeers 0 --syncmode full --txpool.nolocals --exec "eth.getBlock(\"latest\").timestamp") day=$(date +%s) diff=$(($day - $lastBlockTimestamp)) # If lastBlockTimestamp is older than 1 day old, pull the chaindata rather than using the current PVC.