GraphsyncConfig constructor
- @Deprecated('Graphsync availability is controlled by IPFSConfig.enableGraphsync; ' 'this flag is only echoed in handler status and is ignored.') bool enabled = true,
- int defaultMaxDepth = 32,
- int defaultMaxBlocks = 1024,
- int defaultMaxBytes = _defaultMaxBytes,
- int maxServeDepth = 32,
- int maxServeBlocks = 10000,
- int maxServeBytes = _defaultMaxServeBytes,
- 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,
});