feat: prepare for new randomWalk config parameters

As per: https://github.com/libp2p/js-libp2p-kad-dht/issues/76

fix: pass whole dht config into DHT constructor
This commit is contained in:
Thomas Eizinger
2019-02-04 12:20:24 +11:00
committed by Jacob Heun
parent 679d446daa
commit 91e60d4253
5 changed files with 25 additions and 10 deletions

View File

@ -96,7 +96,12 @@ describe('configuration', () => {
dht: {
kBucketSize: 20,
enabled: true,
enabledDiscovery: true
randomWalk: {
enabled: true,
queriesPerPeriod: 1,
interval: 30000,
timeout: 10000
}
},
relay: {
enabled: true
@ -185,7 +190,12 @@ describe('configuration', () => {
dht: {
kBucketSize: 20,
enabled: true,
enabledDiscovery: true,
randomWalk: {
enabled: true,
queriesPerPeriod: 1,
interval: 30000,
timeout: 10000
},
selectors,
validators
}