From 21247415ebe005cc3ec7696e870a7dae2c841fff Mon Sep 17 00:00:00 2001 From: sklppy88 Date: Tue, 11 Feb 2025 17:59:18 +0000 Subject: [PATCH] init --- .../eth-devnet/entrypoints/eth-execution.sh | 5 +++++ .../aztec-network/templates/eth/eth-execution.yaml | 11 +++++++++++ spartan/aztec-network/values.yaml | 2 ++ 3 files changed, 18 insertions(+) diff --git a/spartan/aztec-network/eth-devnet/entrypoints/eth-execution.sh b/spartan/aztec-network/eth-devnet/entrypoints/eth-execution.sh index b1c900c1a7b..8a4b402dcfe 100755 --- a/spartan/aztec-network/eth-devnet/entrypoints/eth-execution.sh +++ b/spartan/aztec-network/eth-devnet/entrypoints/eth-execution.sh @@ -6,6 +6,11 @@ exec reth node \ --http.addr="0.0.0.0" \ --http.api="admin,net,eth,web3,debug,trace" \ --http.corsdomain="*" \ + --ws \ + --ws.addr="0.0.0.0" \ + --ws.port=${WS_PORT} \ + --ws.api="admin,net,eth,web3,debug,trace" \ + --ws.origins="*" \ --txpool.max-tx-input-bytes=${MAX_TX_INPUT_SIZE_BYTES} \ --max-outbound-peers=0 \ --max-inbound-peers=0 \ diff --git a/spartan/aztec-network/templates/eth/eth-execution.yaml b/spartan/aztec-network/templates/eth/eth-execution.yaml index f134f9146ab..3608eea5867 100644 --- a/spartan/aztec-network/templates/eth/eth-execution.yaml +++ b/spartan/aztec-network/templates/eth/eth-execution.yaml @@ -37,11 +37,15 @@ spec: value: "true" - name: HTTP_PORT value: "{{ .Values.ethereum.execution.service.port }}" + - name: WS_PORT + value: "{{ .Values.ethereum.execution.service.wsPort }}" - name: MAX_TX_INPUT_SIZE_BYTES value: "{{ .Values.ethereum.maxTxInputSizeBytes }}" ports: - containerPort: {{ .Values.ethereum.execution.service.port }} name: eth-execution + - containerPort: {{ .Values.ethereum.execution.service.wsPort }} + name: eth-exec-ws volumeMounts: - name: genesis mountPath: /genesis @@ -87,6 +91,13 @@ spec: {{- if and (eq .Values.ethereum.execution.service.type "NodePort") .Values.ethereum.execution.service.nodePort }} nodePort: {{ .Values.ethereum.execution.service.nodePort }} {{- end }} + - name: ws + protocol: TCP + port: {{ .Values.ethereum.execution.service.wsPort }} + targetPort: {{ .Values.ethereum.execution.service.wsTargetPort }} + {{- if and (eq .Values.ethereum.execution.service.type "NodePort") .Values.ethereum.execution.service.wsNodePort }} + nodePort: {{ .Values.ethereum.execution.service.wsNodePort }} + {{- end }} # Engine Api - name: engine protocol: TCP diff --git a/spartan/aztec-network/values.yaml b/spartan/aztec-network/values.yaml index 85d2843fcd3..5b2596b3e48 100644 --- a/spartan/aztec-network/values.yaml +++ b/spartan/aztec-network/values.yaml @@ -246,6 +246,8 @@ ethereum: service: port: 8545 targetPort: 8545 + wsPort: 8546 + wsTargetPort: 8546 resources: requests: memory: "4Gi"