This commit is contained in:
Andrew Camilleri 2020-01-14 15:10:58 +01:00 committed by Nicolas Dorier
parent 9aa0603d87
commit 05223c1a5f
2 changed files with 3 additions and 3 deletions

View File

@ -4,6 +4,6 @@
<ItemGroup> <ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" /> <FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="NBXplorer.Client" Version="3.0.1" /> <PackageReference Include="NBXplorer.Client" Version="3.0.2" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -48,9 +48,9 @@ namespace BTCPayServer
throw new FormatException(); throw new FormatException();
} }
if (type == DerivationType.Segwit) if (type == DerivationType.Segwit)
return new DirectDerivationStrategy(extPubKey) { Segwit = true }; return new DirectDerivationStrategy(extPubKey, true);
if (type == DerivationType.Legacy) if (type == DerivationType.Legacy)
return new DirectDerivationStrategy(extPubKey) { Segwit = false }; return new DirectDerivationStrategy(extPubKey, false);
if (type == DerivationType.SegwitP2SH) if (type == DerivationType.SegwitP2SH)
return BtcPayNetwork.NBXplorerNetwork.DerivationStrategyFactory.Parse(extPubKey.ToString() + "-[p2sh]"); return BtcPayNetwork.NBXplorerNetwork.DerivationStrategyFactory.Parse(extPubKey.ToString() + "-[p2sh]");
throw new FormatException(); throw new FormatException();