GraphsyncConfig constructor

const GraphsyncConfig({
  1. bool enabled = true,
  2. int defaultMaxDepth = 32,
  3. int defaultMaxBlocks = 1024,
  4. int defaultMaxBytes = _defaultMaxBytes,
  5. bool fallBackToBitswap = true,
})

Creates a GraphsyncConfig with the given settings.

Implementation

const GraphsyncConfig({
  this.enabled = true,
  this.defaultMaxDepth = 32,
  this.defaultMaxBlocks = 1024,
  this.defaultMaxBytes = _defaultMaxBytes,
  this.fallBackToBitswap = true,
});