lightning 9.5.1 → 9.6.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 +4 -0
- package/lnd_methods/offchain/get_pending_channels.d.ts +2 -0
- package/lnd_methods/offchain/get_pending_channels.js +1 -0
- package/lnd_responses/pending_as_pending_channels.js +4 -1
- package/package.json +4 -4
- package/test/lnd_responses/test_pending_as_pending_channels.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -53,6 +53,7 @@ const type = 'default';
|
|
|
53
53
|
transaction_id: <Channel Funding Transaction Id String>
|
|
54
54
|
transaction_vout: <Channel Funding Transaction Vout Number>
|
|
55
55
|
[transaction_weight]: <Commit Transaction Weight Number>
|
|
56
|
+
[type]: <Channel Commitment Transaction Type String>
|
|
56
57
|
}]
|
|
57
58
|
}
|
|
58
59
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const {channelTypes} = require('./constants');
|
|
2
|
+
|
|
2
3
|
const {isArray} = Array;
|
|
3
4
|
const remoteInitiator = 'INITIATOR_REMOTE';
|
|
4
5
|
const outpointSeparator = ':';
|
|
@@ -109,6 +110,7 @@ const outpointSeparator = ':';
|
|
|
109
110
|
transaction_id: <Channel Funding Transaction Id String>
|
|
110
111
|
transaction_vout: <Channel Funding Transaction Vout Number>
|
|
111
112
|
[transaction_weight]: <Commit Transaction Weight Number>
|
|
113
|
+
[type]: <Channel Commitment Transaction Type String>
|
|
112
114
|
}]
|
|
113
115
|
}
|
|
114
116
|
*/
|
|
@@ -310,6 +312,7 @@ module.exports = args => {
|
|
|
310
312
|
transaction_id: txId,
|
|
311
313
|
transaction_vout: Number(vout),
|
|
312
314
|
transaction_weight: !chanOpen ? null : chanOpen.transaction_weight,
|
|
315
|
+
type: channelTypes[channel.commitment_type],
|
|
313
316
|
};
|
|
314
317
|
});
|
|
315
318
|
|
package/package.json
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"@grpc/grpc-js": "1.8.15",
|
|
11
11
|
"@grpc/proto-loader": "0.7.7",
|
|
12
12
|
"@types/express": "4.17.17",
|
|
13
|
-
"@types/node": "20.
|
|
13
|
+
"@types/node": "20.3.1",
|
|
14
14
|
"@types/request": "2.48.8",
|
|
15
|
-
"@types/ws": "8.5.
|
|
15
|
+
"@types/ws": "8.5.5",
|
|
16
16
|
"async": "3.2.4",
|
|
17
17
|
"asyncjs-util": "1.2.11",
|
|
18
|
-
"bitcoinjs-lib": "6.1.
|
|
18
|
+
"bitcoinjs-lib": "6.1.3",
|
|
19
19
|
"bn.js": "5.2.1",
|
|
20
20
|
"body-parser": "1.20.2",
|
|
21
21
|
"bolt07": "1.8.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"directory": "test/typescript"
|
|
60
60
|
},
|
|
61
61
|
"types": "index.d.ts",
|
|
62
|
-
"version": "9.
|
|
62
|
+
"version": "9.6.0"
|
|
63
63
|
}
|
|
@@ -128,6 +128,7 @@ const makeExpectedPending = overrides => {
|
|
|
128
128
|
transaction_id: Buffer.alloc(32).toString('hex'),
|
|
129
129
|
transaction_vout: 1,
|
|
130
130
|
transaction_weight: 1,
|
|
131
|
+
type: 'original_with_static_to_remote',
|
|
131
132
|
};
|
|
132
133
|
|
|
133
134
|
Object.keys(overrides || {}).forEach(key => res[key] = overrides[key]);
|