Added maxfee paramenter to Spark pay method (working on c-lightning 0.11.0.1) (#641)

This commit is contained in:
mrbitcoiner
2022-06-02 12:11:48 +02:00
committed by GitHub
parent 145b69b259
commit b03da7b9c2
+4 -1
View File
@@ -109,7 +109,10 @@ class SparkWallet(Wallet):
async def pay_invoice(self, bolt11: str, fee_limit_msat: int) -> PaymentResponse:
try:
r = await self.pay(bolt11)
r = await self.pay(
bolt11=bolt11,
maxfee=fee_limit_msat,
)
except (SparkError, UnknownError) as exc:
listpays = await self.listpays(bolt11)
if listpays: