Revert "Apply suggestions from code review"

This reverts commit 48b2e682bf.
This commit is contained in:
nicolas.dorier 2021-01-17 21:39:20 +09:00
parent 95c50dcc0d
commit 07de4af581
No known key found for this signature in database
GPG key ID: 6618763EF09186FE
2 changed files with 5 additions and 5 deletions

View file

@ -53,10 +53,10 @@ namespace BTCPayServer.Controllers.GreenField
var excludedPaymentMethods = blob.GetExcludedPaymentMethods();
return Ok(Store.GetSupportedPaymentMethods(_btcPayNetworkProvider)
.Where((method) => method.PaymentId.PaymentType == PaymentTypes.LightningLike)
.OfType<LightningSupportedPaymentMethod>()
.Select(paymentMethod =>
new LightningNetworkPaymentMethodData(paymentMethod.PaymentId.CryptoCode,
paymentMethod.GetLightningUrl().ToString(), !excludedPaymentMethods.Match(paymentMethod.PaymentId)))
.OfType<DerivationSchemeSettings>()
.Select(strategy =>
new LightningNetworkPaymentMethodData(strategy.PaymentId.CryptoCode,
strategy.AccountDerivation.ToString(), !excludedPaymentMethods.Match(strategy.PaymentId)))
.Where((result) => !enabledOnly || result.Enabled)
.ToList()
);

View file

@ -320,7 +320,7 @@
"connectionString": {
"type": "string",
"description": "The lightning connection string",
"example": "type=clightning;server=..."
"example": "xpub..."
}
}
}