You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
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:
constipfs=newIPFS({libp2p: (_ipfs)=>{/* Fancy stuff here with startup info from the ipfs node */returnnewLibp2p({peerInfo: _ipfs._peerInfo,peerBook: _ipfs._peerInfoBook,config: {/* custom config using the above fancy stuff */}})}})