Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ln-service

Package Overview
Dependencies
Maintainers
1
Versions
517
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ln-service - npm Package Compare versions

Comparing version 56.6.0 to 56.7.0

5

CHANGELOG.md
# Versions
## 56.7.0
- `getPendingChannels`: Add `description` to return pending channel description
- `getPendingChannels`: Add `is_private` to show pending channel announcement
## 56.6.0

@@ -4,0 +9,0 @@

6

package.json

@@ -14,3 +14,3 @@ {

"invoices": "2.2.3",
"lightning": "9.6.0",
"lightning": "9.7.0",
"macaroon": "3.0.4",

@@ -33,3 +33,3 @@ "morgan": "1.10.0",

"ecpair": "2.1.0",
"ln-docker-daemons": "5.0.5",
"ln-docker-daemons": "5.0.6",
"p2tr": "1.3.3",

@@ -74,3 +74,3 @@ "portfinder": "1.0.32",

},
"version": "56.6.0"
"version": "56.7.0"
}

@@ -30,2 +30,3 @@ const {once} = require('events');

const count = 100;
const description = 'description';
const interval = 100;

@@ -65,7 +66,12 @@ const race = promises => Promise.race(promises);

const channels = [{capacity, partner_public_key: target.id}];
const channels = [{
capacity,
description,
is_private: true,
partner_public_key: target.id,
}];
// Propose a channel to target
const proposeToTarget = await asyncRetry({interval, times}, cbk => {
return asyncTimeout(openChannels, 1000 * 10)({
const proposeToTarget = await asyncRetry({interval: 1000, times}, cbk => {
return asyncTimeout(openChannels, 1000 * 3)({
channels,

@@ -101,6 +107,11 @@ lnd,

// Propose a channel to remote
const proposeToRemote = await asyncRetry({interval, times}, cbk => {
return asyncTimeout(openChannels, 1000 * 10)({
const proposeToRemote = await asyncRetry({interval: 1000, times}, cbk => {
return asyncTimeout(openChannels, 1000 * 3)({
lnd,
channels: [{capacity, partner_public_key: remote.id}],
channels: [{
capacity,
description,
is_private: true,
partner_public_key: remote.id,
}],
is_avoiding_broadcast: true,

@@ -128,2 +139,4 @@ },

await delay(1000);
const {transaction} = extractTransaction({ecp, psbt: signRemote.psbt});

@@ -133,5 +146,8 @@

const channel = await asyncRetry({interval, times}, async () => {
await generate({});
const channel = await asyncRetry({interval: 1000, times}, async () => {
const [channel] = (await getChannels({lnd})).channels;
// Exit early when the channel is created
if (!!channel) {

@@ -150,2 +166,8 @@ return channel;

// Description is not supported in LND 0.16.4 or before
if (!!pending.description) {
strictSame(pending.description, description, 'Got expected description');
strictSame(pending.is_private, true, 'Got pending private status');
}
const stuckTx = extractTransaction({ecp, psbt: signTarget.psbt});

@@ -152,0 +174,0 @@

@@ -110,3 +110,3 @@ const asyncRetry = require('async/retry');

// LND 0.16.3 and below do not support channel descriptions
// LND 0.16.4 and below do not support channel descriptions
if (!!openEvent.description) {

@@ -113,0 +113,0 @@ equal(openEvent.description, description, 'Got channel open description');

@@ -124,3 +124,2 @@ const asyncRetry = require('async/retry');

const gotControl = nodeUpdated.find(n => n.public_key === control.id);

@@ -127,0 +126,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc