NetworkConfig constructor

const NetworkConfig({
  1. List<String> listenAddresses = const ['/ip4/0.0.0.0/tcp/4001'],
  2. List<String> bootstrapPeers = defaultBootstrapPeers,
  3. int maxConnections = 50,
  4. Duration connectionTimeout = const Duration(seconds: 30),
  5. String? delegatedRoutingEndpoint,
})

Creates a new NetworkConfig.

Implementation

const NetworkConfig({
  this.listenAddresses = const ['/ip4/0.0.0.0/tcp/4001'],
  this.bootstrapPeers = defaultBootstrapPeers,
  this.maxConnections = 50,
  this.connectionTimeout = const Duration(seconds: 30),
  this.delegatedRoutingEndpoint,
});