diff --git a/src/action/channel.js b/src/action/channel.js index 5beaf3b1c..1eeae0064 100644 --- a/src/action/channel.js +++ b/src/action/channel.js @@ -61,6 +61,7 @@ class ChannelAction { remoteBalance: parseSat(channel.remote_balance), channelPoint: channel.channel_point, active: channel.active, + private: channel.private, status: 'open', })); } catch (err) { @@ -162,6 +163,7 @@ class ChannelAction { const stream = this._grpc.sendStreamCommand('openChannel', { node_pubkey: new Buffer(pubkey, 'hex'), local_funding_amount: amount, + private: true, }); await new Promise((resolve, reject) => { stream.on('data', () => this.update()); diff --git a/test/integration/action/action-integration.spec.js b/test/integration/action/action-integration.spec.js index 5a04ad794..825f47083 100644 --- a/test/integration/action/action-integration.spec.js +++ b/test/integration/action/action-integration.spec.js @@ -400,6 +400,7 @@ describe('Action Integration Tests', function() { while (!store1.channels.length) await nap(100); expect(store1.computedChannels.length, 'to be', 1); expect(store1.computedChannels[0].status, 'to be', 'open'); + expect(store1.computedChannels[0].private, 'to be', true); }); it('should list waiting-close after force closing', async () => {