Make appdata and home the datafolder
MODIFY
HiddenWallet.Daemon/Program.cs
HiddenWallet.Daemon/Program.cs
@@ -19,14 +19,14 @@ namespace HiddenWallet.Daemon
public static async Task Main(string[] args)
#pragma warning restore IDE1006 // Naming Styles
{
- var configFilePath = "Config.json";
+ var configFilePath = Path.Combine(FullSpvWallet.Global.DataDir, "Config.json");
if(File.Exists(configFilePath))
{
Global.Config = await Config.CreateFromFileAsync(configFilePath, CancellationToken.None);
}
else
{
- Global.Config = new Config(Path.Combine("Wallets", "Wallet.json"), Network.Main, false);
+ Global.Config = new Config(Path.Combine(FullSpvWallet.Global.DataDir, "Wallets", "Wallet.json"), Network.Main, false);
await Global.Config.ToFileAsync(configFilePath, CancellationToken.None);
Console.WriteLine($"Config file did not exist. Created at path: {configFilePath}");
}

MODIFY
HiddenWallet.FullSpvWallet/WalletJob.cs
HiddenWallet.FullSpvWallet/WalletJob.cs
@@ -125,7 +125,7 @@ namespace HiddenWallet.FullSpv
private NodeConnectionParameters _connectionParameters;
public NodesGroup Nodes { get; private set; }
- private const string WorkFolderPath = "FullBlockSpvData";
+ private string WorkFolderPath => Path.Combine(FullSpvWallet.Global.DataDir, "FullBlockSpvData");
private string _addressManagerFilePath => Path.Combine(WorkFolderPath, $"AddressManager{CurrentNetwork}.dat");
private string _headerChainFilePath => Path.Combine(WorkFolderPath, $"HeaderChain{CurrentNetwork}.dat");
private string _trackerFolderPath => Path.Combine(WorkFolderPath, Safe.UniqueId);

Make appdata and home the datafolder