From 05223c1a5f8e6281bb9630910af6239a842ab76c Mon Sep 17 00:00:00 2001 From: Andrew Camilleri Date: Tue, 14 Jan 2020 15:10:58 +0100 Subject: [PATCH] Bump NBX (#1277) --- BTCPayServer.Common/BTCPayServer.Common.csproj | 2 +- BTCPayServer/DerivationSchemeParser.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BTCPayServer.Common/BTCPayServer.Common.csproj b/BTCPayServer.Common/BTCPayServer.Common.csproj index a2a325513..94514cc10 100644 --- a/BTCPayServer.Common/BTCPayServer.Common.csproj +++ b/BTCPayServer.Common/BTCPayServer.Common.csproj @@ -4,6 +4,6 @@ - + diff --git a/BTCPayServer/DerivationSchemeParser.cs b/BTCPayServer/DerivationSchemeParser.cs index ca2bc954b..f6ca91338 100644 --- a/BTCPayServer/DerivationSchemeParser.cs +++ b/BTCPayServer/DerivationSchemeParser.cs @@ -48,9 +48,9 @@ namespace BTCPayServer throw new FormatException(); } if (type == DerivationType.Segwit) - return new DirectDerivationStrategy(extPubKey) { Segwit = true }; + return new DirectDerivationStrategy(extPubKey, true); if (type == DerivationType.Legacy) - return new DirectDerivationStrategy(extPubKey) { Segwit = false }; + return new DirectDerivationStrategy(extPubKey, false); if (type == DerivationType.SegwitP2SH) return BtcPayNetwork.NBXplorerNetwork.DerivationStrategyFactory.Parse(extPubKey.ToString() + "-[p2sh]"); throw new FormatException();