This repository was archived by the owner on Feb 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ class InvoiceAction {
5252 * which can be rendered in a QR code for scanning. After the values
5353 * are set on the store the user is navigated to the invoice QR view
5454 * which displays the QR for consumption by the payer.
55+ * The invoice is set private since it should contain a routing hint
56+ * for private channels.
5557 * This action can be called from a view event handler as does all
5658 * the necessary error handling and notification display.
5759 * @return {Promise<undefined> }
@@ -62,6 +64,7 @@ class InvoiceAction {
6264 const response = await this . _grpc . sendCommand ( 'addInvoice' , {
6365 value : toSatoshis ( invoice . amount , settings ) ,
6466 memo : invoice . note ,
67+ private : true ,
6568 } ) ;
6669 invoice . encoded = response . payment_request ;
6770 invoice . uri = `${ PREFIX_URI } ${ invoice . encoded } ` ;
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ describe('Action Invoice Unit Tests', () => {
6060 . withArgs ( 'addInvoice' , {
6161 value : 1000 ,
6262 memo : 'foo' ,
63+ private : true ,
6364 } )
6465 . resolves ( {
6566 payment_request : 'some-request' ,
You can’t perform that action at this time.
0 commit comments