Skip to content

Commit

Permalink
oops forgot to save folderStatus after padding.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbierens committed Feb 27, 2025
1 parent e862094 commit 9b432de
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Tools/AutoClient/App.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using AutoClient.Modes.FolderStore;
using CodexClient;
using CodexClient;
using Logging;
using WebUtils;

Expand Down
1 change: 0 additions & 1 deletion Tools/AutoClient/CodexWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public ContentId UploadFile(string filepath)

public IStoragePurchaseContract RequestStorage(ContentId cid)
{
app.Log.Debug("Requesting storage for " + cid.Id);
var result = Node.Marketplace.RequestStorage(new StoragePurchaseRequest(cid)
{
CollateralPerByte = app.Config.CollateralPerByte.TstWei(),
Expand Down
1 change: 1 addition & 0 deletions Tools/AutoClient/Modes/FolderStore/FolderSaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ private void ApplyPadding(string folderFile)
{
var required = Math.Max(1024, min - info.Length);
status.Padding = paddingMessage + GenerateRandomString(required);
statusFile.Save(status);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Tools/AutoClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private CodexWrapper CreateCodexWrapper(string endpoint)
port: port
);

var instance = CodexInstance.CreateFromApiEndpoint("AutoClient", address, EthAccountGenerator.GenerateNew());
var instance = CodexInstance.CreateFromApiEndpoint("[AutoClient]", address, EthAccountGenerator.GenerateNew());
var node = app.CodexNodeFactory.CreateCodexNode(instance);
return new CodexWrapper(app, node);
}
Expand Down

0 comments on commit 9b432de

Please sign in to comment.