ln-service 57.10.2 → 57.11.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 +5 -0
- package/README.md +15 -0
- package/package.json +2 -2
- package/test/integration/test_update_routing_fees.js +8 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1833,6 +1833,9 @@ Get graph information about a channel on the network
|
|
|
1833
1833
|
|
|
1834
1834
|
Requires `info:read` permission
|
|
1835
1835
|
|
|
1836
|
+
`inbound_base_discount_mtokens` is not supported on LND 0.17.5 and below
|
|
1837
|
+
`inbound_rate_discount` is not supported on LND 0.17.5 and below
|
|
1838
|
+
|
|
1836
1839
|
{
|
|
1837
1840
|
id: <Standard Format Channel Id String>
|
|
1838
1841
|
lnd: <Authenticated LND API Object>
|
|
@@ -1846,6 +1849,8 @@ Requires `info:read` permission
|
|
|
1846
1849
|
[base_fee_mtokens]: <Base Fee Millitokens String>
|
|
1847
1850
|
[cltv_delta]: <Locktime Delta Number>
|
|
1848
1851
|
[fee_rate]: <Fees Charged Per Million Millitokens Number>
|
|
1852
|
+
[inbound_base_discount_mtokens]: <Source Based Base Fee Reduction String>
|
|
1853
|
+
[inbound_rate_discount]: <Source Based Per Million Rate Reduction Number>
|
|
1849
1854
|
[is_disabled]: <Channel Is Disabled Bool>
|
|
1850
1855
|
[max_htlc_mtokens]: <Maximum HTLC Millitokens Value String>
|
|
1851
1856
|
[min_htlc_mtokens]: <Minimum HTLC Millitokens Value String>
|
|
@@ -2693,6 +2698,9 @@ Get the network graph
|
|
|
2693
2698
|
|
|
2694
2699
|
Requires `info:read` permission
|
|
2695
2700
|
|
|
2701
|
+
`inbound_base_discount_mtokens` is not supported on LND 0.17.5 and below
|
|
2702
|
+
`inbound_rate_discount` is not supported on LND 0.17.5 and below
|
|
2703
|
+
|
|
2696
2704
|
{
|
|
2697
2705
|
lnd: <Authenticated LND API Object>
|
|
2698
2706
|
}
|
|
@@ -2706,6 +2714,8 @@ Requires `info:read` permission
|
|
|
2706
2714
|
[base_fee_mtokens]: <Bae Fee Millitokens String>
|
|
2707
2715
|
[cltv_delta]: <CLTV Height Delta Number>
|
|
2708
2716
|
[fee_rate]: <Fee Rate In Millitokens Per Million Number>
|
|
2717
|
+
[inbound_base_discount_mtokens]: <Source Base Fee Reduction String>
|
|
2718
|
+
[inbound_rate_discount]: <Source Per Million Rate Reduction Number>
|
|
2709
2719
|
[is_disabled]: <Edge is Disabled Bool>
|
|
2710
2720
|
[max_htlc_mtokens]: <Maximum HTLC Millitokens String>
|
|
2711
2721
|
[min_htlc_mtokens]: <Minimum HTLC Millitokens String>
|
|
@@ -2773,6 +2783,9 @@ Get information about a node
|
|
|
2773
2783
|
|
|
2774
2784
|
Requires `info:read` permission
|
|
2775
2785
|
|
|
2786
|
+
`inbound_base_discount_mtokens` is not supported on LND 0.17.5 and below
|
|
2787
|
+
`inbound_rate_discount` is not supported on LND 0.17.5 and below
|
|
2788
|
+
|
|
2776
2789
|
{
|
|
2777
2790
|
[is_omitting_channels]: <Omit Channels from Node Bool>
|
|
2778
2791
|
lnd: <Authenticated LND API Object>
|
|
@@ -2791,6 +2804,8 @@ Requires `info:read` permission
|
|
|
2791
2804
|
[base_fee_mtokens]: <Base Fee Millitokens String>
|
|
2792
2805
|
[cltv_delta]: <Locktime Delta Number>
|
|
2793
2806
|
[fee_rate]: <Fees Charged Per Million Millitokens Number>
|
|
2807
|
+
[inbound_base_discount_mtokens]: <Source Base Fee Reduction String>
|
|
2808
|
+
[inbound_rate_discount]: <Source Per Million Rate Reduction Number>
|
|
2794
2809
|
[is_disabled]: <Channel Is Disabled Bool>
|
|
2795
2810
|
[max_htlc_mtokens]: <Maximum HTLC Millitokens Value String>
|
|
2796
2811
|
[min_htlc_mtokens]: <Minimum HTLC Millitokens Value String>
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"bolt07": "1.8.4",
|
|
11
11
|
"invoices": "3.0.0",
|
|
12
|
-
"lightning": "10.
|
|
12
|
+
"lightning": "10.11.0",
|
|
13
13
|
"macaroon": "3.0.4"
|
|
14
14
|
},
|
|
15
15
|
"description": "Interaction helper for your Lightning Network daemon",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
|
|
72
72
|
"test": "echo $DOCKER_LND_VERSION && node test/runner"
|
|
73
73
|
},
|
|
74
|
-
"version": "57.
|
|
74
|
+
"version": "57.11.0"
|
|
75
75
|
}
|
|
@@ -83,12 +83,20 @@ test(`Update routing fees`, async () => {
|
|
|
83
83
|
base_fee_mtokens: `${BigInt(baseFeeTokens) * BigInt(n) * BigInt(1e3)}`,
|
|
84
84
|
cltv_delta: cltvDelta * n,
|
|
85
85
|
fee_rate: feeRate * n,
|
|
86
|
+
inbound_base_discount_mtokens: 1,
|
|
87
|
+
inbound_rate_discount: 1,
|
|
86
88
|
});
|
|
87
89
|
|
|
88
90
|
const policy = (await getChannel({id, lnd})).policies.find(policy => {
|
|
89
91
|
return policy.public_key === target.id;
|
|
90
92
|
});
|
|
91
93
|
|
|
94
|
+
// LND 0.17.5 and below do not support fee discounts
|
|
95
|
+
if (!!policy.inbound_rate_discount) {
|
|
96
|
+
equal(policy.inbound_base_discount_mtokens, '1', 'Got base discount');
|
|
97
|
+
equal(policy.inbound_rate_discount, 1, 'Got rate discount');
|
|
98
|
+
}
|
|
99
|
+
|
|
92
100
|
equal(policy.base_fee_mtokens, `${baseFeeTokens*mtokPerTok*n}`, 'Base');
|
|
93
101
|
equal(policy.cltv_delta, cltvDelta*n, 'Global CLTV delta updated');
|
|
94
102
|
equal(policy.fee_rate, feeRate*n, 'Global Fee rate updated');
|