diff --git a/BTCPayServer.Tests/docker-compose.yml b/BTCPayServer.Tests/docker-compose.yml
index 6339bd26d..32f28ca96 100644
--- a/BTCPayServer.Tests/docker-compose.yml
+++ b/BTCPayServer.Tests/docker-compose.yml
@@ -37,7 +37,7 @@ services:
- postgres
nbxplorer:
- image: nicolasdorier/nbxplorer:1.0.0.52
+ image: nicolasdorier/nbxplorer:1.0.0.53
ports:
- "32838:32838"
expose:
diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj
index 0efb22a25..992aa5e0a 100644
--- a/BTCPayServer/BTCPayServer.csproj
+++ b/BTCPayServer/BTCPayServer.csproj
@@ -2,7 +2,7 @@
Exe
netcoreapp2.0
- 1.0.0.67
+ 1.0.0.68
diff --git a/BTCPayServer/Configuration/DefaultConfiguration.cs b/BTCPayServer/Configuration/DefaultConfiguration.cs
index e5e89ff36..abe41a408 100644
--- a/BTCPayServer/Configuration/DefaultConfiguration.cs
+++ b/BTCPayServer/Configuration/DefaultConfiguration.cs
@@ -55,7 +55,15 @@ namespace BTCPayServer.Configuration
if (dataDir == null)
return network.DefaultConfigurationFile;
var fileName = Path.GetFileName(network.DefaultConfigurationFile);
- return Path.Combine(dataDir, fileName);
+ var chainDir = Path.GetFileName(Path.GetDirectoryName(network.DefaultConfigurationFile));
+ chainDir = Path.Combine(dataDir, chainDir);
+ try
+ {
+ if (!Directory.Exists(chainDir))
+ Directory.CreateDirectory(chainDir);
+ }
+ catch { }
+ return Path.Combine(chainDir, fileName);
}
public static ChainType GetChainType(IConfiguration conf)