BPU Prep Work Part2 (#1340)

* BPU Prep Work Part2

* Adjust tests to use the hot wallet when registering deriv scheme
* Add amount to payment data view for onchain payments
* Make zone limits higher when in dev mode (for tests in next PR)
* Make IPaymentMethodDetails serialize/deserialize through payment type using the network
* Allow named settings through settings repo
* Refactor some extensions for next PR

* pr changes

* use json convert for now
This commit is contained in:
Andrew Camilleri
2020-02-19 09:35:23 +01:00
committed by GitHub
parent f2aab4cf03
commit d31bff7070
15 changed files with 98 additions and 40 deletions

View File

@@ -145,9 +145,7 @@ namespace BTCPayServer.Configuration
}
public bool? IsOnion()
{
if (this.Server == null || !this.Server.IsAbsoluteUri)
return null;
return this.Server.DnsSafeHost.EndsWith(".onion", StringComparison.OrdinalIgnoreCase);
return Server?.IsOnion();
}
public static bool TryParse(string str, out ExternalConnectionString result, out string error)
{