Skip to content

Commit fe29621

Browse files
authored
les: remove (#2211)
LES was [removed from geth](ethereum/go-ethereum#28586) and is generally no longer supported on the network.
1 parent 2c32205 commit fe29621

File tree

6 files changed

+4
-1179
lines changed

6 files changed

+4
-1179
lines changed

nimbus/config.nim

+2-4
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ type
117117
## Protocol flags
118118
Eth ## enable eth subprotocol
119119
#Snap ## enable snap sub-protocol
120-
Les ## enable les subprotocol
121120

122121
RpcFlag* {.pure.} = enum
123122
## RPC flags
@@ -373,8 +372,8 @@ type
373372

374373
protocols {.
375374
desc: "Enable specific set of server protocols (available: Eth, " &
376-
" Les, None.) This will not affect the sync mode"
377-
# " Snap, Les, None.) This will not affect the sync mode"
375+
" None.) This will not affect the sync mode"
376+
# " Snap, None.) This will not affect the sync mode"
378377
defaultValue: @[]
379378
defaultValueDesc: $ProtocolFlag.Eth
380379
name: "protocols" .}: seq[string]
@@ -635,7 +634,6 @@ proc getProtocolFlags*(conf: NimbusConf): set[ProtocolFlag] =
635634
for item in repeatingList(conf.protocols):
636635
case item.toLowerAscii()
637636
of "eth": result.incl ProtocolFlag.Eth
638-
of "les": result.incl ProtocolFlag.Les
639637
# of "snap": result.incl ProtocolFlag.Snap
640638
of "none": noneOk = true
641639
else:

nimbus/nimbus.nim

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ import
2828
./core/clique/clique_desc,
2929
./core/clique/clique_sealer,
3030
./sync/protocol,
31-
./sync/handlers,
32-
./sync/protocol/les_protocol
31+
./sync/handlers
3332

3433
when defined(evmc_enabled):
3534
import transaction/evmc_dynamic_loader
@@ -131,8 +130,6 @@ proc setupP2P(nimbus: NimbusNode, conf: NimbusConf,
131130
nimbus.ethNode.peerPool,
132131
nimbus.chainRef,
133132
nimbus.txPool)
134-
of ProtocolFlag.Les:
135-
nimbus.ethNode.addCapability les
136133
#of ProtocolFlag.Snap:
137134
# nimbus.ethNode.addSnapHandlerCapability(
138135
# nimbus.ethNode.peerPool,

0 commit comments

Comments
 (0)