@@ -790,11 +790,6 @@ var (
790
790
Usage : "InfluxDB organization name (v2 only)" ,
791
791
Value : metrics .DefaultConfig .InfluxDBOrganization ,
792
792
}
793
-
794
- CatalystFlag = cli.BoolFlag {
795
- Name : "catalyst" ,
796
- Usage : "Catalyst mode (eth2 integration testing)" ,
797
- }
798
793
)
799
794
800
795
// MakeDataDir retrieves the currently requested data directory, terminating
@@ -1717,14 +1712,14 @@ func SetDNSDiscoveryDefaults(cfg *ethconfig.Config, genesis common.Hash) {
1717
1712
// RegisterEthService adds an Ethereum client to the stack.
1718
1713
// The second return value is the full node instance, which may be nil if the
1719
1714
// node is running as a light client.
1720
- func RegisterEthService (stack * node.Node , cfg * ethconfig.Config , isCatalyst bool ) (ethapi.Backend , * eth.Ethereum ) {
1715
+ func RegisterEthService (stack * node.Node , cfg * ethconfig.Config ) (ethapi.Backend , * eth.Ethereum ) {
1721
1716
if cfg .SyncMode == downloader .LightSync {
1722
1717
backend , err := les .New (stack , cfg )
1723
1718
if err != nil {
1724
1719
Fatalf ("Failed to register the Ethereum service: %v" , err )
1725
1720
}
1726
1721
stack .RegisterAPIs (tracers .APIs (backend .ApiBackend ))
1727
- if isCatalyst {
1722
+ if backend . BlockChain (). Config (). TerminalTotalDifficulty != nil {
1728
1723
if err := lescatalyst .Register (stack , backend ); err != nil {
1729
1724
Fatalf ("Failed to register the catalyst service: %v" , err )
1730
1725
}
@@ -1741,7 +1736,7 @@ func RegisterEthService(stack *node.Node, cfg *ethconfig.Config, isCatalyst bool
1741
1736
Fatalf ("Failed to create the LES server: %v" , err )
1742
1737
}
1743
1738
}
1744
- if isCatalyst {
1739
+ if backend . BlockChain (). Config (). TerminalTotalDifficulty != nil {
1745
1740
if err := ethcatalyst .Register (stack , backend ); err != nil {
1746
1741
Fatalf ("Failed to register the catalyst service: %v" , err )
1747
1742
}
0 commit comments