Skip to content

Commit

Permalink
rm experimental Yamux support
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Oct 11, 2024
1 parent b4efaaa commit 5eeea08
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
6 changes: 0 additions & 6 deletions beacon_chain/conf.nim
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,6 @@ type
defaultValue: false
name: "enr-auto-update" .}: bool

enableYamux* {.
hidden
desc: "Enable the Yamux multiplexer"
defaultValue: false
name: "debug-enable-yamux" .}: bool

weakSubjectivityCheckpoint* {.
desc: "Weak subjectivity checkpoint in the format block_root:epoch_number"
name: "weak-subjectivity-checkpoint" .}: Option[Checkpoint]
Expand Down
6 changes: 0 additions & 6 deletions beacon_chain/conf_light_client.nim
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ type LightClientConf* = object
defaultValue: false
name: "enr-auto-update" .}: bool

enableYamux* {.
hidden
desc: "Enable the Yamux multiplexer"
defaultValue: false
name: "debug-enable-yamux" .}: bool

agentString* {.
defaultValue: "nimbus",
desc: "Node agent string which is used as identifier in network"
Expand Down
6 changes: 1 addition & 5 deletions beacon_chain/networking/eth2_network.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2249,11 +2249,7 @@ proc newBeaconSwitch(config: BeaconNodeConf | LightClientConf,
rng: ref HmacDrbgContext): Switch {.raises: [CatchableError].} =
let service: Service = WildcardAddressResolverService.new()

var sb =
if config.enableYamux:
SwitchBuilder.new().withYamux()
else:
SwitchBuilder.new()
var sb = SwitchBuilder.new()
# Order of multiplexers matters, the first will be default

sb
Expand Down

0 comments on commit 5eeea08

Please sign in to comment.