introduce MaxStagingDealsGiB - reject new deals if our staging deals area is "full"

This commit is contained in:
Anton Evangelatov
2021-09-06 15:01:06 +02:00
parent 212400b635
commit c69d1db1eb
4 changed files with 30 additions and 6 deletions
+7
View File
@@ -251,6 +251,13 @@ message`,
Comment: `The maximum collateral that the provider will put up against a deal,
as a multiplier of the minimum collateral bound`,
},
{
Name: "MaxStagingDealsGiB",
Type: "int64",
Comment: `The maximum size of staging deals not yet passed to the sealing node,
that the markets service can accept`,
},
{
Name: "SimultaneousTransfers",
+3 -1
View File
@@ -126,7 +126,9 @@ type DealmakingConfig struct {
// The maximum collateral that the provider will put up against a deal,
// as a multiplier of the minimum collateral bound
MaxProviderCollateralMultiplier uint64
// The maximum size of staging deals not yet passed to the sealing node,
// that the markets service can accept
MaxStagingDealsGiB int64
// The maximum number of parallel online data transfers (storage+retrieval)
SimultaneousTransfers uint64