Optional allowOptional clientWhether to start up as a DHT client or server
Optional initialDuring startup we run the self-query at a shorter interval to ensure the containing node can respond to queries quickly. Set this interval here in ms (default: 1000)
Optional kHow many peers to store in each kBucket (default 20)
Optional maxHow many parallel incoming streams to allow on the DHT protocol per-connection
Optional maxHow many parallel outgoing streams to allow on the DHT protocol per-connection
Optional pingHow many peers to ping in parallel when deciding if they should be evicted from the routing table or not (default 10)
Optional pingHow long to wait in ms when pinging DHT peers to decide if they should be evicted from the routing table or not (default 10000)
Optional protocolA custom protocol prefix to use (default: '/ipfs')
Optional providersInitialization options for the Providers component
Optional queryHow often to query our own PeerId in order to ensure we have a good view on the KAD address space local to our PeerId
Optional selectorsRecord selectors
Optional validatorsRecord validators
After startup by default all queries will be paused until the initial self-query has run and there are some peers in the routing table.
Pass true here to disable this behaviour. (default: false)