OptionaladdressOptionalallowA list of multiaddrs that will always be allowed (except if they are in the deny list) to open connections to this node even if we've reached maxConnections
OptionalconnectionHow many ms to wait when closing a connection if an abort signal is not passed
OptionaldenyA list of multiaddrs that will never be allowed to open connections to this node under any circumstances
OptionaldialHow long a dial attempt is allowed to take, including DNS resolution of the multiaddr, opening a socket and upgrading it to a Connection.
OptionalinboundIf more than this many connections are opened per second by a single host, reject subsequent connections.
OptionalinboundInbound protocol negotiation must complete within this number of ms
OptionalinboundWhen a new incoming connection is opened, the upgrade process (e.g. protect, encrypt, multiplex etc) must complete within this number of ms.
OptionalmaxThe maximum number of connections libp2p is willing to have before it starts pruning connections to reduce resource usage.
OptionalmaxThe maximum size the dial queue is allowed to grow to. Promises returned when dialing peers after this limit is reached will not resolve until the queue size falls beneath this size.
OptionalmaxThe maximum number of parallel incoming connections allowed that have yet to complete the connection upgrade - e.g. choosing connection encryption, muxer, etc.
OptionalmaxThe maximum number of dials across all peers to execute in parallel.
OptionalmaxWhen a peers tagged with KEEP_ALIVE disconnect, reconnect to this many at
once.
OptionalmaxMaximum number of addresses allowed for a given peer before giving up
OptionaloutboundOutbound protocol negotiation must complete within this number of ms.
Does not apply if an abort signal is passed to the .dial or
.dialProtocol method of the ConnectionManager or the openStream
method of the Connection.
OptionalreconnectWhen a peer tagged with KEEP_ALIVE disconnects, apply this multiplication
factor to the time interval between each retry.
OptionalreconnectWhen a peer tagged with KEEP_ALIVE disconnects, attempt to redial them
this many times.
OptionalreconnectWhen a peer tagged with KEEP_ALIVE disconnects, wait this long between
each retry. Note this will be multiplied by reconnectFactor to create an
increasing retry backoff.
OptionalresolversMultiaddr resolvers to use when dialling
Sort the known addresses of a peer before trying to dial, By default public addresses will be dialled before private (e.g. loopback or LAN) addresses.