mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-04 00:31:04 +00:00
16 lines
404 B
TypeScript
16 lines
404 B
TypeScript
|
import { KadDHT } from '@libp2p/kad-dht'
|
||
|
import type { Libp2pOptions } from '../../../src/index.js'
|
||
|
import { createBaseOptions } from '../../utils/base-options.js'
|
||
|
|
||
|
export function createSubsystemOptions (...overrides: Libp2pOptions[]) {
|
||
|
return createBaseOptions({
|
||
|
dht: new KadDHT({
|
||
|
kBucketSize: 20
|
||
|
})
|
||
|
}, ...overrides)
|
||
|
}
|
||
|
|
||
|
export const subsystemMulticodecs = [
|
||
|
'/ipfs/lan/kad/1.0.0'
|
||
|
]
|