lightning 6.7.0 → 6.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,6 +1,10 @@
1
1
  # Versions
2
2
 
3
- ## 6.7.0
3
+ ## 6.8.0
4
+
5
+ - `subscribeToRpcRequests`: add `max_tokens_per_vbyte` to RPC close requests
6
+
7
+ ## 6.7.1
4
8
 
5
9
  - `getBlock`: add `height` to allow fetching a raw block at a specified height
6
10
 
@@ -9,6 +9,7 @@ const hashAsTxId = hash => hash.slice().reverse().toString('hex');
9
9
  }
10
10
  delivery_address: <Request Cooperative Close Address String>
11
11
  force: <Force Close Channel Bool>
12
+ max_fee_per_vbyte: <Max Fee Tokens Per VByte String>
12
13
  sat_per_byte: <Chain Fee Tokens Per Virtual Byte String>
13
14
  target_conf: <Target Confirm Within N Blocks Number>
14
15
  }
@@ -17,6 +18,7 @@ const hashAsTxId = hash => hash.slice().reverse().toString('hex');
17
18
  {
18
19
  [address]: <Request Sending Local Channel Funds To Address String>
19
20
  [is_force_close]: <Is Force Close Bool>
21
+ [max_tokens_per_vbyte]: <Max Tokens Per VByte Number>
20
22
  [target_confirmations]: <Confirmation Target Number>
21
23
  [tokens_per_vbyte]: <Tokens Per Virtual Byte Number>
22
24
  transaction_id: <Transaction Id Hex String>
@@ -27,6 +29,7 @@ module.exports = args => {
27
29
  return {
28
30
  address: args.delivery_address || undefined,
29
31
  is_force_close: args.force || undefined,
32
+ max_tokens_per_vbyte: Number(args.max_fee_per_vbyte) || undefined,
30
33
  target_confirmations: args.target_conf || undefined,
31
34
  tokens_per_vbyte: Number(args.sat_per_byte) || undefined,
32
35
  transaction_id: hashAsTxId(args.channel_point.funding_txid_bytes),
@@ -122,7 +122,7 @@
122
122
  "type": "default"
123
123
  },
124
124
  "getBlock": {
125
- "method": "GetBlock",
125
+ "methods": ["GetBestBlock", "GetBlock", "GetBlockHash"],
126
126
  "type": "blocks"
127
127
  },
128
128
  "getChainBalance": {
@@ -47,6 +47,7 @@ const type = 'default';
47
47
  request: {
48
48
  [address]: <Request Sending Local Channel Funds To Address String>
49
49
  [is_force_close]: <Is Force Close Bool>
50
+ [max_tokens_per_vbyte]: <Max Tokens Per VByte Number>
50
51
  [target_confirmations]: <Confirmation Target Number>
51
52
  [tokens_per_vbyte]: <Tokens Per Virtual Byte Number>
52
53
  transaction_id: <Transaction Id Hex String>
package/package.json CHANGED
@@ -59,5 +59,5 @@
59
59
  "directory": "test/typescript"
60
60
  },
61
61
  "types": "index.d.ts",
62
- "version": "6.7.0"
62
+ "version": "6.8.0"
63
63
  }
@@ -23,6 +23,7 @@ const makeExpected = overrides => {
23
23
  const args = {
24
24
  address: 'delivery_address',
25
25
  is_force_close: true,
26
+ max_tokens_per_vbyte: undefined,
26
27
  target_confirmations: 1,
27
28
  tokens_per_vbyte: 1,
28
29
  transaction_id: '030201',
@@ -45,6 +45,7 @@ const tests = [
45
45
  request: {
46
46
  address: 'delivery_address',
47
47
  is_force_close: true,
48
+ max_tokens_per_vbyte: undefined,
48
49
  target_confirmations: 1,
49
50
  tokens_per_vbyte: 1,
50
51
  transaction_id: '030201',