Skip to content

Commit b4c2e5b

Browse files
committed
chore: bump reth and lighthosue
1 parent a4e7179 commit b4c2e5b

2 files changed

Lines changed: 30 additions & 3 deletions

File tree

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,40 @@ 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+
initContainers = [
99+
{
100+
name = "migrate-storage-v2"
101+
image = var.reth_image
102+
imagePullPolicy = "Always"
103+
command = [
104+
"sh",
105+
"-ac",
106+
<<-EOT
107+
if [ ! -f /data/db/db/metadata.json ]; then
108+
echo "No existing Reth database found, skipping storage v2 migration."
109+
exit 0
110+
fi
111+
112+
reth db --datadir=/data --chain=${var.chain} migrate-v2
113+
EOT
114+
]
115+
volumeMounts = [
116+
{
117+
name = "storage"
118+
mountPath = "/data"
119+
}
120+
]
121+
}
122+
]
96123
})
97124
]
98125
}

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)