GraphsyncConfig constructor

const GraphsyncConfig({
  1. @Deprecated('Graphsync availability is controlled by IPFSConfig.enableGraphsync; ' 'this flag is only echoed in handler status and is ignored.') bool enabled = true,
  2. int defaultMaxDepth = 32,
  3. int defaultMaxBlocks = 1024,
  4. int defaultMaxBytes = _defaultMaxBytes,
  5. int maxServeDepth = 32,
  6. int maxServeBlocks = 10000,
  7. int maxServeBytes = _defaultMaxServeBytes,
  8. bool fallBackToBitswap = true,
})

Creates a GraphsyncConfig with the given settings.

Implementation

const GraphsyncConfig({
  @Deprecated(
    'Graphsync availability is controlled by IPFSConfig.enableGraphsync; '
    'this flag is only echoed in handler status and is ignored.',
  )
  this.enabled = true,
  this.defaultMaxDepth = 32,
  this.defaultMaxBlocks = 1024,
  this.defaultMaxBytes = _defaultMaxBytes,
  this.maxServeDepth = 32,
  this.maxServeBlocks = 10000,
  this.maxServeBytes = _defaultMaxServeBytes,
  this.fallBackToBitswap = true,
});