Merge pull request #1969 from jerryfletcher21/lnd-node-error-message

change lnd down errors to general node errors
This commit is contained in:
KoalaSat
2025-05-28 21:35:57 +00:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

View File

@ -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(

View File

@ -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

View File

@ -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: ''