109109
110110 # Fork choice
111111 # TODO PROPOSER_SCORE_BOOST*: uint64
112- # TODO REORG_HEAD_WEIGHT_THRESHOLD*: uint64
112+ REORG_HEAD_WEIGHT_THRESHOLD * : uint64
113113 # TODO REORG_PARENT_WEIGHT_THRESHOLD*: uint64
114- # TODO REORG_MAX_EPOCHS_SINCE_FINALIZATION*: uint64
114+ REORG_MAX_EPOCHS_SINCE_FINALIZATION * : uint64
115115
116116 # Deposit contract
117117 DEPOSIT_CHAIN_ID * : uint64
@@ -266,7 +266,6 @@ when const_preset == "mainnet":
266266 # 2**11 (= 2,048) Eth1 blocks ~8 hours
267267 ETH1_FOLLOW_DISTANCE : 2048 ,
268268
269-
270269 # Validator cycle
271270 # ---------------------------------------------------------------
272271 # 2**2 (= 4)
@@ -282,6 +281,11 @@ when const_preset == "mainnet":
282281 # [New in Deneb:EIP7514] 2**3 (= 8)
283282 MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT : 8 ,
284283
284+ # Fork choice
285+ # ---------------------------------------------------------------
286+ REORG_HEAD_WEIGHT_THRESHOLD : 20 ,
287+ REORG_MAX_EPOCHS_SINCE_FINALIZATION : 2 ,
288+
285289 # Deposit contract
286290 # ---------------------------------------------------------------
287291 # Ethereum PoW Mainnet
@@ -449,6 +453,11 @@ elif const_preset == "gnosis":
449453 # [New in Deneb:EIP7514] 2**3 (= 8)
450454 MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT : 8 ,
451455
456+ # Fork choice
457+ # ---------------------------------------------------------------
458+ REORG_HEAD_WEIGHT_THRESHOLD : 20 ,
459+ REORG_MAX_EPOCHS_SINCE_FINALIZATION : 2 ,
460+
452461 # Deposit contract
453462 # ---------------------------------------------------------------
454463 # Gnosis PoW Mainnet
@@ -597,7 +606,6 @@ elif const_preset == "minimal":
597606 # [customized] process deposits more quickly, but insecure
598607 ETH1_FOLLOW_DISTANCE : 16 ,
599608
600-
601609 # Validator cycle
602610 # ---------------------------------------------------------------
603611 # 2**2 (= 4)
@@ -613,6 +621,10 @@ elif const_preset == "minimal":
613621 # [New in Deneb:EIP7514] [customized]
614622 MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT : 4 ,
615623
624+ # Fork choice
625+ # ---------------------------------------------------------------
626+ REORG_HEAD_WEIGHT_THRESHOLD : 20 ,
627+ REORG_MAX_EPOCHS_SINCE_FINALIZATION : 2 ,
616628
617629 # Deposit contract
618630 # ---------------------------------------------------------------
@@ -984,9 +996,7 @@ proc readRuntimeConfig*(
984996 # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.0/specs/phase0/fork-choice.md#configuration
985997 # Isn't being used as a preset in the usual way: at any time, there's one correct value
986998 checkCompatibility PROPOSER_SCORE_BOOST
987- checkCompatibility REORG_HEAD_WEIGHT_THRESHOLD
988999 checkCompatibility REORG_PARENT_WEIGHT_THRESHOLD
989- checkCompatibility REORG_MAX_EPOCHS_SINCE_FINALIZATION
9901000
9911001 checkCompatibility SLOT_DURATION_MS
9921002 checkCompatibility ATTESTATION_DUE_BPS
0 commit comments