Optional
addressOptional
allowA 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
Optional
denyA list of multiaddrs that will never be allowed to open connections to this node under any circumstances
Optional
dialHow long a dial attempt is allowed to take, including DNS resolution of the multiaddr, opening a socket and upgrading it to a Connection.
5000
Optional
inboundIf more than this many connections are opened per second by a single host, reject subsequent connections.
5
Optional
inboundWhen a new incoming connection is opened, the upgrade process (e.g. protect, encrypt, multiplex etc) must complete within this number of ms.
3000
Optional
maxThe maximum number of connections libp2p is willing to have before it starts pruning connections to reduce resource usage.
300/100
Optional
maxThe 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.
500
Optional
maxThe maximum number of parallel incoming connections allowed that have yet to complete the connection upgrade - e.g. choosing connection encryption, muxer, etc.
10
Optional
maxThe maximum number of dials across all peers to execute in parallel.
100/50
Optional
maxWhen a peers tagged with KEEP_ALIVE
disconnect, reconnect to this many at
once.
5
Optional
maxMaximum number of addresses allowed for a given peer before giving up
25
Optional
outboundWhen a new outbound connection is opened, the upgrade process (e.g. protect, encrypt, multiplex etc) must complete within this number of ms.
3000
Optional
protocolProtocol negotiation must complete within this number of ms
2000
Optional
reconnectWhen a peer tagged with KEEP_ALIVE
disconnects, apply this multiplication
factor to the time interval between each retry.
2
Optional
reconnectWhen a peer tagged with KEEP_ALIVE
disconnects, attempt to redial them
this many times.
5
Optional
reconnectWhen 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.
1000
Optional
resolversMultiaddr 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.