This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Allow for custom libp2p generator in configuration #1463
Labels
exp/novice
Someone with a little familiarity can pick up
P2
Medium: Good to have, but can wait until someone steps up
Currently libp2p is being created by configuration when ipfs boots. This makes it difficult for users to do anything custom with libp2p, even just adding transports that require the nodes peerInfo on startup, libp2p/js-libp2p#222.
By allowing users to specify a generator for libp2p we provide more flexibility for them to customize it to their needs.
It would be great if users could do something like this:
Then when ipfs goes to start libp2p, https://github.com/ipfs/js-ipfs/blob/v0.30.1/src/core/components/libp2p.js#L11, we can run the generator which would have access to boot time information like the nodes peerInfo.
The text was updated successfully, but these errors were encountered: