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

@@ -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();