Skip to content

Commit

Permalink
Merge pull request #427 from celo-org/op-node-p2p-paths
Browse files Browse the repository at this point in the history
p2p.peerstore.path and p2p.discovery.path
  • Loading branch information
alvarof2 authored Nov 21, 2024
2 parents 1aa75d4 + 43eaecf commit a5efb7c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/op-node/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: op-node
apiVersion: v2
version: 0.4.7
version: 0.4.8
description: Celo implementation for op-node consensus engine (Optimism Rollup)
home: https://clabs.co
sources:
Expand Down
4 changes: 3 additions & 1 deletion charts/op-node/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# op-node

![Version: 0.4.7](https://img.shields.io/badge/Version-0.4.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)
![Version: 0.4.8](https://img.shields.io/badge/Version-0.4.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0.0](https://img.shields.io/badge/AppVersion-v1.0.0-informational?style=flat-square)

Celo implementation for op-node consensus engine (Optimism Rollup)
Initially based on [dysnix/charts/op-node](https://github.com/dysnix/charts/tree/main/dysnix/op-node).
Expand Down Expand Up @@ -52,10 +52,12 @@ Initially based on [dysnix/charts/op-node](https://github.com/dysnix/charts/tree
| config.metrics.port | int | `7300` | |
| config.network | string | `"op-mainnet"` | |
| config.p2p.bootnodes | list | `[]` | |
| config.p2p.discoveryPath | string | `""` | |
| config.p2p.keys | string | `""` | |
| config.p2p.nat | bool | `false` | |
| config.p2p.netrestrict | list | `[]` | |
| config.p2p.noDiscovery | bool | `false` | |
| config.p2p.peerStorePath | string | `""` | |
| config.p2p.port | int | `9222` | |
| config.p2p.sequencer.key | string | `""` | |
| config.p2p.static | list | `[]` | |
Expand Down
6 changes: 6 additions & 0 deletions charts/op-node/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ spec:
{{- with .Values.config.p2p.netrestrict }}
--p2p.netrestrict={{ join "," . }} \
{{- end }}
{{- with .Values.config.p2p.discoveryPath }}
--p2p.discovery.path={{ . | quote }} \
{{- end }}
{{- with .Values.config.p2p.peerStorePath }}
--p2p.peerstore.path={{ . | quote }} \
{{- end }}
--p2p.priv.path=$datadir/opnode_p2p_priv.txt \
--log.level={{ .Values.config.log.level }} \
--log.format={{ .Values.config.log.format }} \
Expand Down
2 changes: 2 additions & 0 deletions charts/op-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ config:
netrestrict: [] # restrict network access to specific IPs
noDiscovery: false # disable peer discovery
keys: "" # comma separated list of keys to use for p2p
discoveryPath: "" # path to store p2p discovery data
peerStorePath: "" # path to store p2p peer data
sequencer:
key: "" # sequencer key

Expand Down

0 comments on commit a5efb7c

Please sign in to comment.