Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit de3ac50

Browse files
authored
Merge pull request #471 from lightninglabs/dont-advertise-chans
Dont advertise chans
2 parents 04a4e7f + df1faf4 commit de3ac50

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/action/channel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class ChannelAction {
6161
remoteBalance: parseSat(channel.remote_balance),
6262
channelPoint: channel.channel_point,
6363
active: channel.active,
64+
private: channel.private,
6465
status: 'open',
6566
}));
6667
} catch (err) {
@@ -162,6 +163,7 @@ class ChannelAction {
162163
const stream = this._grpc.sendStreamCommand('openChannel', {
163164
node_pubkey: new Buffer(pubkey, 'hex'),
164165
local_funding_amount: amount,
166+
private: true,
165167
});
166168
await new Promise((resolve, reject) => {
167169
stream.on('data', () => this.update());

test/integration/action/action-integration.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ describe('Action Integration Tests', function() {
400400
while (!store1.channels.length) await nap(100);
401401
expect(store1.computedChannels.length, 'to be', 1);
402402
expect(store1.computedChannels[0].status, 'to be', 'open');
403+
expect(store1.computedChannels[0].private, 'to be', true);
403404
});
404405

405406
it('should list waiting-close after force closing', async () => {

0 commit comments

Comments
 (0)