feat: enable dht by default (#313)

BREAKING CHANGE: dht experimental flag was removed and a dht.enabled property was added to the config
This commit is contained in:
Vasco Santos
2019-01-29 17:57:09 +00:00
committed by Jacob Heun
parent ebaab3e47f
commit c4cab007af
13 changed files with 59 additions and 59 deletions

View File

@ -13,8 +13,10 @@ describe('libp2p creation', () => {
createNode([], {
config: {
EXPERIMENTAL: {
dht: true,
pubsub: true
},
dht: {
enabled: true
}
}
}, (err, node) => {
@ -69,13 +71,11 @@ describe('libp2p creation', () => {
createNode([], {
config: {
EXPERIMENTAL: {
dht: false,
pubsub: false
}
}
}, (err, node) => {
expect(err).to.not.exist()
expect(node._dht).to.not.exist()
expect(node._floodSub).to.not.exist()
done()
})