From 2762224f0feb59bbfe2888050d25a3f06eaf4c90 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 17 Jan 2018 19:39:15 +0900 Subject: [PATCH] Fix parsing bug zpub LTC mainnet --- BTCPayServer/BTCPayServer.csproj | 2 +- BTCPayServer/Controllers/StoresController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 052d71d12..4462ab7ad 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.0 - 1.0.1.1 + 1.0.1.2 diff --git a/BTCPayServer/Controllers/StoresController.cs b/BTCPayServer/Controllers/StoresController.cs index 3730b9993..f2ae40e31 100644 --- a/BTCPayServer/Controllers/StoresController.cs +++ b/BTCPayServer/Controllers/StoresController.cs @@ -350,7 +350,7 @@ namespace BTCPayServer.Controllers var prefix = Utils.ToUInt32(data, false); if (!electrumMapping.TryGetValue(prefix, out string[] labels)) throw new FormatException("!electrumMapping.TryGetValue(prefix, out string[] labels)"); - var standardPrefix = Utils.ToBytes(network.NBitcoinNetwork == Network.Main ? 0x0488b21eU : 0x043587cf, false); + var standardPrefix = Utils.ToBytes(network.NBXplorerNetwork.DefaultSettings.ChainType == NBXplorer.ChainType.Main ? 0x0488b21eU : 0x043587cf, false); for (int i = 0; i < 4; i++) data[i] = standardPrefix[i];