ln-service
Advanced tools
Comparing version 56.6.0 to 56.7.0
# 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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
783953
13371
7555
+ Added@grpc/grpc-js@1.8.16(transitive)
+ Addedlightning@9.7.0(transitive)
+ Addedtype-fest@3.12.0(transitive)
- Removed@grpc/grpc-js@1.8.15(transitive)
- Removedlightning@9.6.0(transitive)
- Removedtype-fest@3.11.1(transitive)
Updatedlightning@9.7.0