ln-service 56.2.0 → 56.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Versions
2
2
 
3
+ ## 56.3.0
4
+
5
+ - `subscribeToPastPayment`, `subscribeToPayViaDetails`,
6
+ `subscribeToPayViaRequest`, `subscribeToPayments`: Add `id` for `failed`
7
+ payment hash
8
+
3
9
  ## 56.2.0
4
10
 
5
11
  - `getChannels`: Add support for `type` to show channel type
package/README.md CHANGED
@@ -5809,6 +5809,7 @@ Requires `offchain:read` permission
5809
5809
 
5810
5810
  @event 'failed'
5811
5811
  {
5812
+ id: <Payment Hash Hex String>
5812
5813
  is_insufficient_balance: <Failed Due To Lack of Balance Bool>
5813
5814
  is_invalid_payment: <Failed Due to Payment Rejected At Destination Bool>
5814
5815
  is_pathfinding_timeout: <Failed Due to Pathfinding Timeout Bool>
@@ -5993,6 +5994,7 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
5993
5994
 
5994
5995
  @event 'failed'
5995
5996
  {
5997
+ id: <Payment Hash Hex String>
5996
5998
  is_insufficient_balance: <Failed Due To Lack of Balance Bool>
5997
5999
  is_invalid_payment: <Failed Due to Invalid Payment Bool>
5998
6000
  is_pathfinding_timeout: <Failed Due to Pathfinding Timeout Bool>
@@ -6147,6 +6149,7 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
6147
6149
 
6148
6150
  @event 'failed'
6149
6151
  {
6152
+ id: <Payment Hash Hex String>
6150
6153
  is_insufficient_balance: <Failed Due To Lack of Balance Bool>
6151
6154
  is_invalid_payment: <Failed Due to Invalid Payment Bool>
6152
6155
  is_pathfinding_timeout: <Failed Due to Pathfinding Timeout Bool>
@@ -6480,6 +6483,7 @@ Note: Method not supported on LND 0.15.5 and below
6480
6483
 
6481
6484
  @event 'failed'
6482
6485
  {
6486
+ id: <Payment Hash Hex String>
6483
6487
  is_insufficient_balance: <Failed Due To Lack of Balance Bool>
6484
6488
  is_invalid_payment: <Failed Due to Payment Rejected At Destination Bool>
6485
6489
  is_pathfinding_timeout: <Failed Due to Pathfinding Timeout Bool>
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "cors": "2.8.5",
12
12
  "express": "4.18.2",
13
13
  "invoices": "2.2.3",
14
- "lightning": "9.2.1",
14
+ "lightning": "9.3.0",
15
15
  "macaroon": "3.0.4",
16
16
  "morgan": "1.10.0",
17
17
  "ws": "8.13.0"
@@ -67,5 +67,5 @@
67
67
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
68
68
  "test": "echo $DOCKER_LND_VERSION && tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 200 test/autopilotrpc-integration/*.js test/chainrpc-integration/*.js test/integration/*.js test/invoicesrpc-integration/*.js test/peersrpc-integration/*.js test/routerrpc-integration/*.js test/signerrpc-integration/*.js test/tower_clientrpc-integration/*.js test/tower_serverrpc-integration/*.js test/walletrpc-integration/*.js"
69
69
  },
70
- "version": "56.2.0"
70
+ "version": "56.3.0"
71
71
  }
@@ -30,7 +30,7 @@ const interval = 100;
30
30
  const race = promises => Promise.race(promises);
31
31
  const size = 3;
32
32
  const timeout = 1000 * 20;
33
- const times = 1000;
33
+ const times = 2000;
34
34
 
35
35
  // Forfeiting a pending channel should remove the pending channel
36
36
  test(`Forfeit pending channel`, async ({end, equal, strictSame}) => {
@@ -112,6 +112,7 @@ test('Get failed payments', async ({end, equal, strictSame}) => {
112
112
  gotFailed,
113
113
  {
114
114
  failed: {
115
+ id: payment.id,
115
116
  is_insufficient_balance: false,
116
117
  is_invalid_payment: false,
117
118
  is_pathfinding_timeout: false,