Skip to content

Commit 6a4d269

Browse files
committed
added tcp/udp docker firewall support
1 parent e631d66 commit 6a4d269

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

internal/components.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ func (r *RethEL) Run(svc *service, ctx *ExContext) {
252252
"--color", "never",
253253
"--ipcpath", "{{.Dir}}/reth.ipc",
254254
"--addr", "0.0.0.0",
255+
"--nat", "extip:172.17.0.1",
255256
"--port", `{{Port "rpc" 30303}}`,
256257
// "--disable-discovery",
257258
// http config
@@ -312,12 +313,15 @@ func (l *LighthouseBeaconNode) Run(svc *service, ctx *ExContext) {
312313
"--http-address", "0.0.0.0",
313314
"--http-allow-origin", "*",
314315
"--disable-packet-filter",
315-
"--target-peers", "0",
316+
"--target-peers", "5",
316317
"--execution-endpoint", Connect(l.ExecutionNode, "authrpc"),
317318
"--execution-jwt", "{{.Dir}}/jwtsecret",
318319
"--always-prepare-payload",
319320
"--prepare-payload-lookahead", "8000",
320321
"--suggested-fee-recipient", "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990",
322+
"--subscribe-all-subnets",
323+
"--import-all-attestations",
324+
"--debug-level", "trace",
321325
).
322326
WithReady(ReadyCheck{
323327
QueryURL: "http://localhost:3500/eth/v1/node/syncing",

internal/local_runner.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,12 @@ func (d *LocalRunner) toDockerComposeService(s *service) (map[string]interface{}
585585
for _, p := range s.ports {
586586
if p.Local {
587587
// Bind only to localhost (127.0.0.1)
588-
ports = append(ports, fmt.Sprintf("127.0.0.1:%d:%d", p.HostPort, p.Port))
588+
ports = append(ports, fmt.Sprintf("127.0.0.1:%d:%d/tcp", p.HostPort, p.Port))
589+
ports = append(ports, fmt.Sprintf("127.0.0.1:%d:%d/udp", p.HostPort, p.Port))
589590
} else {
590591
// Bind to all interfaces (default)
591-
ports = append(ports, fmt.Sprintf("%d:%d", p.HostPort, p.Port))
592+
ports = append(ports, fmt.Sprintf("%d:%d/tcp", p.HostPort, p.Port))
593+
ports = append(ports, fmt.Sprintf("%d:%d/udp", p.HostPort, p.Port))
592594
}
593595
}
594596
service["ports"] = ports

internal/recipe_l1.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,20 @@ func (l *L1Recipe) Apply(ctx *ExContext, artifacts *Artifacts) *Manifest {
7272

7373
svcManager.AddService("beacon", &LighthouseBeaconNode{
7474
ExecutionNode: elService,
75-
MevBoostNode: "mev-boost",
75+
// MevBoostNode: "mev-boost",
7676
})
7777
svcManager.AddService("validator", &LighthouseValidator{
7878
BeaconNode: "beacon",
7979
})
8080

81-
mevBoostValidationServer := ""
82-
if l.useRethForValidation {
83-
mevBoostValidationServer = "el"
84-
}
85-
svcManager.AddService("mev-boost", &MevBoostRelay{
86-
BeaconClient: "beacon",
87-
ValidationServer: mevBoostValidationServer,
88-
})
81+
// mevBoostValidationServer := ""
82+
// if l.useRethForValidation {
83+
// mevBoostValidationServer = "el"
84+
// }
85+
// svcManager.AddService("mev-boost", &MevBoostRelay{
86+
// BeaconClient: "beacon",
87+
// ValidationServer: mevBoostValidationServer,
88+
// })
8989
return svcManager
9090
}
9191

0 commit comments

Comments
 (0)