Small variable name fixes

This commit is contained in:
Reckless_Satoshi 2023-04-22 12:41:17 -07:00
parent ac24c310c5
commit df7f034667
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -521,11 +521,11 @@ class LNNode:
)
order.save()
print(
f"Order: {order.id} FAILED. Hash: {hash} Reason: {LNNode.payment_failure_context[response.failure_reason]}"
f"Order: {order.id} FAILED. Hash: {hash} Reason: {cls.payment_failure_context[response.failure_reason]}"
)
return {
"succeded": False,
"context": f"payment failure reason: {LNNode.payment_failure_context[response.failure_reason]}",
"context": f"payment failure reason: {cls.payment_failure_context[response.failure_reason]}",
}
if response.status == 2: # Status 2 'SUCCEEDED'