diff --git a/charts/evm-rollup/Chart.yaml b/charts/evm-rollup/Chart.yaml index 0d6e736..1d72430 100644 --- a/charts/evm-rollup/Chart.yaml +++ b/charts/evm-rollup/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.19.1 +version: 0.19.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/evm-rollup/templates/statefulsets.yaml b/charts/evm-rollup/templates/statefulsets.yaml index af91ec4..a0ff5ba 100644 --- a/charts/evm-rollup/templates/statefulsets.yaml +++ b/charts/evm-rollup/templates/statefulsets.yaml @@ -17,6 +17,18 @@ spec: app: {{ .Values.config.rollup.name }}-astria-dev-cluster spec: initContainers: + {{- if .Values.config.rollup.purgeMempool }} + - name: purge-mempool + image: {{ include "rollup.image" . }} + command: [ "sh", "-c", "rm -f $data_dir/geth/transactions.rlp" ] + envFrom: + - configMapRef: + name: {{ .Values.config.rollup.name }}-geth-env + volumeMounts: + - mountPath: /home/geth + name: {{ $.Values.config.rollup.name }}-rollup-shared-storage-vol + subPath: {{ .Values.config.rollup.name }}/executor + {{- end }} - name: init-geth command: [ "/scripts/init-geth.sh" ] image: {{ include "rollup.image" . }} diff --git a/charts/evm-rollup/templates/storageclasses.yaml b/charts/evm-rollup/templates/storageclasses.yaml index 45811a1..0bbc234 100644 --- a/charts/evm-rollup/templates/storageclasses.yaml +++ b/charts/evm-rollup/templates/storageclasses.yaml @@ -9,7 +9,7 @@ metadata: provisioner: kubernetes.io/no-provisioner volumeBindingMode: WaitForFirstConsumer reclaimPolicy: Retain - {{- if .Values.config.blockscout.enabled }} + {{- if $.Values.config.blockscout.enabled }} --- apiVersion: storage.k8s.io/v1 kind: StorageClass diff --git a/charts/evm-rollup/values.yaml b/charts/evm-rollup/values.yaml index abbad54..5e550e2 100644 --- a/charts/evm-rollup/values.yaml +++ b/charts/evm-rollup/values.yaml @@ -44,6 +44,8 @@ config: dbEngine: pebble # Set to true to keep history of all blocks archiveNode: false + # Set to true to clear the mempool on startup/restart + purgeMempool: false # EVM network ID used by the chain networkId: "1337" # Determines what will drive block execution, options are: