ln-service 58.1.0 → 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 +8 -0
- package/README.md +0 -42
- package/package.json +4 -31
- 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,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 58.1.0
|
|
4
12
|
|
|
5
13
|
- `getChannels`: Add support for `partner_scid_alias`
|
package/README.md
CHANGED
|
@@ -2268,7 +2268,6 @@ Requires `offchain:read` permission
|
|
|
2268
2268
|
fee_mtokens: <Route Fee Millitokens String>
|
|
2269
2269
|
hops: [{
|
|
2270
2270
|
channel: <Standard Format Channel Id String>
|
|
2271
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
2272
2271
|
fee: <Fee Number>
|
|
2273
2272
|
fee_mtokens: <Fee Millitokens String>
|
|
2274
2273
|
forward: <Forward Tokens Number>
|
|
@@ -2999,7 +2998,6 @@ Requires `offchain:read` permission
|
|
|
2999
2998
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
3000
2999
|
hops: [{
|
|
3001
3000
|
channel: <Standard Format Channel Id String>
|
|
3002
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3003
3001
|
fee: <Fee Tokens Rounded Down Number>
|
|
3004
3002
|
fee_mtokens: <Fee Millitokens String>
|
|
3005
3003
|
forward_mtokens: <Forward Millitokens String>
|
|
@@ -3024,7 +3022,6 @@ Requires `offchain:read` permission
|
|
|
3024
3022
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
3025
3023
|
hops: [{
|
|
3026
3024
|
channel: <Standard Format Channel Id String>
|
|
3027
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3028
3025
|
fee: <Fee Tokens Rounded Down Number>
|
|
3029
3026
|
fee_mtokens: <Fee Millitokens String>
|
|
3030
3027
|
forward: <Forwarded Tokens Number>
|
|
@@ -3108,7 +3105,6 @@ Requires `offchain:read` permission
|
|
|
3108
3105
|
fee_mtokens: <Route Fee Millitokens String>
|
|
3109
3106
|
hops: [{
|
|
3110
3107
|
channel: <Standard Format Channel Id String>
|
|
3111
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3112
3108
|
fee: <Fee Number>
|
|
3113
3109
|
fee_mtokens: <Fee Millitokens String>
|
|
3114
3110
|
forward: <Forward Tokens Number>
|
|
@@ -3351,7 +3347,6 @@ Requires `offchain:read` permission
|
|
|
3351
3347
|
fee_mtokens: <Route Fee Millitokens String>
|
|
3352
3348
|
hops: [{
|
|
3353
3349
|
channel: <Standard Format Channel Id String>
|
|
3354
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3355
3350
|
fee: <Fee Number>
|
|
3356
3351
|
fee_mtokens: <Fee Millitokens String>
|
|
3357
3352
|
forward: <Forward Tokens Number>
|
|
@@ -3519,7 +3514,6 @@ Requires `offchain:read` permission
|
|
|
3519
3514
|
fee_mtokens: <Route Fee Millitokens String>
|
|
3520
3515
|
hops: [{
|
|
3521
3516
|
channel: <Standard Format Channel Id String>
|
|
3522
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3523
3517
|
fee: <Fee Number>
|
|
3524
3518
|
fee_mtokens: <Fee Millitokens String>
|
|
3525
3519
|
forward: <Forward Tokens Number>
|
|
@@ -3595,7 +3589,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
3595
3589
|
[routes]: [[{
|
|
3596
3590
|
[base_fee_mtokens]: <Base Routing Fee In Millitokens String>
|
|
3597
3591
|
[channel]: <Standard Format Channel Id String>
|
|
3598
|
-
[channel_capacity]: <Channel Capacity Tokens Number>
|
|
3599
3592
|
[cltv_delta]: <CLTV Delta Blocks Number>
|
|
3600
3593
|
[fee_rate]: <Fee Rate In Millitokens Per Million Number>
|
|
3601
3594
|
public_key: <Forward Edge Public Key Hex String>
|
|
@@ -3613,7 +3606,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
3613
3606
|
fee_mtokens: <Route Fee Millitokens String>
|
|
3614
3607
|
hops: [{
|
|
3615
3608
|
channel: <Standard Format Channel Id String>
|
|
3616
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
3617
3609
|
fee: <Fee Number>
|
|
3618
3610
|
fee_mtokens: <Fee Millitokens String>
|
|
3619
3611
|
forward: <Forward Tokens Number>
|
|
@@ -4345,7 +4337,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4345
4337
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
4346
4338
|
hops: [{
|
|
4347
4339
|
channel: <Standard Format Channel Id String>
|
|
4348
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
4349
4340
|
fee: <Fee Number>
|
|
4350
4341
|
fee_mtokens: <Fee Millitokens String>
|
|
4351
4342
|
forward: <Forward Tokens Number>
|
|
@@ -4375,7 +4366,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4375
4366
|
fee_mtokens: <Fee Paid Millitokens String>
|
|
4376
4367
|
hops: [{
|
|
4377
4368
|
channel: <Standard Format Channel Id String>
|
|
4378
|
-
channel_capacity: <Hop Channel Capacity Tokens Number>
|
|
4379
4369
|
fee_mtokens: <Hop Forward Fee Millitokens String>
|
|
4380
4370
|
forward_mtokens: <Hop Forwarded Millitokens String>
|
|
4381
4371
|
timeout: <Hop CLTV Expiry Block Height Number>
|
|
@@ -4453,7 +4443,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4453
4443
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
4454
4444
|
hops: [{
|
|
4455
4445
|
channel: <First Route Standard Format Channel Id String>
|
|
4456
|
-
channel_capacity: <First Route Channel Capacity Tokens Number>
|
|
4457
4446
|
fee: <First Route Fee Tokens Rounded Down Number>
|
|
4458
4447
|
fee_mtokens: <First Route Fee Millitokens String>
|
|
4459
4448
|
forward_mtokens: <First Route Forward Millitokens String>
|
|
@@ -4466,7 +4455,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4466
4455
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
4467
4456
|
hops: [{
|
|
4468
4457
|
channel: <First Route Standard Format Channel Id String>
|
|
4469
|
-
channel_capacity: <First Route Channel Capacity Tokens Number>
|
|
4470
4458
|
fee: <First Route Fee Tokens Rounded Down Number>
|
|
4471
4459
|
fee_mtokens: <First Route Fee Millitokens String>
|
|
4472
4460
|
forward_mtokens: <First Route Forward Millitokens String>
|
|
@@ -4530,7 +4518,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4530
4518
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
4531
4519
|
hops: [{
|
|
4532
4520
|
channel: <First Route Standard Format Channel Id String>
|
|
4533
|
-
channel_capacity: <First Route Channel Capacity Tokens Number>
|
|
4534
4521
|
fee: <First Route Fee Tokens Rounded Down Number>
|
|
4535
4522
|
fee_mtokens: <First Route Fee Millitokens String>
|
|
4536
4523
|
forward_mtokens: <First Route Forward Millitokens String>
|
|
@@ -4544,7 +4531,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4544
4531
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
4545
4532
|
hops: [{
|
|
4546
4533
|
channel: <First Route Standard Format Channel Id String>
|
|
4547
|
-
channel_capacity: <First Route Channel Capacity Tokens Number>
|
|
4548
4534
|
fee: <First Route Fee Tokens Rounded Down Number>
|
|
4549
4535
|
fee_mtokens: <First Route Fee Millitokens String>
|
|
4550
4536
|
forward_mtokens: <First Route Forward Millitokens String>
|
|
@@ -4585,7 +4571,6 @@ Requires `offchain:write` permission
|
|
|
4585
4571
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
4586
4572
|
hops: [{
|
|
4587
4573
|
channel: <Standard Format Channel Id String>
|
|
4588
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
4589
4574
|
fee: <Fee Number>
|
|
4590
4575
|
fee_mtokens: <Fee Millitokens String>
|
|
4591
4576
|
forward: <Forward Tokens Number>
|
|
@@ -4619,7 +4604,6 @@ Requires `offchain:write` permission
|
|
|
4619
4604
|
fee_mtokens: <Fee Paid Millitokens String>
|
|
4620
4605
|
hops: [{
|
|
4621
4606
|
channel: <Standard Format Channel Id String>
|
|
4622
|
-
channel_capacity: <Hop Channel Capacity Tokens Number>
|
|
4623
4607
|
fee_mtokens: <Hop Forward Fee Millitokens String>
|
|
4624
4608
|
forward_mtokens: <Hop Forwarded Millitokens String>
|
|
4625
4609
|
timeout: <Hop CLTV Expiry Block Height Number>
|
|
@@ -4737,7 +4721,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4737
4721
|
[probe_timeout_ms]: <Probe Timeout Milliseconds Number>
|
|
4738
4722
|
[routes]: [[{
|
|
4739
4723
|
[base_fee_mtokens]: <Base Routing Fee In Millitokens Number String>
|
|
4740
|
-
[channel_capacity]: <Channel Capacity Tokens Number>
|
|
4741
4724
|
[channel]: <Standard Format Channel Id String>
|
|
4742
4725
|
[cltv_delta]: <CLTV Blocks Delta Number>
|
|
4743
4726
|
[fee_rate]: <Fee Rate In Millitokens Per Million Number>
|
|
@@ -4755,7 +4738,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
4755
4738
|
fee_mtokens: <Route Fee Millitokens String>
|
|
4756
4739
|
hops: [{
|
|
4757
4740
|
channel: <Standard Format Channel Id String>
|
|
4758
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
4759
4741
|
fee: <Fee Number>
|
|
4760
4742
|
fee_mtokens: <Fee Millitokens String>
|
|
4761
4743
|
forward: <Forward Tokens Number>
|
|
@@ -5122,7 +5104,6 @@ Either next hop destination in channels or final destination is required
|
|
|
5122
5104
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
5123
5105
|
hops: [{
|
|
5124
5106
|
channel: <Standard Format Channel Id String>
|
|
5125
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
5126
5107
|
fee: <Fee Number>
|
|
5127
5108
|
fee_mtokens: <Fee Millitokens String>
|
|
5128
5109
|
forward: <Forward Tokens Number>
|
|
@@ -6281,7 +6262,6 @@ Requires `offchain:read` permission
|
|
|
6281
6262
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
6282
6263
|
hops: [{
|
|
6283
6264
|
channel: <Standard Format Channel Id String>
|
|
6284
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6285
6265
|
fee: <Fee Tokens Rounded Down Number>
|
|
6286
6266
|
fee_mtokens: <Fee Millitokens String>
|
|
6287
6267
|
forward: <Forward Tokens Number>
|
|
@@ -6322,7 +6302,6 @@ Requires `offchain:read` permission
|
|
|
6322
6302
|
fee_mtokens: <Total Fee Millitokens Pending String>
|
|
6323
6303
|
hops: [{
|
|
6324
6304
|
channel: <Standard Format Channel Id String>
|
|
6325
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6326
6305
|
fee: <Fee Tokens Rounded Down Number>
|
|
6327
6306
|
fee_mtokens: <Fee Millitokens String>
|
|
6328
6307
|
forward: <Forward Tokens Number>
|
|
@@ -6387,7 +6366,6 @@ Note: Method not supported on LND 0.13.4 and below
|
|
|
6387
6366
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
6388
6367
|
hops: [{
|
|
6389
6368
|
channel: <Standard Format Channel Id String>
|
|
6390
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6391
6369
|
fee: <Fee Tokens Rounded Down Number>
|
|
6392
6370
|
fee_mtokens: <Fee Millitokens String>
|
|
6393
6371
|
forward_mtokens: <Forward Millitokens String>
|
|
@@ -6473,7 +6451,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6473
6451
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
6474
6452
|
hops: [{
|
|
6475
6453
|
channel: <Standard Format Channel Id String>
|
|
6476
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6477
6454
|
fee_mtokens: <Fee Millitokens String>
|
|
6478
6455
|
forward_mtokens: <Forward Millitokens String>
|
|
6479
6456
|
public_key: <Public Key Hex String>
|
|
@@ -6500,7 +6477,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6500
6477
|
fee_mtokens: <Route Total Fee Millitokens String>
|
|
6501
6478
|
hops: [{
|
|
6502
6479
|
channel: <Standard Format Channel Id String>
|
|
6503
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6504
6480
|
fee: <Hop Forwarding Fee Rounded Down Tokens Number>
|
|
6505
6481
|
fee_mtokens: <Hop Forwarding Fee Millitokens String>
|
|
6506
6482
|
forward: <Hop Forwarding Tokens Rounded Down Number>
|
|
@@ -6527,7 +6503,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6527
6503
|
fee_mtokens: <Total Fee Millitokens Pending String>
|
|
6528
6504
|
hops: [{
|
|
6529
6505
|
channel: <Standard Format Channel Id String>
|
|
6530
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6531
6506
|
fee: <Fee Tokens Rounded Down Number>
|
|
6532
6507
|
fee_mtokens: <Fee Millitokens String>
|
|
6533
6508
|
forward: <Forward Tokens Number>
|
|
@@ -6557,7 +6532,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6557
6532
|
fee_mtokens: <Total Route Fee Millitokens To Pay String>
|
|
6558
6533
|
hops: [{
|
|
6559
6534
|
channel: <Standard Format Channel Id String>
|
|
6560
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6561
6535
|
fee: <Fee Number>
|
|
6562
6536
|
fee_mtokens: <Fee Millitokens String>
|
|
6563
6537
|
forward: <Forward Tokens Number>
|
|
@@ -6628,7 +6602,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6628
6602
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6629
6603
|
hops: [{
|
|
6630
6604
|
channel: <Standard Format Channel Id String>
|
|
6631
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6632
6605
|
fee_mtokens: <Fee Millitokens String>
|
|
6633
6606
|
forward_mtokens: <Forward Millitokens String>
|
|
6634
6607
|
public_key: <Public Key Hex String>
|
|
@@ -6657,7 +6630,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6657
6630
|
fee_mtokens: <Route Total Fee Millitokens String>
|
|
6658
6631
|
hops: [{
|
|
6659
6632
|
channel: <Standard Format Channel Id String>
|
|
6660
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6661
6633
|
fee: <Hop Forwarding Fee Rounded Down Tokens Number>
|
|
6662
6634
|
fee_mtokens: <Hop Forwarding Fee Millitokens String>
|
|
6663
6635
|
forward: <Hop Forwarding Tokens Rounded Down Number>
|
|
@@ -6685,7 +6657,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6685
6657
|
fee_mtokens: <Total Fee Millitokens Pending String>
|
|
6686
6658
|
hops: [{
|
|
6687
6659
|
channel: <Standard Format Channel Id String>
|
|
6688
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6689
6660
|
fee: <Fee Tokens Rounded Down Number>
|
|
6690
6661
|
fee_mtokens: <Fee Millitokens String>
|
|
6691
6662
|
forward: <Forward Tokens Number>
|
|
@@ -6715,7 +6686,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
6715
6686
|
fee_mtokens: <Total Route Fee Millitokens To Pay String>
|
|
6716
6687
|
hops: [{
|
|
6717
6688
|
channel: <Standard Format Channel Id String>
|
|
6718
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6719
6689
|
fee: <Fee Number>
|
|
6720
6690
|
fee_mtokens: <Fee Millitokens String>
|
|
6721
6691
|
forward: <Forward Tokens Number>
|
|
@@ -6756,7 +6726,6 @@ Requires `offchain:write` permission
|
|
|
6756
6726
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6757
6727
|
hops: [{
|
|
6758
6728
|
channel: <Standard Format Channel Id String>
|
|
6759
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6760
6729
|
fee: <Fee Number>
|
|
6761
6730
|
fee_mtokens: <Fee Millitokens String>
|
|
6762
6731
|
forward: <Forward Tokens Number>
|
|
@@ -6819,7 +6788,6 @@ Requires `offchain:write` permission
|
|
|
6819
6788
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6820
6789
|
hops: [{
|
|
6821
6790
|
channel: <Standard Format Channel Id String>
|
|
6822
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6823
6791
|
fee: <Fee Number>
|
|
6824
6792
|
fee_mtokens: <Fee Millitokens String>
|
|
6825
6793
|
forward: <Forward Tokens Number>
|
|
@@ -6853,7 +6821,6 @@ Requires `offchain:write` permission
|
|
|
6853
6821
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6854
6822
|
hops: [{
|
|
6855
6823
|
channel: <Standard Format Channel Id String>
|
|
6856
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6857
6824
|
fee: <Fee Number>
|
|
6858
6825
|
fee_mtokens: <Fee Millitokens String>
|
|
6859
6826
|
forward: <Forward Tokens Number>
|
|
@@ -6884,7 +6851,6 @@ Requires `offchain:write` permission
|
|
|
6884
6851
|
fee_mtokens: <Fee Paid Millitokens String>
|
|
6885
6852
|
hops: [{
|
|
6886
6853
|
channel: <Standard Format Channel Id String>
|
|
6887
|
-
channel_capacity: <Hop Channel Capacity Tokens Number>
|
|
6888
6854
|
fee_mtokens: <Hop Forward Fee Millitokens String>
|
|
6889
6855
|
forward_mtokens: <Hop Forwarded Millitokens String>
|
|
6890
6856
|
timeout: <Hop CLTV Expiry Block Height Number>
|
|
@@ -6898,7 +6864,6 @@ Requires `offchain:write` permission
|
|
|
6898
6864
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
6899
6865
|
hops: [{
|
|
6900
6866
|
channel: <Standard Format Channel Id String>
|
|
6901
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6902
6867
|
fee: <Fee Number>
|
|
6903
6868
|
fee_mtokens: <Fee Millitokens String>
|
|
6904
6869
|
forward: <Forward Tokens Number>
|
|
@@ -6959,7 +6924,6 @@ Note: Method not supported on LND 0.15.5 and below
|
|
|
6959
6924
|
fee_mtokens: <Total Fee Millitokens Paid String>
|
|
6960
6925
|
hops: [{
|
|
6961
6926
|
channel: <Standard Format Channel Id String>
|
|
6962
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
6963
6927
|
fee: <Fee Tokens Rounded Down Number>
|
|
6964
6928
|
fee_mtokens: <Fee Millitokens String>
|
|
6965
6929
|
forward: <Forward Tokens Number>
|
|
@@ -7001,7 +6965,6 @@ Note: Method not supported on LND 0.15.5 and below
|
|
|
7001
6965
|
fee_mtokens: <Total Fee Millitokens Pending String>
|
|
7002
6966
|
hops: [{
|
|
7003
6967
|
channel: <Standard Format Channel Id String>
|
|
7004
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7005
6968
|
fee: <Fee Tokens Rounded Down Number>
|
|
7006
6969
|
fee_mtokens: <Fee Millitokens String>
|
|
7007
6970
|
forward: <Forward Tokens Number>
|
|
@@ -7143,7 +7106,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
7143
7106
|
[probe_timeout_ms]: <Fail Entire Probe After Milliseconds Number>
|
|
7144
7107
|
[routes]: [[{
|
|
7145
7108
|
[base_fee_mtokens]: <Base Routing Fee In Millitokens String>
|
|
7146
|
-
[channel_capacity]: <Channel Capacity Tokens Number>
|
|
7147
7109
|
[channel]: <Standard Format Channel Id String>
|
|
7148
7110
|
[cltv_delta]: <CLTV Blocks Delta Number>
|
|
7149
7111
|
[fee_rate]: <Fee Rate In Millitokens Per Million Number>
|
|
@@ -7167,7 +7129,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
7167
7129
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
7168
7130
|
hops: [{
|
|
7169
7131
|
channel: <Standard Format Channel Id String>
|
|
7170
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7171
7132
|
fee: <Fee Number>
|
|
7172
7133
|
fee_mtokens: <Fee Millitokens String>
|
|
7173
7134
|
forward: <Forward Tokens Number>
|
|
@@ -7197,7 +7158,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
7197
7158
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
7198
7159
|
hops: [{
|
|
7199
7160
|
channel: <Standard Format Channel Id String>
|
|
7200
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7201
7161
|
fee: <Fee Number>
|
|
7202
7162
|
fee_mtokens: <Fee Millitokens String>
|
|
7203
7163
|
forward: <Forward Tokens Number>
|
|
@@ -7239,7 +7199,6 @@ Preferred `confidence` is not supported on LND 0.14.5 and below
|
|
|
7239
7199
|
fee_mtokens: <Total Fee Millitokens To Pay String>
|
|
7240
7200
|
hops: [{
|
|
7241
7201
|
channel: <Standard Format Channel Id String>
|
|
7242
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7243
7202
|
fee: <Fee Number>
|
|
7244
7203
|
fee_mtokens: <Fee Millitokens String>
|
|
7245
7204
|
forward: <Forward Tokens Number>
|
|
@@ -7364,7 +7323,6 @@ This method is not supported in LND 0.13.4 and below
|
|
|
7364
7323
|
fee_mtokens: <Route Fee Millitokens String>
|
|
7365
7324
|
hops: [{
|
|
7366
7325
|
channel: <Standard Format Channel Id String>
|
|
7367
|
-
channel_capacity: <Channel Capacity Tokens Number>
|
|
7368
7326
|
fee: <Fee Tokens Number>
|
|
7369
7327
|
fee_mtokens: <Fee Millitokens String>
|
|
7370
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,7 +24,7 @@
|
|
|
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",
|
|
@@ -34,7 +34,7 @@
|
|
|
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,
|