add deployment phase for Capella-ready networks (#4607)
Allow distinguishing Capella-ready networks from non-upgraded networks based on `CAPELLA_FORK_EPOCH` being set (Zhejiang public testnet).
This commit is contained in:
parent
20fc355ff1
commit
09dd64df32
|
@ -116,6 +116,7 @@ type
|
|||
|
||||
DeploymentPhase* {.pure.} = enum
|
||||
Devnet = "devnet"
|
||||
CapellaReady = "capella"
|
||||
Testnet = "testnet"
|
||||
Mainnet = "mainnet"
|
||||
None = "none"
|
||||
|
|
|
@ -1870,6 +1870,9 @@ proc doRunBeaconNode(config: var BeaconNodeConf, rng: ref HmacDrbgContext) {.rai
|
|||
# works
|
||||
for node in metadata.bootstrapNodes:
|
||||
config.bootstrapNodes.add node
|
||||
if not (metadata.cfg.CAPELLA_FORK_EPOCH == FAR_FUTURE_EPOCH or
|
||||
config.deploymentPhase == DeploymentPhase.None):
|
||||
config.deploymentPhase = DeploymentPhase.CapellaReady
|
||||
|
||||
let node = BeaconNode.init(rng, config, metadata)
|
||||
|
||||
|
|
Loading…
Reference in New Issue