mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Revert "Apply suggestions from code review"
This reverts commit 48b2e682bf.
This commit is contained in:
@@ -53,10 +53,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<LightningSupportedPaymentMethod>()
|
.OfType<DerivationSchemeSettings>()
|
||||||
.Select(paymentMethod =>
|
.Select(strategy =>
|
||||||
new LightningNetworkPaymentMethodData(paymentMethod.PaymentId.CryptoCode,
|
new LightningNetworkPaymentMethodData(strategy.PaymentId.CryptoCode,
|
||||||
paymentMethod.GetLightningUrl().ToString(), !excludedPaymentMethods.Match(paymentMethod.PaymentId)))
|
strategy.AccountDerivation.ToString(), !excludedPaymentMethods.Match(strategy.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": "type=clightning;server=..."
|
"example": "xpub..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user