mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-18 08:43:14 +00:00
Merge pull request #1969 from jerryfletcher21/lnd-node-error-message
change lnd down errors to general node errors
This commit is contained in:
@ -1327,7 +1327,7 @@ class Logics:
|
||||
print(str(e))
|
||||
if "failed to connect to all addresses" in str(e):
|
||||
return False, {
|
||||
"bad_request": "The Lightning Network Daemon (LND) is down. Write in the Telegram group to make sure the staff is aware."
|
||||
"bad_request": "The lightning node is down. Write in the Telegram group to make sure the staff is aware."
|
||||
}
|
||||
elif "wallet locked" in str(e):
|
||||
return False, {
|
||||
@ -1472,7 +1472,7 @@ class Logics:
|
||||
except Exception as e:
|
||||
if "status = StatusCode.UNAVAILABLE" in str(e):
|
||||
return False, {
|
||||
"bad_request": "The Lightning Network Daemon (LND) is down. Write in the Telegram group to make sure the staff is aware."
|
||||
"bad_request": "The lightning node is down. Write in the Telegram group to make sure the staff is aware."
|
||||
}
|
||||
|
||||
take_order.taker_bond = LNPayment.objects.create(
|
||||
@ -1572,7 +1572,7 @@ class Logics:
|
||||
except Exception as e:
|
||||
if "status = StatusCode.UNAVAILABLE" in str(e):
|
||||
return False, {
|
||||
"bad_request": "The Lightning Network Daemon (LND) is down. Write in the Telegram group to make sure the staff is aware."
|
||||
"bad_request": "The lightning node is down. Write in the Telegram group to make sure the staff is aware."
|
||||
}
|
||||
|
||||
order.trade_escrow = LNPayment.objects.create(
|
||||
|
@ -191,7 +191,7 @@ class OrderViewSchema:
|
||||
OpenApiExample(
|
||||
"When Robosats node is down",
|
||||
value={
|
||||
"bad_request": "The Lightning Network Daemon (LND) is down. Write in the Telegram group to make sure the staff is aware."
|
||||
"bad_request": "The lightning node is down. Write in the Telegram group to make sure the staff is aware."
|
||||
},
|
||||
status_codes=[400],
|
||||
),
|
||||
@ -539,7 +539,7 @@ class InfoViewSchema:
|
||||
- 24h volume
|
||||
- all time volume
|
||||
- Node info
|
||||
- lnd version
|
||||
- node version
|
||||
- node id
|
||||
- node alias
|
||||
- network
|
||||
|
@ -162,7 +162,7 @@ paths:
|
||||
- 24h volume
|
||||
- all time volume
|
||||
- Node info
|
||||
- lnd version
|
||||
- node version
|
||||
- node id
|
||||
- node alias
|
||||
- network
|
||||
@ -419,7 +419,7 @@ paths:
|
||||
summary: When maker bond expires (as maker)
|
||||
WhenRobosatsNodeIsDown:
|
||||
value:
|
||||
bad_request: The Lightning Network Daemon (LND) is down. Write
|
||||
bad_request: The lightning node is down. Write
|
||||
in the Telegram group to make sure the staff is aware.
|
||||
summary: When Robosats node is down
|
||||
description: ''
|
||||
|
Reference in New Issue
Block a user