Skip to content

Commit 704a830

Browse files
committed
chore: bump reth and lighthosue
1 parent 94a2f57 commit 704a830

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

spartan/terraform/deploy-ethereum-nodes/main.tf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,41 @@ locals {
8686
}
8787
extraArgs = [
8888
"--chain=${var.chain}",
89+
# "--storage.v2=true",
8990
]
9091

9192
persistence = {
9293
enabled = true
9394
size = var.reth_storage
9495
storageClassName = "premium-rwo"
9596
}
97+
98+
# disabled because sepolia db has already been migrated, mainnet has not been migrated yet
99+
#initContainers = [
100+
# {
101+
# name = "migrate-storage-v2"
102+
# image = var.reth_image
103+
# imagePullPolicy = "Always"
104+
# command = [
105+
# "sh",
106+
# "-ac",
107+
# <<-EOT
108+
# if [ ! -f /data/db/database.version ]; then
109+
# echo "No existing Reth database found, skipping storage v2 migration."
110+
# exit 0
111+
# fi
112+
113+
# reth db --datadir=/data --chain=${var.chain} migrate-v2
114+
# EOT
115+
# ]
116+
# volumeMounts = [
117+
# {
118+
# name = "storage"
119+
# mountPath = "/data"
120+
# }
121+
# ]
122+
# }
123+
#]
96124
})
97125
]
98126
}

spartan/terraform/deploy-ethereum-nodes/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ variable "lighthouse_p2p_port" {
4848
variable "reth_image" {
4949
description = "Reth Docker image"
5050
type = string
51-
default = "ghcr.io/paradigmxyz/reth:v2.0.0"
51+
default = "ghcr.io/paradigmxyz/reth:v2.2.0"
5252
}
5353

5454
variable "reth_chart_version" {
@@ -90,13 +90,13 @@ variable "reth_memory_limit" {
9090
variable "lighthouse_image" {
9191
description = "Lighthouse Docker image"
9292
type = string
93-
default = "sigp/lighthouse:v8.0.1"
93+
default = "sigp/lighthouse:v8.1.3"
9494
}
9595

9696
variable "lighthouse_chart_version" {
9797
description = "Lighthouse Helm chart version"
9898
type = string
99-
default = "1.1.7"
99+
default = "1.1.8"
100100
}
101101

102102
variable "lighthouse_storage" {

0 commit comments

Comments
 (0)