From e8ce11e56498de2fc44285111b5c3e14c2a4335f Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Sat, 28 Oct 2023 18:52:18 -0400 Subject: [PATCH] Payment Request: Zaplocker warning for embedded nodes --- locales/en.json | 1 + views/PaymentRequest.tsx | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/locales/en.json b/locales/en.json index d37678c37..5a3390be3 100644 --- a/locales/en.json +++ b/locales/en.json @@ -560,6 +560,7 @@ "views.Send.lookup": "Look Up Payment Request", "views.Send.noOnchainBalance": "No on-chain balance available. Close a channel or receive an on-chain transaction first.", "views.Send.noLightningBalance": "No lightning balance available. Open a channel or receive a lightning payment first.", + "views.Send.zaplockerWarning": "It currently is not recommended to pay Zaplocker invoices with nodes that aren't online 24/7. Not coming online during the period between the payment completion and the final expiration may result in a force closed channel. Open ZEUS regularly to mitigate the issue. Proceed at your own risk.", "views.SendingLightning.sending": "Sending Transaction", "views.SendingLightning.success": "Transaction successfully sent", "views.SendingLightning.paymentHash": "Payment Hash", diff --git a/views/PaymentRequest.tsx b/views/PaymentRequest.tsx index c9f34961f..fe257e439 100644 --- a/views/PaymentRequest.tsx +++ b/views/PaymentRequest.tsx @@ -408,6 +408,21 @@ export default class PaymentRequest extends React.Component< {!loading && !loadingFeeEstimate && !!pay_req && ( <> + {isZaplocker && + implementation === 'embedded-lnd' && ( + + + + )} {noBalance && (