Skip to content

Commit 50e8415

Browse files
authored
only send JWT headers in Bellatrix-capable networks (#3645)
1 parent a359dbe commit 50e8415

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

beacon_chain/nimbus_beacon_node.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ proc init*(T: type BeaconNode,
405405
quit 1
406406

407407
let optJwtSecret =
408-
block:
408+
if cfg.BELLATRIX_FORK_EPOCH != FAR_FUTURE_EPOCH:
409409
let jwtSecret = rng[].checkJwtSecret(
410410
string(config.dataDir), config.jwtSecret)
411411
if jwtSecret.isErr:
@@ -414,6 +414,8 @@ proc init*(T: type BeaconNode,
414414
quit 1
415415

416416
some jwtSecret.get
417+
else:
418+
none(seq[byte])
417419

418420
template getDepositContractSnapshot: auto =
419421
if depositContractSnapshot.isSome:

0 commit comments

Comments
 (0)