Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/action/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -162,6 +163,7 @@ class ChannelAction {
const stream = this._grpc.sendStreamCommand('openChannel', {
node_pubkey: new Buffer(pubkey, 'hex'),
local_funding_amount: amount,
private: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wohoo!

});
await new Promise((resolve, reject) => {
stream.on('data', () => this.update());
Expand Down
1 change: 1 addition & 0 deletions test/integration/action/action-integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down