Wallets: increase timeouts (#787)

* increase pay timeouts to infinite
This commit is contained in:
calle 2022-07-27 15:29:44 +02:00 committed by GitHub
parent ea76995467
commit 0c5cb8cb9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -97,7 +97,7 @@ class EclairWallet(Wallet):
f"{self.url}/payinvoice",
headers=self.auth,
data={"invoice": bolt11, "blocking": True},
timeout=40,
timeout=None,
)
if "error" in r.json():

View File

@ -88,7 +88,7 @@ class LNbitsWallet(Wallet):
url=f"{self.endpoint}/api/v1/payments",
headers=self.key,
json={"out": True, "bolt11": bolt11},
timeout=100,
timeout=None,
)
ok, checking_id, fee_msat, error_message = not r.is_error, None, 0, None

View File

@ -111,7 +111,7 @@ class LndRestWallet(Wallet):
url=f"{self.endpoint}/v1/channels/transactions",
headers=self.auth,
json={"payment_request": bolt11, "fee_limit": lnrpcFeeLimit},
timeout=180,
timeout=None,
)
if r.is_error or r.json().get("payment_error"):

View File

@ -84,7 +84,7 @@ class LNPayWallet(Wallet):
f"{self.endpoint}/wallet/{self.wallet_key}/withdraw",
headers=self.auth,
json={"payment_request": bolt11},
timeout=180,
timeout=None,
)
try:

View File

@ -82,7 +82,7 @@ class LntxbotWallet(Wallet):
f"{self.endpoint}/payinvoice",
headers=self.auth,
json={"invoice": bolt11},
timeout=100,
timeout=None,
)
if "error" in r.json():

View File

@ -85,7 +85,7 @@ class OpenNodeWallet(Wallet):
f"{self.endpoint}/v2/withdrawals",
headers=self.auth,
json={"type": "ln", "address": bolt11},
timeout=180,
timeout=None,
)
if r.is_error: