feat(graphsync): allow setting of per-peer incoming requests for miners
This commit is contained in:
+3
-2
@@ -160,8 +160,9 @@ func DefaultStorageMiner() *StorageMiner {
|
||||
MaxDealsPerPublishMsg: 8,
|
||||
MaxProviderCollateralMultiplier: 2,
|
||||
|
||||
SimultaneousTransfersForStorage: DefaultSimultaneousTransfers,
|
||||
SimultaneousTransfersForRetrieval: DefaultSimultaneousTransfers,
|
||||
SimultaneousTransfersForStorage: DefaultSimultaneousTransfers,
|
||||
SimultaneousTransfersForStoragePerClient: 0,
|
||||
SimultaneousTransfersForRetrieval: DefaultSimultaneousTransfers,
|
||||
|
||||
StartEpochSealingBuffer: 480, // 480 epochs buffer == 4 hours from adding deal to sector to sector being sealed
|
||||
|
||||
|
||||
@@ -272,6 +272,17 @@ passed to the sealing node by the markets service. 0 is unlimited.`,
|
||||
|
||||
Comment: `The maximum number of parallel online data transfers for storage deals`,
|
||||
},
|
||||
{
|
||||
Name: "SimultaneousTransfersForStoragePerClient",
|
||||
Type: "uint64",
|
||||
|
||||
Comment: `The maximum number of simultaneous data transfers from any single client
|
||||
for storage deals.
|
||||
Unset by default (0), and values higher than SimultaneousTransfersForStorage
|
||||
will have no effect; i.e. the total number of simultaneous data transfers
|
||||
across all storage clients is bound by SimultaneousTransfersForStorage
|
||||
regardless of this number.`,
|
||||
},
|
||||
{
|
||||
Name: "SimultaneousTransfersForRetrieval",
|
||||
Type: "uint64",
|
||||
|
||||
@@ -131,6 +131,13 @@ type DealmakingConfig struct {
|
||||
MaxStagingDealsBytes int64
|
||||
// The maximum number of parallel online data transfers for storage deals
|
||||
SimultaneousTransfersForStorage uint64
|
||||
// The maximum number of simultaneous data transfers from any single client
|
||||
// for storage deals.
|
||||
// Unset by default (0), and values higher than SimultaneousTransfersForStorage
|
||||
// will have no effect; i.e. the total number of simultaneous data transfers
|
||||
// across all storage clients is bound by SimultaneousTransfersForStorage
|
||||
// regardless of this number.
|
||||
SimultaneousTransfersForStoragePerClient uint64
|
||||
// The maximum number of parallel online data transfers for retrieval deals
|
||||
SimultaneousTransfersForRetrieval uint64
|
||||
// Minimum start epoch buffer to give time for sealing of sector with deal.
|
||||
|
||||
Reference in New Issue
Block a user