mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-18 16:53:16 +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))
|
print(str(e))
|
||||||
if "failed to connect to all addresses" in str(e):
|
if "failed to connect to all addresses" in str(e):
|
||||||
return False, {
|
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):
|
elif "wallet locked" in str(e):
|
||||||
return False, {
|
return False, {
|
||||||
@ -1472,7 +1472,7 @@ class Logics:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
if "status = StatusCode.UNAVAILABLE" in str(e):
|
if "status = StatusCode.UNAVAILABLE" in str(e):
|
||||||
return False, {
|
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(
|
take_order.taker_bond = LNPayment.objects.create(
|
||||||
@ -1572,7 +1572,7 @@ class Logics:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
if "status = StatusCode.UNAVAILABLE" in str(e):
|
if "status = StatusCode.UNAVAILABLE" in str(e):
|
||||||
return False, {
|
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(
|
order.trade_escrow = LNPayment.objects.create(
|
||||||
|
@ -191,7 +191,7 @@ class OrderViewSchema:
|
|||||||
OpenApiExample(
|
OpenApiExample(
|
||||||
"When Robosats node is down",
|
"When Robosats node is down",
|
||||||
value={
|
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],
|
status_codes=[400],
|
||||||
),
|
),
|
||||||
@ -539,7 +539,7 @@ class InfoViewSchema:
|
|||||||
- 24h volume
|
- 24h volume
|
||||||
- all time volume
|
- all time volume
|
||||||
- Node info
|
- Node info
|
||||||
- lnd version
|
- node version
|
||||||
- node id
|
- node id
|
||||||
- node alias
|
- node alias
|
||||||
- network
|
- network
|
||||||
|
@ -162,7 +162,7 @@ paths:
|
|||||||
- 24h volume
|
- 24h volume
|
||||||
- all time volume
|
- all time volume
|
||||||
- Node info
|
- Node info
|
||||||
- lnd version
|
- node version
|
||||||
- node id
|
- node id
|
||||||
- node alias
|
- node alias
|
||||||
- network
|
- network
|
||||||
@ -419,7 +419,7 @@ paths:
|
|||||||
summary: When maker bond expires (as maker)
|
summary: When maker bond expires (as maker)
|
||||||
WhenRobosatsNodeIsDown:
|
WhenRobosatsNodeIsDown:
|
||||||
value:
|
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.
|
in the Telegram group to make sure the staff is aware.
|
||||||
summary: When Robosats node is down
|
summary: When Robosats node is down
|
||||||
description: ''
|
description: ''
|
||||||
|
Reference in New Issue
Block a user