Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

update ipns reference to libp2p dht config #2182

Merged
merged 1 commit into from
Jun 24, 2019

Conversation

Qmstream
Copy link
Contributor

@Qmstream Qmstream commented Jun 16, 2019

The ipns initialization is checking the wrong path to the libp2p's dht config flag, and as result it always boots in the offline state.

The following code should print the enabled routers:

const config = {EXPERIMENTAL:{dht:true}, libp2p:{config:{dht:{enabled:true}}}}
const ipfs = new Ipfs(config)
ipfs.on('ready', () => console.log(ipfs._ipns.routing.stores))

With the patch the ipfs.libp2p.dht datastore is used.

Copy link
Member

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Qmstream

@alanshaw alanshaw merged commit e46e6ad into ipfs:master Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants