Merge branch 'main' of github.com:lnbits/lnbits-legend
This commit is contained in:
commit
521c821f6b
|
@ -97,7 +97,7 @@ class EclairWallet(Wallet):
|
||||||
f"{self.url}/payinvoice",
|
f"{self.url}/payinvoice",
|
||||||
headers=self.auth,
|
headers=self.auth,
|
||||||
data={"invoice": bolt11, "blocking": True},
|
data={"invoice": bolt11, "blocking": True},
|
||||||
timeout=40,
|
timeout=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
if "error" in r.json():
|
if "error" in r.json():
|
||||||
|
|
|
@ -88,7 +88,7 @@ class LNbitsWallet(Wallet):
|
||||||
url=f"{self.endpoint}/api/v1/payments",
|
url=f"{self.endpoint}/api/v1/payments",
|
||||||
headers=self.key,
|
headers=self.key,
|
||||||
json={"out": True, "bolt11": bolt11},
|
json={"out": True, "bolt11": bolt11},
|
||||||
timeout=100,
|
timeout=None,
|
||||||
)
|
)
|
||||||
ok, checking_id, fee_msat, error_message = not r.is_error, None, 0, None
|
ok, checking_id, fee_msat, error_message = not r.is_error, None, 0, None
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ class LndRestWallet(Wallet):
|
||||||
url=f"{self.endpoint}/v1/channels/transactions",
|
url=f"{self.endpoint}/v1/channels/transactions",
|
||||||
headers=self.auth,
|
headers=self.auth,
|
||||||
json={"payment_request": bolt11, "fee_limit": lnrpcFeeLimit},
|
json={"payment_request": bolt11, "fee_limit": lnrpcFeeLimit},
|
||||||
timeout=180,
|
timeout=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
if r.is_error or r.json().get("payment_error"):
|
if r.is_error or r.json().get("payment_error"):
|
||||||
|
|
|
@ -84,7 +84,7 @@ class LNPayWallet(Wallet):
|
||||||
f"{self.endpoint}/wallet/{self.wallet_key}/withdraw",
|
f"{self.endpoint}/wallet/{self.wallet_key}/withdraw",
|
||||||
headers=self.auth,
|
headers=self.auth,
|
||||||
json={"payment_request": bolt11},
|
json={"payment_request": bolt11},
|
||||||
timeout=180,
|
timeout=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -82,7 +82,7 @@ class LntxbotWallet(Wallet):
|
||||||
f"{self.endpoint}/payinvoice",
|
f"{self.endpoint}/payinvoice",
|
||||||
headers=self.auth,
|
headers=self.auth,
|
||||||
json={"invoice": bolt11},
|
json={"invoice": bolt11},
|
||||||
timeout=100,
|
timeout=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
if "error" in r.json():
|
if "error" in r.json():
|
||||||
|
|
|
@ -85,7 +85,7 @@ class OpenNodeWallet(Wallet):
|
||||||
f"{self.endpoint}/v2/withdrawals",
|
f"{self.endpoint}/v2/withdrawals",
|
||||||
headers=self.auth,
|
headers=self.auth,
|
||||||
json={"type": "ln", "address": bolt11},
|
json={"type": "ln", "address": bolt11},
|
||||||
timeout=180,
|
timeout=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
if r.is_error:
|
if r.is_error:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user