mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-07 18:18:04 +00:00
Looks like this project stopped running the `test:node` npm script when it was migrated to gh actions. Re-enable it and fix all the related test failures.
36 lines
690 B
JavaScript
36 lines
690 B
JavaScript
'use strict'
|
|
|
|
const KadDht = require('libp2p-kad-dht')
|
|
const Crypto = require('../../../src/insecure/plaintext')
|
|
const Muxer = require('libp2p-mplex')
|
|
const Transport = require('libp2p-tcp')
|
|
|
|
const mergeOptions = require('merge-options')
|
|
|
|
const baseOptions = {
|
|
modules: {
|
|
transport: [Transport],
|
|
streamMuxer: [Muxer],
|
|
connEncryption: [Crypto]
|
|
}
|
|
}
|
|
|
|
module.exports.baseOptions = baseOptions
|
|
|
|
const subsystemOptions = mergeOptions(baseOptions, {
|
|
modules: {
|
|
dht: KadDht
|
|
},
|
|
config: {
|
|
dht: {
|
|
kBucketSize: 20,
|
|
enabled: true
|
|
}
|
|
}
|
|
})
|
|
|
|
module.exports.subsystemOptions = subsystemOptions
|
|
module.exports.subsystemMulticodecs = [
|
|
'/ipfs/lan/kad/1.0.0'
|
|
]
|