From 50e84156cc749b2dc3b603b4ad9f725aa52e0e53 Mon Sep 17 00:00:00 2001 From: tersec Date: Thu, 19 May 2022 20:36:47 +0000 Subject: [PATCH] only send JWT headers in Bellatrix-capable networks (#3645) --- beacon_chain/nimbus_beacon_node.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index d5909b378..36772fe3e 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -405,7 +405,7 @@ proc init*(T: type BeaconNode, quit 1 let optJwtSecret = - block: + if cfg.BELLATRIX_FORK_EPOCH != FAR_FUTURE_EPOCH: let jwtSecret = rng[].checkJwtSecret( string(config.dataDir), config.jwtSecret) if jwtSecret.isErr: @@ -414,6 +414,8 @@ proc init*(T: type BeaconNode, quit 1 some jwtSecret.get + else: + none(seq[byte]) template getDepositContractSnapshot: auto = if depositContractSnapshot.isSome: