DHTConfig constructor
- String protocolId = '/ipfs/kad/1.0.0',
- int alpha = 3,
- int bucketSize = 20,
- int maxProvidersPerKey = 20,
- Duration requestTimeout = const Duration(seconds: 30),
- int maxRecordsPerQuery = 20,
- bool enableProviderRecording = true,
- bool enableValueStorage = true,
- bool validateProviderRecords = true,
- bool reproviderEnabled = true,
- Duration reproviderInterval = const Duration(hours: 12),
- String reproviderStrategy = 'pinned',
- int reproviderBatchSize = 100,
- int reproviderConcurrency = 10,
- bool reproviderSweepOptimization = true,
Creates a new DHTConfig with default Kademlia settings.
Implementation
const DHTConfig({
this.protocolId = '/ipfs/kad/1.0.0',
this.alpha = 3,
this.bucketSize = 20,
this.maxProvidersPerKey = 20,
this.requestTimeout = const Duration(seconds: 30),
this.maxRecordsPerQuery = 20,
this.enableProviderRecording = true,
this.enableValueStorage = true,
this.validateProviderRecords = true,
this.reproviderEnabled = true,
this.reproviderInterval = const Duration(hours: 12),
this.reproviderStrategy = 'pinned',
this.reproviderBatchSize = 100,
this.reproviderConcurrency = 10,
this.reproviderSweepOptimization = true,
});