mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-08 00:13:08 +00:00
Fixes marketplace api mismatch
This commit is contained in:
parent
3cd989c04a
commit
3af71b1f66
@ -61,7 +61,7 @@ namespace CodexClient
|
||||
public string SlotSize { get; set; } = string.Empty;
|
||||
public string Duration { get; set; } = string.Empty;
|
||||
public string ProofProbability { get; set; } = string.Empty;
|
||||
public string Reward { get; set; } = string.Empty;
|
||||
public string PricePerBytePerSecond { get; set; } = string.Empty;
|
||||
public int MaxSlotLoss { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@ -26,12 +26,12 @@ namespace AutoClient
|
||||
app.Log.Debug("Requesting storage for " + cid.Id);
|
||||
var result = Node.Marketplace.RequestStorage(new StoragePurchaseRequest(cid)
|
||||
{
|
||||
CollateralPerByte = app.Config.CollateralPerByte.Tst(),
|
||||
CollateralPerByte = app.Config.CollateralPerByte.TstWei(),
|
||||
Duration = TimeSpan.FromMinutes(app.Config.ContractDurationMinutes),
|
||||
Expiry = TimeSpan.FromMinutes(app.Config.ContractExpiryMinutes),
|
||||
MinRequiredNumberOfNodes = Convert.ToUInt32(app.Config.NumHosts),
|
||||
NodeFailureTolerance = Convert.ToUInt32(app.Config.HostTolerance),
|
||||
PricePerBytePerSecond = app.Config.PricePerBytePerSecond.Tst(),
|
||||
PricePerBytePerSecond = app.Config.PricePerBytePerSecond.TstWei(),
|
||||
ProofProbability = 15
|
||||
});
|
||||
return result;
|
||||
|
||||
@ -101,7 +101,7 @@ public class Program
|
||||
port: port
|
||||
);
|
||||
|
||||
var instance = CodexInstance.CreateFromApiEndpoint("ac", address, EthAccountGenerator.GenerateNew());
|
||||
var instance = CodexInstance.CreateFromApiEndpoint("AutoClient", address, EthAccountGenerator.GenerateNew());
|
||||
var node = app.CodexNodeFactory.CreateCodexNode(instance);
|
||||
return new CodexWrapper(app, node);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user