lightning 9.3.0 → 9.3.1
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
|
@@ -6,6 +6,7 @@ const {isLnd} = require('./../../lnd_requests');
|
|
|
6
6
|
const defaultConfirmations = 6;
|
|
7
7
|
const isHash = n => /^[0-9A-F]{64}$/i.test(n);
|
|
8
8
|
const isNumber = n => !isNaN(n);
|
|
9
|
+
const messageExternalUtxo = 'the passed output does not belong to the wallet';
|
|
9
10
|
const method = 'bumpFee';
|
|
10
11
|
const type = 'wallet';
|
|
11
12
|
|
|
@@ -76,6 +77,10 @@ module.exports = (args, cbk) => {
|
|
|
76
77
|
target_conf: feeRate.target_conf,
|
|
77
78
|
},
|
|
78
79
|
(err, res) => {
|
|
80
|
+
if (!!err && err.details === messageExternalUtxo) {
|
|
81
|
+
return cbk([404, 'SpecifiedOutpointNotFoundInWalletUtxos']);
|
|
82
|
+
}
|
|
83
|
+
|
|
79
84
|
if (!!err) {
|
|
80
85
|
return cbk([500, 'UnexpectedErrorRequestingChainFeeBump', {err}]);
|
|
81
86
|
}
|
package/package.json
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@grpc/grpc-js": "1.8.14",
|
|
11
|
-
"@grpc/proto-loader": "0.7.
|
|
11
|
+
"@grpc/proto-loader": "0.7.7",
|
|
12
12
|
"@types/express": "4.17.17",
|
|
13
|
-
"@types/node": "
|
|
13
|
+
"@types/node": "20.1.2",
|
|
14
14
|
"@types/request": "2.48.8",
|
|
15
15
|
"@types/ws": "8.5.4",
|
|
16
16
|
"async": "3.2.4",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"invoices": "2.2.3",
|
|
27
27
|
"psbt": "2.7.2",
|
|
28
28
|
"tiny-secp256k1": "2.2.1",
|
|
29
|
-
"type-fest": "3.
|
|
29
|
+
"type-fest": "3.10.0"
|
|
30
30
|
},
|
|
31
31
|
"description": "Lightning Network client library",
|
|
32
32
|
"devDependencies": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"directory": "test/typescript"
|
|
60
60
|
},
|
|
61
61
|
"types": "index.d.ts",
|
|
62
|
-
"version": "9.3.
|
|
62
|
+
"version": "9.3.1"
|
|
63
63
|
}
|
|
@@ -43,6 +43,19 @@ const tests = [
|
|
|
43
43
|
description: 'A tx output index is required',
|
|
44
44
|
error: [400, 'ExpectedTransactionOutputIndexToRequestFeeBump'],
|
|
45
45
|
},
|
|
46
|
+
{
|
|
47
|
+
args: makeArgs({
|
|
48
|
+
lnd: {
|
|
49
|
+
wallet: {
|
|
50
|
+
bumpFee: ({}, cbk) => cbk({
|
|
51
|
+
details: 'the passed output does not belong to the wallet',
|
|
52
|
+
}),
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
}),
|
|
56
|
+
description: 'Unknown UTXO error is passed back',
|
|
57
|
+
error: [404, 'SpecifiedOutpointNotFoundInWalletUtxos'],
|
|
58
|
+
},
|
|
46
59
|
{
|
|
47
60
|
args: makeArgs({lnd: {wallet: {bumpFee: ({}, cbk) => cbk('err')}}}),
|
|
48
61
|
description: 'Errors are passed back',
|