Skip to content

Commit

Permalink
Payment Request: Zaplocker warning for embedded nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Oct 28, 2023
1 parent 69e7e1f commit e8ce11e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
15 changes: 15 additions & 0 deletions views/PaymentRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,21 @@ export default class PaymentRequest extends React.Component<
{!loading && !loadingFeeEstimate && !!pay_req && (
<View style={styles.content}>
<>
{isZaplocker &&
implementation === 'embedded-lnd' && (
<View
style={{
paddingTop: 10,
paddingBottom: 10
}}
>
<WarningMessage
message={localeString(
'views.Send.zaplockerWarning'
)}
/>
</View>
)}
{noBalance && (
<View
style={{
Expand Down

0 comments on commit e8ce11e

Please sign in to comment.