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
Copy file name to clipboardexpand all lines: doc/API.md
+1
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,7 @@ Creates an instance of Libp2p.
89
89
|[options.addresses]|`{ listen: Array<string>, announce: Array<string>, noAnnounce: Array<string> }`| Addresses for transport listening and to advertise to the network |
90
90
|[options.config]|`object`| libp2p modules configuration and core configuration |
|[options.transportManager]|[`object`](./CONFIGURATION.md#configuring-transport-manager)| libp2p transport manager configuration |
92
93
|[options.datastore]|`object`| must implement [ipfs/interface-datastore](https://github.com/ipfs/interface-datastore) (in memory datastore will be used if not provided) |
The Transport Manager is responsible for managing the libp2p transports life cycle. This includes starting listeners for the provided listen addresses, closing these listeners and dialing using the provided transports. By default, if a libp2p node has a list of multiaddrs for listenning on and there are no valid transports for those multiaddrs, libp2p will throw an error on startup and shutdown. However, for some applications it is perfectly acceptable for libp2p nodes to start in dial only mode if all the listen multiaddrs failed. This error tolerance can be enabled as follows:
0 commit comments