Skip to content

Commit

Permalink
cmd, les: remove light client code (ethereum#28586)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Mar 10, 2025
1 parent 080dcfd commit 66e73ad
Show file tree
Hide file tree
Showing 37 changed files with 49 additions and 10,100 deletions.
9 changes: 2 additions & 7 deletions cmd/XDC/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ var (
utils.TxPoolLifetimeFlag,
utils.SyncModeFlag,
utils.GCModeFlag,
//utils.LightServFlag,
//utils.LightPeersFlag,
// utils.LightServFlag, // deprecated
// utils.LightPeersFlag, // deprecated
//utils.LightKDFFlag,
utils.CacheFlag,
utils.CacheDatabaseFlag,
Expand Down Expand Up @@ -327,11 +327,6 @@ func startNode(ctx *cli.Context, stack *node.Node, cfg XDCConfig) {
}()
// Start auxiliary services if enabled

// Mining only makes sense if a full Ethereum node is running
if ctx.String(utils.SyncModeFlag.Name) == "light" {
utils.Fatalf("Light clients do not support staking")
}

var ethereum *eth.Ethereum
if err := stack.Service(&ethereum); err != nil {
utils.Fatalf("Ethereum service not running: %v", err)
Expand Down
Loading

0 comments on commit 66e73ad

Please sign in to comment.