mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-07 07:53:05 +00:00
enables marketplace access for codex node used in autoclient
This commit is contained in:
parent
92a5a1e361
commit
804423ec81
@ -37,7 +37,7 @@ namespace CodexClient
|
||||
public EthAccount? EthAccount { get; }
|
||||
public Address? MetricsEndpoint { get; }
|
||||
|
||||
public static ICodexInstance CreateFromApiEndpoint(string name, Address apiEndpoint)
|
||||
public static ICodexInstance CreateFromApiEndpoint(string name, Address apiEndpoint, EthAccount? ethAccount = null)
|
||||
{
|
||||
return new CodexInstance(
|
||||
name,
|
||||
@ -46,7 +46,7 @@ namespace CodexClient
|
||||
discoveryEndpoint: Address.Empty(),
|
||||
apiEndpoint: apiEndpoint,
|
||||
listenEndpoint: Address.Empty(),
|
||||
ethAccount: null,
|
||||
ethAccount: ethAccount,
|
||||
metricsEndpoint: null
|
||||
);
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ using AutoClient;
|
||||
using AutoClient.Modes;
|
||||
using AutoClient.Modes.FolderStore;
|
||||
using CodexClient;
|
||||
using GethPlugin;
|
||||
using Utils;
|
||||
|
||||
public class Program
|
||||
@ -100,7 +101,7 @@ public class Program
|
||||
port: port
|
||||
);
|
||||
|
||||
var instance = CodexInstance.CreateFromApiEndpoint("ac", address);
|
||||
var instance = CodexInstance.CreateFromApiEndpoint("ac", address, EthAccountGenerator.GenerateNew());
|
||||
var node = app.CodexNodeFactory.CreateCodexNode(instance);
|
||||
return new CodexWrapper(app, node);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user