File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 71
71
"iso-random-stream" : " ^2.0.0" ,
72
72
"it-all" : " ^1.0.5" ,
73
73
"it-drain" : " ^1.0.4" ,
74
- "libp2p" : " ^0.32.4 " ,
75
- "libp2p-kad-dht" : " ^0.24 .1" ,
74
+ "libp2p" : " libp2p/js-libp2p#feat/update-dht " ,
75
+ "libp2p-kad-dht" : " ^0.26 .1" ,
76
76
"libp2p-mplex" : " ^0.10.2" ,
77
77
"libp2p-tcp" : " ^0.17.1" ,
78
78
"lodash.difference" : " ^4.5.0" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,12 @@ import { BitswapMessage as Message } from '../src/message/index.js'
22
22
*/
23
23
async function createThing ( dht ) {
24
24
const libp2pNode = await createLibp2pNode ( {
25
- DHT : dht
25
+ DHT : dht ,
26
+ config : {
27
+ dht : {
28
+ clientMode : false
29
+ }
30
+ }
26
31
} )
27
32
const bitswap = new Bitswap ( libp2pNode , new MemoryBlockstore ( ) )
28
33
bitswap . start ( )
@@ -182,9 +187,9 @@ describe('bitswap with DHT', function () {
182
187
183
188
// await dht routing table are updated
184
189
await Promise . all ( [
185
- pWaitFor ( ( ) => nodes [ 0 ] . libp2pNode . _dht . routingTable . size >= 1 ) ,
186
- pWaitFor ( ( ) => nodes [ 1 ] . libp2pNode . _dht . routingTable . size >= 2 ) ,
187
- pWaitFor ( ( ) => nodes [ 2 ] . libp2pNode . _dht . routingTable . size >= 1 )
190
+ pWaitFor ( ( ) => nodes [ 0 ] . libp2pNode . _dht . _lan . _routingTable . size >= 1 ) ,
191
+ pWaitFor ( ( ) => nodes [ 1 ] . libp2pNode . _dht . _lan . _routingTable . size >= 2 ) ,
192
+ pWaitFor ( ( ) => nodes [ 2 ] . libp2pNode . _dht . _lan . _routingTable . size >= 1 )
188
193
] )
189
194
} )
190
195
You can’t perform that action at this time.
0 commit comments