mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Apply suggestions from code review
Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
This commit is contained in:
@@ -56,10 +56,10 @@ namespace BTCPayServer.Controllers.GreenField
|
|||||||
var excludedPaymentMethods = blob.GetExcludedPaymentMethods();
|
var excludedPaymentMethods = blob.GetExcludedPaymentMethods();
|
||||||
return Ok(Store.GetSupportedPaymentMethods(_btcPayNetworkProvider)
|
return Ok(Store.GetSupportedPaymentMethods(_btcPayNetworkProvider)
|
||||||
.Where((method) => method.PaymentId.PaymentType == PaymentTypes.LightningLike)
|
.Where((method) => method.PaymentId.PaymentType == PaymentTypes.LightningLike)
|
||||||
.OfType<DerivationSchemeSettings>()
|
.OfType<LightningSupportedPaymentMethod>()
|
||||||
.Select(strategy =>
|
.Select(paymentMethod =>
|
||||||
new LightningNetworkPaymentMethodData(strategy.PaymentId.CryptoCode,
|
new LightningNetworkPaymentMethodData(paymentMethod.PaymentId.CryptoCode,
|
||||||
strategy.AccountDerivation.ToString(), !excludedPaymentMethods.Match(strategy.PaymentId)))
|
paymentMethod.GetLightningUrl().ToString(), !excludedPaymentMethods.Match(paymentMethod.PaymentId)))
|
||||||
.Where((result) => !enabledOnly || result.Enabled)
|
.Where((result) => !enabledOnly || result.Enabled)
|
||||||
.ToList()
|
.ToList()
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -320,7 +320,7 @@
|
|||||||
"connectionString": {
|
"connectionString": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The lightning connection string",
|
"description": "The lightning connection string",
|
||||||
"example": "xpub..."
|
"example": "type=clightning;server=..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user