Skip to content

Commit

Permalink
Update erigon (#43)
Browse files Browse the repository at this point in the history
* Update erigon

* Update charts/erigon/values.yaml

Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>

* Update charts/erigon/values.yaml

Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>

Co-authored-by: Dmitri Tsumak <tsumak.dmitri@gmail.com>
  • Loading branch information
unxnn and tsudmi authored Dec 2, 2021
1 parent faed1a9 commit bc0c91d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
9 changes: 9 additions & 0 deletions charts/erigon/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ spec:
- --nat={{ .Values.erigon.nat }}
- --maxpeers={{ .Values.erigon.maxPeers }}
- --chain={{ .Values.erigon.network }}
{{- if eq .Values.erigon.network "mainnet" }}
{{- range .Values.erigon.mainnetExtraFlags }}
- {{ . }}
{{- end }}
{{- else if eq .Values.erigon.network "goerli" }}
{{- range .Values.erigon.goerliExtraFlags }}
- {{ . }}
{{- end }}
{{- end }}
{{- if .Values.erigon.nodeKey }}
- --nodekey={{ .Values.erigon.nodeKey }}
{{- end }}
Expand Down
19 changes: 17 additions & 2 deletions charts/erigon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,16 @@ securityContext: {}
# runAsNonRoot: true
# runAsUser: 1000


## Erigon configuration
##

# Name of the net to join
network: mainnet

erigon:
# Data directory for the databases
dataDir: "/data/erigon"
# Name of the testnet to join
network: mainnet
# Directory to store the ethash mining DAGs
ethHashDagDir: "/data/erigon-ethhash"
# Batch size for the execution stage
Expand Down Expand Up @@ -119,6 +122,18 @@ erigon:
# Disable remote sealing verification
minerNoVerify: false

## Extra flags for mainnet network
##
mainnetExtraFlags:
- "--prune.r.before=11184524"
- "--prune=htc"

## Extra flags for goerli network
##
goerliExtraFlags:
- "--prune.r.before=4367322"
- "--prune=htc"

service:
type: ClusterIP
port:
Expand Down
2 changes: 1 addition & 1 deletion charts/operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1.0.3
version: 1.0.4

# 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
Expand Down

0 comments on commit bc0c91d

Please sign in to comment.