mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-21 02:38:23 +00:00
rm experimental Yamux support (#6636)
This commit is contained in:
parent
bd94c20325
commit
f7ae15e107
@ -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]
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user