Skip to content

Commit 0119129

Browse files
committed
cmd, les: remove light client code (ethereum#28586)
1 parent e42d162 commit 0119129

37 files changed

+49
-10100
lines changed

cmd/XDC/main.go

+2-7
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ var (
8989
utils.TxPoolLifetimeFlag,
9090
utils.SyncModeFlag,
9191
utils.GCModeFlag,
92-
//utils.LightServFlag,
93-
//utils.LightPeersFlag,
92+
// utils.LightServFlag, // deprecated
93+
// utils.LightPeersFlag, // deprecated
9494
//utils.LightKDFFlag,
9595
utils.CacheFlag,
9696
utils.CacheDatabaseFlag,
@@ -327,11 +327,6 @@ func startNode(ctx *cli.Context, stack *node.Node, cfg XDCConfig) {
327327
}()
328328
// Start auxiliary services if enabled
329329

330-
// Mining only makes sense if a full Ethereum node is running
331-
if ctx.String(utils.SyncModeFlag.Name) == "light" {
332-
utils.Fatalf("Light clients do not support staking")
333-
}
334-
335330
var ethereum *eth.Ethereum
336331
if err := stack.Service(&ethereum); err != nil {
337332
utils.Fatalf("Ethereum service not running: %v", err)

0 commit comments

Comments
 (0)