mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-02-23 09:34:22 +01:00
Fix false mpp payment handling of unsupported backends (#547)
* fix mpp spec and backend support check * refactor validation in ledger * remove weird error * fix mpp melt model
This commit is contained in:
@@ -376,8 +376,8 @@ class LndRestWallet(LightningBackend):
|
||||
) -> PaymentQuoteResponse:
|
||||
# get amount from melt_quote or from bolt11
|
||||
amount = (
|
||||
Amount(Unit[melt_quote.unit], melt_quote.amount)
|
||||
if melt_quote.amount
|
||||
Amount(Unit[melt_quote.unit], melt_quote.mpp_amount)
|
||||
if melt_quote.is_mpp
|
||||
else None
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user