Skip to content

Commit

Permalink
les: remove (#2211)
Browse files Browse the repository at this point in the history
LES was [removed from
geth](ethereum/go-ethereum#28586) and is
generally no longer supported on the network.
  • Loading branch information
arnetheduck committed May 23, 2024
1 parent 2c32205 commit fe29621
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 1,179 deletions.
6 changes: 2 additions & 4 deletions nimbus/config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ type
## Protocol flags
Eth ## enable eth subprotocol
#Snap ## enable snap sub-protocol
Les ## enable les subprotocol

RpcFlag* {.pure.} = enum
## RPC flags
Expand Down Expand Up @@ -373,8 +372,8 @@ type

protocols {.
desc: "Enable specific set of server protocols (available: Eth, " &
" Les, None.) This will not affect the sync mode"
# " Snap, Les, None.) This will not affect the sync mode"
" None.) This will not affect the sync mode"
# " Snap, None.) This will not affect the sync mode"
defaultValue: @[]
defaultValueDesc: $ProtocolFlag.Eth
name: "protocols" .}: seq[string]
Expand Down Expand Up @@ -635,7 +634,6 @@ proc getProtocolFlags*(conf: NimbusConf): set[ProtocolFlag] =
for item in repeatingList(conf.protocols):
case item.toLowerAscii()
of "eth": result.incl ProtocolFlag.Eth
of "les": result.incl ProtocolFlag.Les
# of "snap": result.incl ProtocolFlag.Snap
of "none": noneOk = true
else:
Expand Down
5 changes: 1 addition & 4 deletions nimbus/nimbus.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ import
./core/clique/clique_desc,
./core/clique/clique_sealer,
./sync/protocol,
./sync/handlers,
./sync/protocol/les_protocol
./sync/handlers

when defined(evmc_enabled):
import transaction/evmc_dynamic_loader
Expand Down Expand Up @@ -131,8 +130,6 @@ proc setupP2P(nimbus: NimbusNode, conf: NimbusConf,
nimbus.ethNode.peerPool,
nimbus.chainRef,
nimbus.txPool)
of ProtocolFlag.Les:
nimbus.ethNode.addCapability les
#of ProtocolFlag.Snap:
# nimbus.ethNode.addSnapHandlerCapability(
# nimbus.ethNode.peerPool,
Expand Down
Loading

0 comments on commit fe29621

Please sign in to comment.