File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 102
102
"@chainsafe/discv5" : " ^5.0.0" ,
103
103
"@chainsafe/libp2p-gossipsub" : " ^10.0.0" ,
104
104
"@chainsafe/libp2p-noise" : " ^13.0.0" ,
105
+ "@chainsafe/libp2p-yamux" : " ^5.0.0" ,
105
106
"@chainsafe/persistent-merkle-tree" : " ^0.5.0" ,
106
107
"@chainsafe/prometheus-gc-stats" : " ^1.0.0" ,
107
108
"@chainsafe/ssz" : " ^0.10.2" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import {bootstrap} from "@libp2p/bootstrap";
7
7
import { mdns } from "@libp2p/mdns" ;
8
8
import { createLibp2p } from "libp2p" ;
9
9
import { mplex } from "@libp2p/mplex" ;
10
+ import { yamux } from "@chainsafe/libp2p-yamux" ;
10
11
import { prometheusMetrics } from "@libp2p/prometheus-metrics" ;
11
12
import { tcp } from "@libp2p/tcp" ;
12
13
import { defaultNetworkOptions , NetworkOptions } from "../options.js" ;
@@ -85,7 +86,7 @@ export async function createNodeJsLibp2p(
85
86
} ,
86
87
} ) ,
87
88
] ,
88
- streamMuxers : [ mplex ( { maxInboundStreams : 256 } ) ] ,
89
+ streamMuxers : [ yamux ( { maxInboundStreams : 256 } ) , mplex ( { maxInboundStreams : 256 } ) ] ,
89
90
peerDiscovery,
90
91
metrics : nodeJsLibp2pOpts . metrics
91
92
? prometheusMetrics ( {
Original file line number Diff line number Diff line change 606
606
uint8arraylist "^2.4.3"
607
607
uint8arrays "^4.0.4"
608
608
609
+ "@chainsafe/libp2p-yamux@^5.0.0":
610
+ version "5.0.0"
611
+ resolved "https://registry.yarnpkg.com/@chainsafe/libp2p-yamux/-/libp2p-yamux-5.0.0.tgz#c1016fc839870139b5c097daff9408b91c58f2a7"
612
+ integrity sha512-aWTnBPR2hJt0A2y579sMtZVB6IqgSSHlZ6Eg+WDxNZQ0zcexafuruZQDj+z3FUTNPz+E8IeuyCi7tjI4IEehjw==
613
+ dependencies:
614
+ "@libp2p/interface" "^0.1.0"
615
+ "@libp2p/logger" "^3.0.0"
616
+ abortable-iterator "^5.0.1"
617
+ it-foreach "^2.0.3"
618
+ it-pipe "^3.0.1"
619
+ it-pushable "^3.2.0"
620
+ uint8arraylist "^2.4.3"
621
+
609
622
"@chainsafe/netmask@^2.0.0":
610
623
version "2.0.0"
611
624
resolved "https://registry.yarnpkg.com/@chainsafe/netmask/-/netmask-2.0.0.tgz#0d4a75f47919f65011da4327a3845c9661f1038a"
You can’t perform that action at this time.
0 commit comments