Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix: celestia node address, go number formatting bullshit (#190)
Browse files Browse the repository at this point in the history
The celestia node address helpers were broken, and when parsing larger
numbers for sequencer height or celestia heights we got scientific
notation, this is hack used elsewhere to handle this of wrapping as
string and then replacing quotes with nothing
  • Loading branch information
joroshiba authored Mar 25, 2024
1 parent 816f13e commit dc22df5
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion charts/celestia-node/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: 0.2.0
version: 0.2.1

# 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
2 changes: 1 addition & 1 deletion charts/celestia-node/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Define the service name
Define the k8s path to rpc service
*/}}
{{- define "celestiaNode.service.addresses.base" -}}
{{ include "celestiaNode.service.name" . }}.{{ .Values.global.namespace }}.svc.cluster.local:{{ .Values.ports.celestia.rpc }}
{{ include "celestiaNode.service.name" . }}.{{ include "celestiaNode.namespace" . }}.svc.cluster.local:{{ .Values.ports.celestia.rpc }}
{{- end }}


Expand Down
6 changes: 3 additions & 3 deletions charts/rollup/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: celestia-node
repository: file://../celestia-node
version: 0.2.0
digest: sha256:d259cf4f2d0f17d0c70a2e88f9735ab011831410284dade0f5846677fc836ba4
generated: "2024-02-15T15:04:33.506122-08:00"
version: 0.2.1
digest: sha256:42e3beb2b8dac70b3288ba9bea36cf87d1d51357f84197847895f5056aaafef5
generated: "2024-03-20T15:44:26.418305-04:00"
4 changes: 2 additions & 2 deletions charts/rollup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 0.10.1
version: 0.10.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
Expand All @@ -26,7 +26,7 @@ appVersion: "0.7.0"

dependencies:
- name: celestia-node
version: "0.2.0"
version: "0.2.1"
repository: "file://../celestia-node"
condition: celestia-node.enabled

Expand Down
Binary file removed charts/rollup/charts/celestia-node-0.2.0.tgz
Binary file not shown.
Binary file added charts/rollup/charts/celestia-node-0.2.1.tgz
Binary file not shown.
8 changes: 4 additions & 4 deletions charts/rollup/files/genesis/geth-genesis.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"config": {
"chainId": {{ .Values.config.rollup.networkId }},
"chainId": {{ toString .Values.config.rollup.networkId | replace "\"" "" }},
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
Expand All @@ -18,10 +18,10 @@
"astriaExtraDataOverride": "{{ .Values.config.rollup.genesis.extraDataOverride }}",
{{- end }}
"astriaOverrideGenesisExtraData": {{ .Values.config.rollup.genesis.overrideGenesisExtraData }},
"astriaSequencerInitialHeight": {{ .Values.config.sequencer.initialBlockHeight }},
"astriaSequencerInitialHeight": {{ toString .Values.config.sequencer.initialBlockHeight | replace "\"" "" }},
"astriaRollupName": "{{ .Values.config.rollup.name }}",
"astriaCelestiaInitialHeight": {{ .Values.config.celestia.initialBlockHeight }},
"astriaCelestiaHeightVariance": {{ .Values.config.celestia.heightVariance }}
"astriaCelestiaInitialHeight": {{ toString .Values.config.celestia.initialBlockHeight | replace "\"" "" }},
"astriaCelestiaHeightVariance":{{ toString .Values.config.celestia.heightVariance | replace "\"" "" }}
{{- if not .Values.global.dev }}
{{- else }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/rollup/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Return if ingress supports pathType.
{{- or (eq (include "rollup.ingress.isStable" .) "true") (and (eq (include "rollup.ingress.apiVersion" .) "networking.k8s.io/v1beta1") (semverCompare ">= 1.18-0" .Capabilities.KubeVersion.Version)) }}
{{- end }}

{{/*
Return the appropriate apiVersion for ingress.
*/}}
{{- define "rollup.ingress.apiVersion" -}}
Expand Down
8 changes: 4 additions & 4 deletions charts/rollup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ config:
# Set to true to keep history of all blocks
archiveNode: false
# EVM network ID used by the chain
networkId: 1337
networkId: "1337"
# Determines what will drive block execution, options are:
# - "SoftOnly" -> blocks are only pulled from the sequencer
# - "FirmOnly" -> blocks are only pulled from DA
Expand Down Expand Up @@ -118,7 +118,7 @@ config:
# Configuration related to sequencer connection for rollup
sequencer:
# Block height to start syncing rollup from
initialBlockHeight: 2
initialBlockHeight: "2"
# Fastest block time possible in MS
blockTimeMs: 2000
# URL path for the sequencer
Expand All @@ -136,8 +136,8 @@ config:
rpc: ""
ws: ""
token: ""
initialBlockHeight: 2
heightVariance: 10
initialBlockHeight: "2"
heightVariance: "10"

blockscout:
enabled: true
Expand Down
6 changes: 3 additions & 3 deletions values/rollup/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ global:

config:
celestia:
rpc: "http://celestia-service.astria-dev-cluster.svc.cluster.local:26658"
ws: "ws://celestia-service.astria-dev-cluster.svc.cluster.local:26658"
token: "http://celestia-service.astria-dev-cluster.svc.cluster.local:5353"
rpc: "http://celestia-service.astria-dev-cluster.svc.cluster.local:26658"
ws: "ws://celestia-service.astria-dev-cluster.svc.cluster.local:26658"
token: "http://celestia-service.astria-dev-cluster.svc.cluster.local:5353"

celestia-node:
enabled: false

0 comments on commit dc22df5

Please sign in to comment.