Added maxfee paramenter to Spark pay method (working on c-lightning 0.11.0.1) (#641)
This commit is contained in:
@@ -109,7 +109,10 @@ class SparkWallet(Wallet):
|
|||||||
|
|
||||||
async def pay_invoice(self, bolt11: str, fee_limit_msat: int) -> PaymentResponse:
|
async def pay_invoice(self, bolt11: str, fee_limit_msat: int) -> PaymentResponse:
|
||||||
try:
|
try:
|
||||||
r = await self.pay(bolt11)
|
r = await self.pay(
|
||||||
|
bolt11=bolt11,
|
||||||
|
maxfee=fee_limit_msat,
|
||||||
|
)
|
||||||
except (SparkError, UnknownError) as exc:
|
except (SparkError, UnknownError) as exc:
|
||||||
listpays = await self.listpays(bolt11)
|
listpays = await self.listpays(bolt11)
|
||||||
if listpays:
|
if listpays:
|
||||||
|
|||||||
Reference in New Issue
Block a user