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 07:11:48 -03:00 committed by GitHub
parent 145b69b259
commit b03da7b9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: