ln-service 54.7.0 → 54.8.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,9 @@
1
1
  # Versions
2
2
 
3
+ ## 54.8.0
4
+
5
+ - `subscribeToRpcRequests`: add `max_tokens_per_vbyte` to RPC close requests
6
+
3
7
  ## 54.7.0
4
8
 
5
9
  - `getBlock`: add `height` to allow fetching a raw block at a specified height
package/README.md CHANGED
@@ -6742,6 +6742,7 @@ This method is not supported in LND 0.13.4 and below
6742
6742
  request: {
6743
6743
  [address]: <Request Sending Local Channel Funds To Address String>
6744
6744
  [is_force_close]: <Is Force Close Bool>
6745
+ [max_tokens_per_vbyte]: <Max Tokens Per VByte Number>
6745
6746
  [target_confirmations]: <Confirmation Target Number>
6746
6747
  [tokens_per_vbyte]: <Tokens Per Virtual Byte Number>
6747
6748
  transaction_id: <Transaction Id Hex String>
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.2",
14
- "lightning": "6.7.1",
14
+ "lightning": "6.8.0",
15
15
  "macaroon": "3.0.4",
16
16
  "morgan": "1.10.0",
17
17
  "ws": "8.11.0"
@@ -64,5 +64,5 @@
64
64
  "integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
65
65
  "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"
66
66
  },
67
- "version": "54.7.0"
67
+ "version": "54.8.0"
68
68
  }
@@ -179,6 +179,8 @@ test(`Subscribe to RPC requests`, async ({end, equal, fail, strictSame}) => {
179
179
  subscription.on('close_channel_request', async intercepted => {
180
180
  // Stop all open channel requests that close out to an address
181
181
  if (!!intercepted.request.address) {
182
+ strictSame(intercepted.request.max_tokens_per_vbyte, 10, 'Max fee');
183
+
182
184
  await intercepted.reject({message: 'message'});
183
185
  } else {
184
186
  await intercepted.accept({});
@@ -191,6 +193,7 @@ test(`Subscribe to RPC requests`, async ({end, equal, fail, strictSame}) => {
191
193
  await closeChannel({
192
194
  lnd,
193
195
  address: 'address',
196
+ max_tokens_per_vbyte: 10,
194
197
  transaction_id: Buffer.alloc(32).toString('hex'),
195
198
  transaction_vout: 0,
196
199
  });