ln-service 58.0.4 → 59.0.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 +12 -0
- package/README.md +1 -42
- package/package.json +5 -32
- package/test/integration/test_pay.js +106 -104
- package/test/integration/test_subscribe_to_rpc_requests.js +0 -1
- package/test/integration/test_trusted_funding.js +17 -1
- package/test/integration/test_update_routing_fees.js +1 -1
- package/test/macros/wait_for_route.js +0 -2
- package/test/routerrpc-integration/test_get_payment.js +0 -2
- package/test/routerrpc-integration/test_pay_via_payment_details.js +0 -2
- package/test/routerrpc-integration/test_pay_via_payment_request.js +0 -2
- package/test/routerrpc-integration/test_subscribe_to_forward_requests.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Versions
|
|
2
2
|
|
|
3
|
+
## 59.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- Eliminate support for `channel_capacity` in payment hops
|
|
8
|
+
- End support for node.js 20, require 22 or higher
|
|
9
|
+
- End support for LND 0.19 and below
|
|
10
|
+
|
|
11
|
+
## 58.1.0
|
|
12
|
+
|
|
13
|
+
- `getChannels`: Add support for `partner_scid_alias`
|
|
14
|
+
|
|
3
15
|
## 58.0.4
|
|
4
16
|
|
|
5
17
|
- Add support for LND 0.20.1-beta
|
package/README.md
CHANGED
|
@@ -1992,6 +1992,7 @@ Requires `offchain:read` permission
|
|
|
1992
1992
|
local_reserve: <Local Reserved Tokens Number>
|
|
1993
1993
|
other_ids: [<Other Channel Id String>]
|
|
1994
1994
|
partner_public_key: <Channel Partner Public Key String>
|
|
1995
|
+
[partner_scid_alias]: <Peer Assigned Standard Format Channel Id String>
|
|
1995
1996
|
past_states: <Total Count of Past Channel States Number>
|
|
1996
1997
|
pending_payments: [{
|
|
1997
1998
|
id: <Payment Preimage Hash Hex String>
|
|
@@ -2267,7 +2268,6 @@ Requires `offchain:read` permission
|
|
|
2267
2268
|
fee_mtokens: <Route Fee Millitokens String>
|
|
2268
2269
|
hops: [{
|
|
2269
2270
|
channel: <Standard Format Channel Id String>
|
|
2270
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
2271
2271
|
fee: <Fee Number>
|
|
2272
2272
|
fee_mtokens: <Fee Millitokens String>
|
|
2273
2273
|
forward: <Forward Tokens Number>
|
|
@@ -2998,7 +2998,6 @@ Requires `offchain:read` permission
|
|
|
2998
2998
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
2999
2999
|
hops: [{
|
|
3000
3000
|
channel: <Standard Format Channel Id String>
|
|
3001
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3002
3001
|
fee: <Fee Tokens Rounded Down Number>
|
|
3003
3002
|
fee_mtokens: <Fee Millitokens String>
|
|
3004
3003
|
forward_mtokens: <Forward Millitokens String>
|
|
@@ -3023,7 +3022,6 @@ Requires `offchain:read` permission
|
|
|
3023
3022
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
3024
3023
|
hops: [{
|
|
3025
3024
|
channel: <Standard Format Channel Id String>
|
|
3026
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3027
3025
|
fee: <Fee Tokens Rounded Down Number>
|
|
3028
3026
|
fee_mtokens: <Fee Millitokens String>
|
|
3029
3027
|
forward: <Forwarded Tokens Number>
|
|
@@ -3107,7 +3105,6 @@ Requires `offchain:read` permission
|
|
|
3107
3105
|
fee_mtokens: <Route Fee Millitokens String>
|
|
3108
3106
|
hops: [{
|
|
3109
3107
|
channel: <Standard Format Channel Id String>
|
|
3110
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3111
3108
|
fee: <Fee Number>
|
|
3112
3109
|
fee_mtokens: <Fee Millitokens String>
|
|
3113
3110
|
forward: <Forward Tokens Number>
|
|
@@ -3350,7 +3347,6 @@ Requires `offchain:read` permission
|
|
|
3350
3347
|
fee_mtokens: <Route Fee Millitokens String>
|
|
3351
3348
|
hops: [{
|
|
3352
3349
|
channel: <Standard Format Channel Id String>
|
|
3353
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3354
3350
|
fee: <Fee Number>
|
|
3355
3351
|
fee_mtokens: <Fee Millitokens String>
|
|
3356
3352
|
forward: <Forward Tokens Number>
|
|
@@ -3518,7 +3514,6 @@ Requires `offchain:read` permission
|
|
|
3518
3514
|
fee_mtokens: <Route Fee Millitokens String>
|
|
3519
3515
|
hops: [{
|
|
3520
3516
|
channel: <Standard Format Channel Id String>
|
|
3521
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3522
3517
|
fee: <Fee Number>
|
|
3523
3518
|
fee_mtokens: <Fee Millitokens String>
|
|
3524
3519
|
forward: <Forward Tokens Number>
|
|
@@ -3594,7 +3589,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
3594
3589
|
[routes]: [[{
|
|
3595
3590
|
[base_fee_mtokens]: <Base Routing Fee In Millitokens String>
|
|
3596
3591
|
[channel]: <Standard Format Channel Id String>
|
|
3597
|
-
[channel_capacity]: <Channel Capacity Tokens Number>
|
|
3598
3592
|
[cltv_delta]: <CLTV Delta Blocks Number>
|
|
3599
3593
|
[fee_rate]: <Fee Rate In Millitokens Per Million Number>
|
|
3600
3594
|
public_key: <Forward Edge Public Key Hex String>
|
|
@@ -3612,7 +3606,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
3612
3606
|
fee_mtokens: <Route Fee Millitokens String>
|
|
3613
3607
|
hops: [{
|
|
3614
3608
|
channel: <Standard Format Channel Id String>
|
|
3615
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3616
3609
|
fee: <Fee Number>
|
|
3617
3610
|
fee_mtokens: <Fee Millitokens String>
|
|
3618
3611
|
forward: <Forward Tokens Number>
|
|
@@ -4344,7 +4337,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4344
4337
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
4345
4338
|
hops: [{
|
|
4346
4339
|
channel: <Standard Format Channel Id String>
|
|
4347
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
4348
4340
|
fee: <Fee Number>
|
|
4349
4341
|
fee_mtokens: <Fee Millitokens String>
|
|
4350
4342
|
forward: <Forward Tokens Number>
|
|
@@ -4374,7 +4366,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4374
4366
|
fee_mtokens: <Fee Paid Millitokens String>
|
|
4375
4367
|
hops: [{
|
|
4376
4368
|
channel: <Standard Format Channel Id String>
|
|
4377
|
-
channel_capacity: <Hop Channel Capacity Tokens Number>
|
|
4378
4369
|
fee_mtokens: <Hop Forward Fee Millitokens String>
|
|
4379
4370
|
forward_mtokens: <Hop Forwarded Millitokens String>
|
|
4380
4371
|
timeout: <Hop CLTV Expiry Block Height Number>
|
|
@@ -4452,7 +4443,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4452
4443
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
4453
4444
|
hops: [{
|
|
4454
4445
|
channel: <First Route Standard Format Channel Id String>
|
|
4455
|
-
channel_capacity: <First Route Channel Capacity Tokens Number>
|
|
4456
4446
|
fee: <First Route Fee Tokens Rounded Down Number>
|
|
4457
4447
|
fee_mtokens: <First Route Fee Millitokens String>
|
|
4458
4448
|
forward_mtokens: <First Route Forward Millitokens String>
|
|
@@ -4465,7 +4455,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4465
4455
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
4466
4456
|
hops: [{
|
|
4467
4457
|
channel: <First Route Standard Format Channel Id String>
|
|
4468
|
-
channel_capacity: <First Route Channel Capacity Tokens Number>
|
|
4469
4458
|
fee: <First Route Fee Tokens Rounded Down Number>
|
|
4470
4459
|
fee_mtokens: <First Route Fee Millitokens String>
|
|
4471
4460
|
forward_mtokens: <First Route Forward Millitokens String>
|
|
@@ -4529,7 +4518,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4529
4518
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
4530
4519
|
hops: [{
|
|
4531
4520
|
channel: <First Route Standard Format Channel Id String>
|
|
4532
|
-
channel_capacity: <First Route Channel Capacity Tokens Number>
|
|
4533
4521
|
fee: <First Route Fee Tokens Rounded Down Number>
|
|
4534
4522
|
fee_mtokens: <First Route Fee Millitokens String>
|
|
4535
4523
|
forward_mtokens: <First Route Forward Millitokens String>
|
|
@@ -4543,7 +4531,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4543
4531
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
4544
4532
|
hops: [{
|
|
4545
4533
|
channel: <First Route Standard Format Channel Id String>
|
|
4546
|
-
channel_capacity: <First Route Channel Capacity Tokens Number>
|
|
4547
4534
|
fee: <First Route Fee Tokens Rounded Down Number>
|
|
4548
4535
|
fee_mtokens: <First Route Fee Millitokens String>
|
|
4549
4536
|
forward_mtokens: <First Route Forward Millitokens String>
|
|
@@ -4584,7 +4571,6 @@ Requires `offchain:write` permission
|
|
|
4584
4571
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
4585
4572
|
hops: [{
|
|
4586
4573
|
channel: <Standard Format Channel Id String>
|
|
4587
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
4588
4574
|
fee: <Fee Number>
|
|
4589
4575
|
fee_mtokens: <Fee Millitokens String>
|
|
4590
4576
|
forward: <Forward Tokens Number>
|
|
@@ -4618,7 +4604,6 @@ Requires `offchain:write` permission
|
|
|
4618
4604
|
fee_mtokens: <Fee Paid Millitokens String>
|
|
4619
4605
|
hops: [{
|
|
4620
4606
|
channel: <Standard Format Channel Id String>
|
|
4621
|
-
channel_capacity: <Hop Channel Capacity Tokens Number>
|
|
4622
4607
|
fee_mtokens: <Hop Forward Fee Millitokens String>
|
|
4623
4608
|
forward_mtokens: <Hop Forwarded Millitokens String>
|
|
4624
4609
|
timeout: <Hop CLTV Expiry Block Height Number>
|
|
@@ -4736,7 +4721,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4736
4721
|
[probe_timeout_ms]: <Probe Timeout Milliseconds Number>
|
|
4737
4722
|
[routes]: [[{
|
|
4738
4723
|
[base_fee_mtokens]: <Base Routing Fee In Millitokens Number String>
|
|
4739
|
-
[channel_capacity]: <Channel Capacity Tokens Number>
|
|
4740
4724
|
[channel]: <Standard Format Channel Id String>
|
|
4741
4725
|
[cltv_delta]: <CLTV Blocks Delta Number>
|
|
4742
4726
|
[fee_rate]: <Fee Rate In Millitokens Per Million Number>
|
|
@@ -4754,7 +4738,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4754
4738
|
fee_mtokens: <Route Fee Millitokens String>
|
|
4755
4739
|
hops: [{
|
|
4756
4740
|
channel: <Standard Format Channel Id String>
|
|
4757
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
4758
4741
|
fee: <Fee Number>
|
|
4759
4742
|
fee_mtokens: <Fee Millitokens String>
|
|
4760
4743
|
forward: <Forward Tokens Number>
|
|
@@ -5121,7 +5104,6 @@ Either next hop destination in channels or final destination is required
|
|
|
5121
5104
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
5122
5105
|
hops: [{
|
|
5123
5106
|
channel: <Standard Format Channel Id String>
|
|
5124
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
5125
5107
|
fee: <Fee Number>
|
|
5126
5108
|
fee_mtokens: <Fee Millitokens String>
|
|
5127
5109
|
forward: <Forward Tokens Number>
|
|
@@ -6280,7 +6262,6 @@ Requires `offchain:read` permission
|
|
|
6280
6262
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
6281
6263
|
hops: [{
|
|
6282
6264
|
channel: <Standard Format Channel Id String>
|
|
6283
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6284
6265
|
fee: <Fee Tokens Rounded Down Number>
|
|
6285
6266
|
fee_mtokens: <Fee Millitokens String>
|
|
6286
6267
|
forward: <Forward Tokens Number>
|
|
@@ -6321,7 +6302,6 @@ Requires `offchain:read` permission
|
|
|
6321
6302
|
fee_mtokens: <Total Fee Millitokens Pending String>
|
|
6322
6303
|
hops: [{
|
|
6323
6304
|
channel: <Standard Format Channel Id String>
|
|
6324
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6325
6305
|
fee: <Fee Tokens Rounded Down Number>
|
|
6326
6306
|
fee_mtokens: <Fee Millitokens String>
|
|
6327
6307
|
forward: <Forward Tokens Number>
|
|
@@ -6386,7 +6366,6 @@ Note: Method not supported on LND 0.13.4 and below
|
|
|
6386
6366
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
6387
6367
|
hops: [{
|
|
6388
6368
|
channel: <Standard Format Channel Id String>
|
|
6389
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6390
6369
|
fee: <Fee Tokens Rounded Down Number>
|
|
6391
6370
|
fee_mtokens: <Fee Millitokens String>
|
|
6392
6371
|
forward_mtokens: <Forward Millitokens String>
|
|
@@ -6472,7 +6451,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6472
6451
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
6473
6452
|
hops: [{
|
|
6474
6453
|
channel: <Standard Format Channel Id String>
|
|
6475
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6476
6454
|
fee_mtokens: <Fee Millitokens String>
|
|
6477
6455
|
forward_mtokens: <Forward Millitokens String>
|
|
6478
6456
|
public_key: <Public Key Hex String>
|
|
@@ -6499,7 +6477,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6499
6477
|
fee_mtokens: <Route Total Fee Millitokens String>
|
|
6500
6478
|
hops: [{
|
|
6501
6479
|
channel: <Standard Format Channel Id String>
|
|
6502
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6503
6480
|
fee: <Hop Forwarding Fee Rounded Down Tokens Number>
|
|
6504
6481
|
fee_mtokens: <Hop Forwarding Fee Millitokens String>
|
|
6505
6482
|
forward: <Hop Forwarding Tokens Rounded Down Number>
|
|
@@ -6526,7 +6503,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6526
6503
|
fee_mtokens: <Total Fee Millitokens Pending String>
|
|
6527
6504
|
hops: [{
|
|
6528
6505
|
channel: <Standard Format Channel Id String>
|
|
6529
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6530
6506
|
fee: <Fee Tokens Rounded Down Number>
|
|
6531
6507
|
fee_mtokens: <Fee Millitokens String>
|
|
6532
6508
|
forward: <Forward Tokens Number>
|
|
@@ -6556,7 +6532,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6556
6532
|
fee_mtokens: <Total Route Fee Millitokens To Pay String>
|
|
6557
6533
|
hops: [{
|
|
6558
6534
|
channel: <Standard Format Channel Id String>
|
|
6559
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6560
6535
|
fee: <Fee Number>
|
|
6561
6536
|
fee_mtokens: <Fee Millitokens String>
|
|
6562
6537
|
forward: <Forward Tokens Number>
|
|
@@ -6627,7 +6602,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6627
6602
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6628
6603
|
hops: [{
|
|
6629
6604
|
channel: <Standard Format Channel Id String>
|
|
6630
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6631
6605
|
fee_mtokens: <Fee Millitokens String>
|
|
6632
6606
|
forward_mtokens: <Forward Millitokens String>
|
|
6633
6607
|
public_key: <Public Key Hex String>
|
|
@@ -6656,7 +6630,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6656
6630
|
fee_mtokens: <Route Total Fee Millitokens String>
|
|
6657
6631
|
hops: [{
|
|
6658
6632
|
channel: <Standard Format Channel Id String>
|
|
6659
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6660
6633
|
fee: <Hop Forwarding Fee Rounded Down Tokens Number>
|
|
6661
6634
|
fee_mtokens: <Hop Forwarding Fee Millitokens String>
|
|
6662
6635
|
forward: <Hop Forwarding Tokens Rounded Down Number>
|
|
@@ -6684,7 +6657,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6684
6657
|
fee_mtokens: <Total Fee Millitokens Pending String>
|
|
6685
6658
|
hops: [{
|
|
6686
6659
|
channel: <Standard Format Channel Id String>
|
|
6687
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6688
6660
|
fee: <Fee Tokens Rounded Down Number>
|
|
6689
6661
|
fee_mtokens: <Fee Millitokens String>
|
|
6690
6662
|
forward: <Forward Tokens Number>
|
|
@@ -6714,7 +6686,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6714
6686
|
fee_mtokens: <Total Route Fee Millitokens To Pay String>
|
|
6715
6687
|
hops: [{
|
|
6716
6688
|
channel: <Standard Format Channel Id String>
|
|
6717
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6718
6689
|
fee: <Fee Number>
|
|
6719
6690
|
fee_mtokens: <Fee Millitokens String>
|
|
6720
6691
|
forward: <Forward Tokens Number>
|
|
@@ -6755,7 +6726,6 @@ Requires `offchain:write` permission
|
|
|
6755
6726
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6756
6727
|
hops: [{
|
|
6757
6728
|
channel: <Standard Format Channel Id String>
|
|
6758
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6759
6729
|
fee: <Fee Number>
|
|
6760
6730
|
fee_mtokens: <Fee Millitokens String>
|
|
6761
6731
|
forward: <Forward Tokens Number>
|
|
@@ -6818,7 +6788,6 @@ Requires `offchain:write` permission
|
|
|
6818
6788
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6819
6789
|
hops: [{
|
|
6820
6790
|
channel: <Standard Format Channel Id String>
|
|
6821
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6822
6791
|
fee: <Fee Number>
|
|
6823
6792
|
fee_mtokens: <Fee Millitokens String>
|
|
6824
6793
|
forward: <Forward Tokens Number>
|
|
@@ -6852,7 +6821,6 @@ Requires `offchain:write` permission
|
|
|
6852
6821
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6853
6822
|
hops: [{
|
|
6854
6823
|
channel: <Standard Format Channel Id String>
|
|
6855
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6856
6824
|
fee: <Fee Number>
|
|
6857
6825
|
fee_mtokens: <Fee Millitokens String>
|
|
6858
6826
|
forward: <Forward Tokens Number>
|
|
@@ -6883,7 +6851,6 @@ Requires `offchain:write` permission
|
|
|
6883
6851
|
fee_mtokens: <Fee Paid Millitokens String>
|
|
6884
6852
|
hops: [{
|
|
6885
6853
|
channel: <Standard Format Channel Id String>
|
|
6886
|
-
channel_capacity: <Hop Channel Capacity Tokens Number>
|
|
6887
6854
|
fee_mtokens: <Hop Forward Fee Millitokens String>
|
|
6888
6855
|
forward_mtokens: <Hop Forwarded Millitokens String>
|
|
6889
6856
|
timeout: <Hop CLTV Expiry Block Height Number>
|
|
@@ -6897,7 +6864,6 @@ Requires `offchain:write` permission
|
|
|
6897
6864
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6898
6865
|
hops: [{
|
|
6899
6866
|
channel: <Standard Format Channel Id String>
|
|
6900
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6901
6867
|
fee: <Fee Number>
|
|
6902
6868
|
fee_mtokens: <Fee Millitokens String>
|
|
6903
6869
|
forward: <Forward Tokens Number>
|
|
@@ -6958,7 +6924,6 @@ Note: Method not supported on LND 0.15.5 and below
|
|
|
6958
6924
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
6959
6925
|
hops: [{
|
|
6960
6926
|
channel: <Standard Format Channel Id String>
|
|
6961
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6962
6927
|
fee: <Fee Tokens Rounded Down Number>
|
|
6963
6928
|
fee_mtokens: <Fee Millitokens String>
|
|
6964
6929
|
forward: <Forward Tokens Number>
|
|
@@ -7000,7 +6965,6 @@ Note: Method not supported on LND 0.15.5 and below
|
|
|
7000
6965
|
fee_mtokens: <Total Fee Millitokens Pending String>
|
|
7001
6966
|
hops: [{
|
|
7002
6967
|
channel: <Standard Format Channel Id String>
|
|
7003
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7004
6968
|
fee: <Fee Tokens Rounded Down Number>
|
|
7005
6969
|
fee_mtokens: <Fee Millitokens String>
|
|
7006
6970
|
forward: <Forward Tokens Number>
|
|
@@ -7142,7 +7106,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
7142
7106
|
[probe_timeout_ms]: <Fail Entire Probe After Milliseconds Number>
|
|
7143
7107
|
[routes]: [[{
|
|
7144
7108
|
[base_fee_mtokens]: <Base Routing Fee In Millitokens String>
|
|
7145
|
-
[channel_capacity]: <Channel Capacity Tokens Number>
|
|
7146
7109
|
[channel]: <Standard Format Channel Id String>
|
|
7147
7110
|
[cltv_delta]: <CLTV Blocks Delta Number>
|
|
7148
7111
|
[fee_rate]: <Fee Rate In Millitokens Per Million Number>
|
|
@@ -7166,7 +7129,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
7166
7129
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
7167
7130
|
hops: [{
|
|
7168
7131
|
channel: <Standard Format Channel Id String>
|
|
7169
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7170
7132
|
fee: <Fee Number>
|
|
7171
7133
|
fee_mtokens: <Fee Millitokens String>
|
|
7172
7134
|
forward: <Forward Tokens Number>
|
|
@@ -7196,7 +7158,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
7196
7158
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
7197
7159
|
hops: [{
|
|
7198
7160
|
channel: <Standard Format Channel Id String>
|
|
7199
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7200
7161
|
fee: <Fee Number>
|
|
7201
7162
|
fee_mtokens: <Fee Millitokens String>
|
|
7202
7163
|
forward: <Forward Tokens Number>
|
|
@@ -7238,7 +7199,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
7238
7199
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
7239
7200
|
hops: [{
|
|
7240
7201
|
channel: <Standard Format Channel Id String>
|
|
7241
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7242
7202
|
fee: <Fee Number>
|
|
7243
7203
|
fee_mtokens: <Fee Millitokens String>
|
|
7244
7204
|
forward: <Forward Tokens Number>
|
|
@@ -7363,7 +7323,6 @@ This method is not supported in LND 0.13.4 and below
|
|
|
7363
7323
|
fee_mtokens: <Route Fee Millitokens String>
|
|
7364
7324
|
hops: [{
|
|
7365
7325
|
channel: <Standard Format Channel Id String>
|
|
7366
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7367
7326
|
fee: <Fee Tokens Number>
|
|
7368
7327
|
fee_mtokens: <Fee Millitokens String>
|
|
7369
7328
|
forward: <Forward Tokens Number>
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"bolt07": "1.9.5",
|
|
11
11
|
"invoices": "5.0.2",
|
|
12
|
-
"lightning": "
|
|
12
|
+
"lightning": "12.0.0",
|
|
13
13
|
"macaroon": "3.0.4"
|
|
14
14
|
},
|
|
15
15
|
"description": "Interaction helper for your Lightning Network daemon",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"bn.js": "5.2.3",
|
|
25
25
|
"bs58check": "4.0.0",
|
|
26
26
|
"ecpair": "3.0.1",
|
|
27
|
-
"ln-docker-daemons": "
|
|
27
|
+
"ln-docker-daemons": "8.0.0",
|
|
28
28
|
"p2tr": "2.0.0",
|
|
29
29
|
"portfinder": "1.0.38",
|
|
30
30
|
"psbt": "5.0.0",
|
|
31
31
|
"rimraf": "6.1.3",
|
|
32
32
|
"tiny-secp256k1": "2.2.4",
|
|
33
|
-
"uuid": "
|
|
33
|
+
"uuid": "14.0.0",
|
|
34
34
|
"varuint-bitcoin": "2.0.0"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
37
|
+
"node": ">=22"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"bitcoin",
|
|
@@ -53,34 +53,7 @@
|
|
|
53
53
|
"scripts": {
|
|
54
54
|
"integration-test-0.20.1": "DOCKER_LND_VERSION=v0.20.1-beta npm run test",
|
|
55
55
|
"integration-test-0.20.0": "DOCKER_LND_VERSION=v0.20.0-beta npm run test",
|
|
56
|
-
"integration-test-0.19.3": "DOCKER_LND_VERSION=v0.19.3-beta npm run test",
|
|
57
|
-
"integration-test-0.19.2": "DOCKER_LND_VERSION=v0.19.2-beta npm run test",
|
|
58
|
-
"integration-test-0.19.1": "DOCKER_LND_VERSION=v0.19.1-beta npm run test",
|
|
59
|
-
"integration-test-0.19.0": "DOCKER_LND_VERSION=v0.19.0-beta npm run test",
|
|
60
|
-
"integration-test-0.18.5": "DOCKER_LND_VERSION=v0.18.5-beta npm run test",
|
|
61
|
-
"integration-test-0.18.4": "DOCKER_LND_VERSION=v0.18.4-beta npm run test",
|
|
62
|
-
"integration-test-0.18.3": "DOCKER_LND_VERSION=v0.18.3-beta npm run test",
|
|
63
|
-
"integration-test-0.18.2": "DOCKER_LND_VERSION=v0.18.2-beta npm run test",
|
|
64
|
-
"integration-test-0.18.1": "DOCKER_LND_VERSION=v0.18.1-beta npm run test",
|
|
65
|
-
"integration-test-0.18.0": "DOCKER_LND_VERSION=v0.18.0-beta npm run test",
|
|
66
|
-
"integration-test-0.17.5": "DOCKER_LND_VERSION=v0.17.5-beta npm run test",
|
|
67
|
-
"integration-test-0.17.4": "DOCKER_LND_VERSION=v0.17.4-beta npm run test",
|
|
68
|
-
"integration-test-0.17.3": "DOCKER_LND_VERSION=v0.17.3-beta npm run test",
|
|
69
|
-
"integration-test-0.17.2": "DOCKER_LND_VERSION=v0.17.2-beta npm run test",
|
|
70
|
-
"integration-test-0.17.1": "DOCKER_LND_VERSION=v0.17.1-beta npm run test",
|
|
71
|
-
"integration-test-0.17.0": "DOCKER_LND_VERSION=v0.17.0-beta npm run test",
|
|
72
|
-
"integration-test-0.16.4": "DOCKER_LND_VERSION=v0.16.4-beta npm run test",
|
|
73
|
-
"integration-test-0.16.3": "DOCKER_LND_VERSION=v0.16.3-beta npm run test",
|
|
74
|
-
"integration-test-0.16.2": "DOCKER_LND_VERSION=v0.16.2-beta npm run test",
|
|
75
|
-
"integration-test-0.16.1": "DOCKER_LND_VERSION=v0.16.1-beta npm run test",
|
|
76
|
-
"integration-test-0.16.0": "DOCKER_LND_VERSION=v0.16.0-beta npm run test",
|
|
77
|
-
"integration-test-0.15.5": "DOCKER_LND_VERSION=v0.15.5-beta npm run test",
|
|
78
|
-
"integration-test-0.15.4": "DOCKER_LND_VERSION=v0.15.4-beta npm run test",
|
|
79
|
-
"integration-test-0.15.3": "DOCKER_LND_VERSION=v0.15.3-beta npm run test",
|
|
80
|
-
"integration-test-0.15.2": "DOCKER_LND_VERSION=v0.15.2-beta npm run test",
|
|
81
|
-
"integration-test-0.14.5": "DOCKER_LND_VERSION=v0.14.5-beta npm run test",
|
|
82
|
-
"integration-test-0.14.4": "DOCKER_LND_VERSION=v0.14.4-beta npm run test",
|
|
83
56
|
"test": "echo $DOCKER_LND_VERSION && node test/runner"
|
|
84
57
|
},
|
|
85
|
-
"version": "
|
|
58
|
+
"version": "59.0.0"
|
|
86
59
|
}
|
|
@@ -28,120 +28,122 @@ test(`Pay`, async ({end, equal, strictSame}) => {
|
|
|
28
28
|
|
|
29
29
|
const [{generate, lnd}, target, remote] = nodes;
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
await addPeer({lnd, public_key: remote.id, socket: remote.socket});
|
|
40
|
-
|
|
41
|
-
const invoice = await createInvoice({tokens, lnd: remote.lnd});
|
|
42
|
-
|
|
43
|
-
const commitTxFee = channel.commit_transaction_fee;
|
|
44
|
-
|
|
45
|
-
const paid = await asyncRetry({interval, times}, async () => {
|
|
46
|
-
return await pay({lnd, request: invoice.request});
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
strictEqual(paid.fee, 1, 'Fee paid for hop');
|
|
50
|
-
strictEqual(paid.fee_mtokens, '1000', 'Fee mtokens tokens paid');
|
|
51
|
-
strictEqual(paid.id, invoice.id, 'Payment hash is equal on both sides');
|
|
52
|
-
strictEqual(paid.is_confirmed, true, 'Invoice is paid');
|
|
53
|
-
strictEqual(paid.is_outgoing, true, 'Payments are outgoing');
|
|
54
|
-
strictEqual(paid.mtokens, '101000', 'Paid mtokens');
|
|
55
|
-
strictEqual(paid.secret, invoice.secret, 'Paid for invoice secret');
|
|
56
|
-
strictEqual(paid.tokens, invoice.tokens + 1, 'Paid correct number of tok');
|
|
57
|
-
|
|
58
|
-
const height = (await getHeight({lnd})).current_block_height;
|
|
59
|
-
|
|
60
|
-
paid.hops.forEach(n => {
|
|
61
|
-
strictEqual(
|
|
62
|
-
n.timeout === height + 40 ||
|
|
63
|
-
n.timeout === height + 43 ||
|
|
64
|
-
n.timeout === height + 80,
|
|
65
|
-
true
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
delete n.timeout;
|
|
69
|
-
|
|
70
|
-
return;
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
const expectedHops = [
|
|
74
|
-
{
|
|
75
|
-
channel: channel.id,
|
|
76
|
-
channel_capacity: 1000000,
|
|
77
|
-
fee: 1,
|
|
78
|
-
fee_mtokens: '1000',
|
|
79
|
-
forward: 100,
|
|
80
|
-
forward_mtokens: `${invoice.tokens}${mtokPadding}`,
|
|
81
|
-
public_key: target.id,
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
channel: remoteChan.id,
|
|
85
|
-
channel_capacity: 1000000,
|
|
86
|
-
fee: 0,
|
|
87
|
-
fee_mtokens: '0',
|
|
88
|
-
forward: 100,
|
|
89
|
-
forward_mtokens: '100000',
|
|
90
|
-
public_key: remote.id,
|
|
91
|
-
},
|
|
92
|
-
];
|
|
93
|
-
|
|
94
|
-
deepStrictEqual(paid.hops, expectedHops, 'Hops are returned');
|
|
95
|
-
|
|
96
|
-
const invoice2 = await createInvoice({lnd: remote.lnd, tokens: 100});
|
|
97
|
-
|
|
98
|
-
const {destination} = await decodePaymentRequest({
|
|
99
|
-
lnd: remote.lnd,
|
|
100
|
-
request: invoice2.request,
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
await generate({count: confirmationCount});
|
|
104
|
-
|
|
105
|
-
const route = await asyncRetry({interval, times}, async () => {
|
|
106
|
-
const {route} = await getRouteToDestination({
|
|
107
|
-
destination,
|
|
108
|
-
lnd,
|
|
109
|
-
payment: invoice2.payment,
|
|
110
|
-
tokens: invoice2.tokens,
|
|
111
|
-
total_mtokens: !!invoice2.payment ? invoice2.mtokens : undefined,
|
|
31
|
+
try {
|
|
32
|
+
const channel = await setupChannel({generate, lnd, to: target});
|
|
33
|
+
|
|
34
|
+
const remoteChan = await setupChannel({
|
|
35
|
+
generate: target.generate,
|
|
36
|
+
lnd: target.lnd,
|
|
37
|
+
to: remote,
|
|
112
38
|
});
|
|
113
39
|
|
|
114
|
-
|
|
115
|
-
throw new Error('ExpectedRouteToDestination');
|
|
116
|
-
}
|
|
40
|
+
await addPeer({lnd, public_key: remote.id, socket: remote.socket});
|
|
117
41
|
|
|
118
|
-
|
|
119
|
-
});
|
|
42
|
+
const invoice = await createInvoice({tokens, lnd: remote.lnd});
|
|
120
43
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
await
|
|
124
|
-
lnd,
|
|
125
|
-
path: {routes: [route], id: randomBytes(32).toString('hex')},
|
|
44
|
+
const commitTxFee = channel.commit_transaction_fee;
|
|
45
|
+
|
|
46
|
+
const paid = await asyncRetry({interval, times}, async () => {
|
|
47
|
+
return await pay({lnd, request: invoice.request});
|
|
126
48
|
});
|
|
127
|
-
} catch (err) {
|
|
128
|
-
const [code, message] = err;
|
|
129
49
|
|
|
130
|
-
strictEqual(
|
|
131
|
-
strictEqual(
|
|
132
|
-
|
|
50
|
+
strictEqual(paid.fee, 1, 'Fee paid for hop');
|
|
51
|
+
strictEqual(paid.fee_mtokens, '1000', 'Fee mtokens tokens paid');
|
|
52
|
+
strictEqual(paid.id, invoice.id, 'Payment hash is equal on both sides');
|
|
53
|
+
strictEqual(paid.is_confirmed, true, 'Invoice is paid');
|
|
54
|
+
strictEqual(paid.is_outgoing, true, 'Payments are outgoing');
|
|
55
|
+
strictEqual(paid.mtokens, '101000', 'Paid mtokens');
|
|
56
|
+
strictEqual(paid.secret, invoice.secret, 'Paid for invoice secret');
|
|
57
|
+
strictEqual(paid.tokens, invoice.tokens + 1, 'Paid correct number of tok');
|
|
58
|
+
|
|
59
|
+
const height = (await getHeight({lnd})).current_block_height;
|
|
60
|
+
|
|
61
|
+
paid.hops.forEach(n => {
|
|
62
|
+
strictEqual(
|
|
63
|
+
n.timeout === height + 40 ||
|
|
64
|
+
n.timeout === height + 43 ||
|
|
65
|
+
n.timeout === height + 80,
|
|
66
|
+
true
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
delete n.timeout;
|
|
70
|
+
|
|
71
|
+
return;
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const expectedHops = [
|
|
75
|
+
{
|
|
76
|
+
channel: channel.id,
|
|
77
|
+
fee: 1,
|
|
78
|
+
fee_mtokens: '1000',
|
|
79
|
+
forward: 100,
|
|
80
|
+
forward_mtokens: `${invoice.tokens}${mtokPadding}`,
|
|
81
|
+
public_key: target.id,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
channel: remoteChan.id,
|
|
85
|
+
fee: 0,
|
|
86
|
+
fee_mtokens: '0',
|
|
87
|
+
forward: 100,
|
|
88
|
+
forward_mtokens: '100000',
|
|
89
|
+
public_key: remote.id,
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
|
|
93
|
+
deepStrictEqual(paid.hops, expectedHops, 'Hops are returned');
|
|
94
|
+
|
|
95
|
+
const invoice2 = await createInvoice({lnd: remote.lnd, tokens: 100});
|
|
96
|
+
|
|
97
|
+
const {destination} = await decodePaymentRequest({
|
|
98
|
+
lnd: remote.lnd,
|
|
99
|
+
request: invoice2.request,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
await generate({count: confirmationCount});
|
|
133
103
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
104
|
+
const route = await asyncRetry({interval, times}, async () => {
|
|
105
|
+
const {route} = await getRouteToDestination({
|
|
106
|
+
destination,
|
|
107
|
+
lnd,
|
|
108
|
+
payment: invoice2.payment,
|
|
109
|
+
tokens: invoice2.tokens,
|
|
110
|
+
total_mtokens: !!invoice2.payment ? invoice2.mtokens : undefined,
|
|
111
|
+
});
|
|
139
112
|
|
|
140
|
-
|
|
113
|
+
if (!route) {
|
|
114
|
+
throw new Error('ExpectedRouteToDestination');
|
|
115
|
+
}
|
|
141
116
|
|
|
142
|
-
|
|
117
|
+
return route;
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// Test paying to a route, but to an id that isn't known
|
|
121
|
+
try {
|
|
122
|
+
await pay({
|
|
123
|
+
lnd,
|
|
124
|
+
path: {routes: [route], id: randomBytes(32).toString('hex')},
|
|
125
|
+
});
|
|
126
|
+
} catch (err) {
|
|
127
|
+
const [code, message] = err;
|
|
128
|
+
|
|
129
|
+
strictEqual(code, 404, 'Unknown payment hashes mean user error');
|
|
130
|
+
strictEqual(message, 'UnknownPaymentHash', 'Specifically unknown error');
|
|
131
|
+
}
|
|
143
132
|
|
|
144
|
-
|
|
133
|
+
// Test paying regularly to a destination
|
|
134
|
+
const directPay = await pay({
|
|
135
|
+
lnd,
|
|
136
|
+
path: {routes: [route], id: invoice2.id},
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
const zeroInvoice = await createInvoice({lnd: target.lnd});
|
|
140
|
+
|
|
141
|
+
await pay({lnd, request: zeroInvoice.request, mtokens: '1000'});
|
|
142
|
+
} catch (err) {
|
|
143
|
+
strictEqual(err, null, 'Not expecting an error');
|
|
144
|
+
} finally {
|
|
145
|
+
await kill({});
|
|
146
|
+
}
|
|
145
147
|
|
|
146
148
|
return;
|
|
147
149
|
});
|
|
@@ -202,6 +202,8 @@ test(`Open unconfirmed channels`, async () => {
|
|
|
202
202
|
|
|
203
203
|
// Remove the channel
|
|
204
204
|
await asyncRetry({interval, times}, async () => {
|
|
205
|
+
await generate({});
|
|
206
|
+
|
|
205
207
|
await closeChannel({lnd, id: confirmed.id});
|
|
206
208
|
});
|
|
207
209
|
|
|
@@ -252,7 +254,21 @@ test(`Open unconfirmed channels`, async () => {
|
|
|
252
254
|
return confirmed;
|
|
253
255
|
});
|
|
254
256
|
|
|
255
|
-
const [closedChannel] =
|
|
257
|
+
const [closedChannel] = await asyncRetry({interval, times}, async () => {
|
|
258
|
+
const {channels} = await getClosedChannels({lnd});
|
|
259
|
+
|
|
260
|
+
await generate({});
|
|
261
|
+
|
|
262
|
+
if (!channels.length) {
|
|
263
|
+
throw new Error('ExpectedAClosedChannel');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (!closings.length) {
|
|
267
|
+
throw new Error('ExpectedClosingEvent');
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return channels;
|
|
271
|
+
});
|
|
256
272
|
|
|
257
273
|
equal(closedChannel.id, confirmed.id, 'Closed channel shows confirmed id');
|
|
258
274
|
deepEqual(closedChannel.other_ids, confirmed.other_ids, 'Saved temp id');
|
|
@@ -13,7 +13,6 @@ const times = 1500;
|
|
|
13
13
|
[routes]: [[{
|
|
14
14
|
[base_fee_mtokens]: <Base Routing Fee In Millitokens String>
|
|
15
15
|
[channel]: <Standard Format Channel Id String>
|
|
16
|
-
[channel_capacity]: <Channel Capacity Tokens Number>
|
|
17
16
|
[cltv_delta]: <CLTV Delta Blocks Number>
|
|
18
17
|
[fee_rate]: <Fee Rate In Millitokens Per Million Number>
|
|
19
18
|
public_key: <Forward Edge Public Key Hex String>
|
|
@@ -28,7 +27,6 @@ const times = 1500;
|
|
|
28
27
|
fee_mtokens: <Route Fee Millitokens String>
|
|
29
28
|
hops: [{
|
|
30
29
|
channel: <Standard Format Channel Id String>
|
|
31
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
32
30
|
fee: <Fee Number>
|
|
33
31
|
fee_mtokens: <Fee Millitokens String>
|
|
34
32
|
forward: <Forward Tokens Number>
|
|
@@ -103,7 +103,6 @@ test(`Get payment`, async () => {
|
|
|
103
103
|
const expectedHops = [
|
|
104
104
|
{
|
|
105
105
|
channel: channel.id,
|
|
106
|
-
channel_capacity: 1000000,
|
|
107
106
|
fee: 1,
|
|
108
107
|
fee_mtokens: '1000',
|
|
109
108
|
forward: invoice.tokens,
|
|
@@ -112,7 +111,6 @@ test(`Get payment`, async () => {
|
|
|
112
111
|
},
|
|
113
112
|
{
|
|
114
113
|
channel: remoteChan.id,
|
|
115
|
-
channel_capacity: 1000000,
|
|
116
114
|
fee: 0,
|
|
117
115
|
fee_mtokens: '0',
|
|
118
116
|
forward: 100,
|
|
@@ -53,7 +53,6 @@ test(`Pay via payment details`, async () => {
|
|
|
53
53
|
const expectedHops = [
|
|
54
54
|
{
|
|
55
55
|
channel: channel.id,
|
|
56
|
-
channel_capacity: 1000000,
|
|
57
56
|
fee: 1,
|
|
58
57
|
fee_mtokens: '1000',
|
|
59
58
|
forward: invoice.tokens,
|
|
@@ -62,7 +61,6 @@ test(`Pay via payment details`, async () => {
|
|
|
62
61
|
},
|
|
63
62
|
{
|
|
64
63
|
channel: remoteChan.id,
|
|
65
|
-
channel_capacity: 1000000,
|
|
66
64
|
fee: 0,
|
|
67
65
|
fee_mtokens: '0',
|
|
68
66
|
forward: invoice.tokens,
|
|
@@ -106,7 +106,6 @@ test(`Pay via payment request`, async () => {
|
|
|
106
106
|
const expectedHops = [
|
|
107
107
|
{
|
|
108
108
|
channel: channel.id,
|
|
109
|
-
channel_capacity: 1000000,
|
|
110
109
|
fee: 1,
|
|
111
110
|
fee_mtokens: '1000',
|
|
112
111
|
forward: 100,
|
|
@@ -115,7 +114,6 @@ test(`Pay via payment request`, async () => {
|
|
|
115
114
|
},
|
|
116
115
|
{
|
|
117
116
|
channel: remoteChan.id,
|
|
118
|
-
channel_capacity: 1000000,
|
|
119
117
|
fee: 0,
|
|
120
118
|
fee_mtokens: '0',
|
|
121
119
|
forward: 100,
|
|
@@ -96,7 +96,6 @@ test(`Subscribe to requests`, async () => {
|
|
|
96
96
|
hops: [
|
|
97
97
|
{
|
|
98
98
|
channel: channel.id,
|
|
99
|
-
channel_capacity: 1e6,
|
|
100
99
|
fee: 1,
|
|
101
100
|
fee_mtokens: '1000',
|
|
102
101
|
forward: 100,
|
|
@@ -106,7 +105,6 @@ test(`Subscribe to requests`, async () => {
|
|
|
106
105
|
},
|
|
107
106
|
{
|
|
108
107
|
channel: remoteChan.id,
|
|
109
|
-
channel_capacity: 1e6,
|
|
110
108
|
fee: 0,
|
|
111
109
|
fee_mtokens: '0',
|
|
112
110
|
forward: 100,
|
|
@@ -154,7 +152,6 @@ test(`Subscribe to requests`, async () => {
|
|
|
154
152
|
hops: [
|
|
155
153
|
{
|
|
156
154
|
channel: forward.in_channel,
|
|
157
|
-
channel_capacity: 1e6,
|
|
158
155
|
fee: 1,
|
|
159
156
|
fee_mtokens: '1000',
|
|
160
157
|
forward: 100,
|
|
@@ -164,7 +161,6 @@ test(`Subscribe to requests`, async () => {
|
|
|
164
161
|
},
|
|
165
162
|
{
|
|
166
163
|
channel: forward.out_channel,
|
|
167
|
-
channel_capacity: 1e6,
|
|
168
164
|
fee: 0,
|
|
169
165
|
fee_mtokens: '0',
|
|
170
166
|
forward: 100,
|