lightninglabs / loop

Lightning Loop: A Non-Custodial Off/On Chain Bridge
MIT License
557 stars 116 forks source link

Not all payments were made from the selected channels when executing loop out #722

Closed uheqiang closed 5 months ago

uheqiang commented 6 months ago

Not all payments were made from the selected channel when executing loop out. This makes it inconvenient for us users to control the selection of channels and track the income and expenditure of channel assets. I hope you can evaluate this issue. Thank you.

【1】LN has two channels:

"chan_id": "2839500873376923649",
"chan_id": "2839628416710541312"

【2】Loop out params:

{
    "max_swap_fee": 2500,
    "outgoing_chan_set": [
        "2839628416710541312"
    ],
    "max_prepay_routing_fee": 1000,
    "max_swap_routing_fee": 1000,
    "max_prepay_amt": 35000,
    "swap_publication_deadline": 1710845991,
    "amt": 250000,
    "dest": "tb1qkljku7hjfnec37lrth38x44mkd0umdx4hl33pd",
    "max_miner_fee": 1000
}

【3】Loop result

{
    "code": "200",
    "success": true,
    "msg": "ok",
    "data": {
        "amt": "250000",
        "id": "2fd6feebe4196544a73eab4661b339bdf8ad1e05f89ca66268e780d1c253e6e4",
        "id_bytes": "L9b+6+QZZUSnPqtGYbM5vfitHgX4nKZiaOeA0cJT5uQ=",
        "type": "LOOP_OUT",
        "state": "SUCCESS",
        "failure_reason": "FAILURE_REASON_NONE",
        "initiation_time": "1710845996063412194",
        "last_update_time": "1710847271336933349",
        "htlc_address": "tb1pryjjz8t7nlplj3qjmp0gzd7wm06ghn3pehhdkh523unjvfhpgeuq5ar9c0",
        "htlc_address_p2wsh": "tb1pryjjz8t7nlplj3qjmp0gzd7wm06ghn3pehhdkh523unjvfhpgeuq5ar9c0",
        "htlc_address_p2tr": "",
        "cost_server": "654",
        "cost_onchain": "121",
        "cost_offchain": "252",
        "last_hop": "",
        "outgoing_chan_set": [
            "2839628416710541312"
        ],
        "label": ""
    }
}

【3】Loop logs

2024-03-19 10:59:55.175 [INF] LOOPD: Loop out request received                                                                                                  
2024-03-19 10:59:55.179 [INF] LOOP: LoopOut 0.00250000 BTC to tb1qkljku7hjfnec37lrth38x44mkd0umdx4hl33pd (channels: 2839628416710541312)                        
2024-03-19 10:59:55.746 [INF] LOOP: Initiating swap request at height 2582633: amt=0.00250000 BTC, expiry=2582733                                               
2024-03-19 10:59:56.065 [INF] LOOP: 2fd6fe Htlc address (P2TR): tb1pryjjz8t7nlplj3qjmp0gzd7wm06ghn3pehhdkh523unjvfhpgeuq5ar9c0                                  
2024-03-19 10:59:56.072 [INF] LOOP: 2fd6fe Server message: welcome to loop                                                                                      
2024-03-19 10:59:56.073 [INF] LOOP: 2fd6fe Loop out swap state: Initiated                                                                                       
2024-03-19 10:59:56.074 [INF] LOOP: 2fd6fe Sending swap payment lntb2206540n1pjljupvpp59lt0a6lyr9j5ffe74drxrveehhu268s9lzw2vcngu7qdrsjnumjqdy9wdmkzupq95s8xcmjd9
c8gw3qx5cnyvp38yer2v33x9jrwefeve3nxe3exs6rzvny8q6k2wp3xvmkxetyvfnrgwrzvdjnyvtrv3jk2erzx4jnscfcvcerwv3kxgmx2vf5xcmnscqzxgxq97zvuqrzjqg36el7h7d3mgkguapswm2rsl6349
6vpyykc5f0fdg8tagml4t3g3apyqqqqqqqqruqqqqqqqqqqqqqq9qsp5802k8l0ynm5arrkz7r0h36f6tca7jnh6ngryfltsvx908yzvfsqq9qyyssqvmrphgrdtl0rdvzsmtssxhu4ytugdpnhrmyjf4n5er4gx
2qmkyjscshqvdr6f5hqcmx4qygf4wyjkdulxtfxsde9uad638gjsdvth5spqxmfd9                                                                                               
2024-03-19 10:59:56.175 [INF] LOOP: 2fd6fe Server update: SERVER_INITIATED received, timestamp: 2024-03-19 10:59:56.01271732 +0000 UTC                          
2024-03-19 10:59:56.178 [INF] LOOP: 2fd6fe Server recommended routing plugin: Low/High                                                                          
2024-03-19 10:59:56.178 [INF] LOOP: 2fd6fe Sending prepayment lntb300u1pjljupvpp5m46dgrruehjslffq4j2fhuf897ua4gandz5qarzcqle8559jn6gsdq2wpex2urp0ycqzxgxq97zvuqr
zjqg36el7h7d3mgkguapswm2rsl63496vpyykc5f0fdg8tagml4t3g3apyqqqqqqqqruqqqqqqqqqqqqqq9qsp5506ym6y878tlmaaskl3w0t3flv48zam5gwkd3zq8eayfu2xcw8jq9qyyssqeacpl2j225wfyz
n9x3r5cdrvzwnwmw3s9g43z32qnw8lkzdrex33rwluxd4y73xvm2a4xz0k7w9wgmjwt9thx8r8zvgs26j6f0mdcasp7vn3h4                                                                
2024-03-19 10:59:56.178 [INF] LOOP: 2fd6fe Register 1 conf ntfn for swap script on chain (hh=2582633)                                                           
2024-03-19 10:59:56.179 [INF] LOOP: 2fd6fe Checking preimage reveal height 2582713 exceeded (height 2582633)                                                    
2024-03-19 10:59:56.179 [INF] LOOP: 2fd6fe Waiting for either htlc on-chain confirmation or off-chain payment failure                                           
2024-03-19 10:59:56.185 [DBG] LOOP: Low/high plugin target: '0223acffd7f363b4591c' 0223acffd7f363b4591ce860eda870fea352e981212d8a25e96a0ebea37faae288           
2024-03-19 10:59:56.238 [DBG] LOOP: 'cheddar-tbtc', policy=(*lndclient.RoutingPolicy)(0xc0008047d0)({                                                           
 TimeLockDelta: (uint32) 40,                                                                                                                                    
 MinHtlcMsat: (int64) 1000,                                                                                                                                     
 MaxHtlcMsat: (uint64) 4950000000,                                                                                                                              
 FeeBaseMsat: (int64) 1000,                                                                                                                                     
 FeeRateMilliMsat: (int64) 2500,                                                                                                                                
 Disabled: (bool) false,                                                                                                                                        
 LastUpdate: (time.Time) 2024-03-18 17:22:13 +0000 UTC                                                                                                          
})                                                                                                                                                              

2024-03-19 10:59:56.238 [DBG] LOOP: 'cheddar-tbtc', policy=(*lndclient.RoutingPolicy)(0xc000804870)({                                                           
 TimeLockDelta: (uint32) 40,                                                                                                                                    
 MinHtlcMsat: (int64) 1000,                                                                                                                                     
 MaxHtlcMsat: (uint64) 4950000000,                                                                                                                              
 FeeBaseMsat: (int64) 1000,                                                                                                                                     
 FeeRateMilliMsat: (int64) 2500,                                                                                                                                
 Disabled: (bool) false,                                                                                                                                        
 LastUpdate: (time.Time) 2024-03-18 17:22:13 +0000 UTC                                                                                                          
}) 
..........
2024-03-19 10:59:56.243 [DBG] LOOP: Saved MC state: (map[route.Vertex]lndclient.MissionControlEntry) (len=2) {                                                  
 (route.Vertex) (len=33 cap=33) 020ec0c6a0c4fe5d8a79928ead294c36234a76f6e0dca896c35413612a3fd8dbf8: (lndclient.MissionControlEntry) {                           
  NodeFrom: (route.Vertex) (len=33 cap=33) 020ec0c6a0c4fe5d8a79928ead294c36234a76f6e0dca896c35413612a3fd8dbf8,                                                  
  NodeTo: (route.Vertex) (len=33 cap=33) 0223acffd7f363b4591ce860eda870fea352e981212d8a25e96a0ebea37faae288,                                                    
  FailTime: (time.Time) 0001-01-01 00:00:00 +0000 UTC,                                                                                                          
  FailAmt: (lnwire.MilliSatoshi) 0 mSAT,                                                                                                                        
  SuccessTime: (time.Time) 2024-03-19 02:14:00 +0000 UTC,                                                                                                       
  SuccessAmt: (lnwire.MilliSatoshi) 220654000 mSAT                                                                                                              
 },                                                                                                                                                             
 (route.Vertex) (len=33 cap=33) 021713d5331898c206b57c4f7d40635079de9a97d97782646f31dac18a53f2d979: (lndclient.MissionControlEntry) {                           
  NodeFrom: (route.Vertex) (len=33 cap=33) 021713d5331898c206b57c4f7d40635079de9a97d97782646f31dac18a53f2d979,                                                  
  NodeTo: (route.Vertex) (len=33 cap=33) 0223acffd7f363b4591ce860eda870fea352e981212d8a25e96a0ebea37faae288,                                                    
  FailTime: (time.Time) 0001-01-01 00:00:00 +0000 UTC,                                                                                                          
  FailAmt: (lnwire.MilliSatoshi) 0 mSAT,                                                                                                                        
  SuccessTime: (time.Time) 2024-03-17 22:24:07 +0000 UTC,                                                                                                       
  SuccessAmt: (lnwire.MilliSatoshi) 220684000 mSAT                                                                                                              
 }                                                                                                                                                              
}                                                                                                                                                               

2024-03-19 10:59:56.243 [INF] LOOP: 2fd6fe Acquired routing plugin Low/High for payment 2fd6feebe4196544a73eab4661b339bdf8ad1e05f89ca66268e780d1c253e6e4        
2024-03-19 10:59:56.243 [INF] LOOP: 2fd6fe Payment (2fd6feebe4196544a73eab4661b339bdf8ad1e05f89ca66268e780d1c253e6e4) try count 1/3 (plugin=Low/High)           
2024-03-19 10:59:56.243 [INF] LOOP: 2fd6fe Payment (dd74d40c7ccde50fa520ac949bf1272fb9daa3b368a80e8c5807f27a50b29e91) try count 1/1 (plugin=None)               
2024-03-19 10:59:56.259 [INF] LOOP: 2fd6fe Payment 2fd6feebe4196544a73eab4661b339bdf8ad1e05f89ca66268e780d1c253e6e4: state=IN_FLIGHT, inflight_htlcs=0, inflight
_amt=0 mSAT                                                                                                                                                     
2024-03-19 10:59:56.259 [INF] LOOP: 2fd6fe Payment dd74d40c7ccde50fa520ac949bf1272fb9daa3b368a80e8c5807f27a50b29e91: state=IN_FLIGHT, inflight_htlcs=0, inflight
_amt=0 mSAT                                                                                                                                                     
2024-03-19 10:59:56.288 [INF] LOOP: 2fd6fe Payment 2fd6feebe4196544a73eab4661b339bdf8ad1e05f89ca66268e780d1c253e6e4: state=IN_FLIGHT, inflight_htlcs=1, inflight
_amt=220654000 mSAT                                                                                                                                             
2024-03-19 10:59:56.288 [INF] LOOP: 2fd6fe Payment dd74d40c7ccde50fa520ac949bf1272fb9daa3b368a80e8c5807f27a50b29e91: state=IN_FLIGHT, inflight_htlcs=1, inflight
_amt=30000000 mSAT                                                                                                                                              
2024-03-19 10:59:58.453 [INF] LOOP: 2fd6fe Server update: SERVER_HTLC_PUBLISHED received, timestamp: 2024-03-19 10:59:58.404409354 +0000 UTC                    
2024-03-19 11:07:59.236 [INF] LOOP: 2fd6fe Server update: SERVER_HTLC_CONFIRMED received, timestamp: 2024-03-19 11:07:59.187066845 +0000 UTC                    
2024-03-19 11:07:59.314 [INF] LOOP: 2fd6fe Payment **dd74d40c7ccde50fa520ac949bf1272fb9daa3b368a80e8c5807f27a50b29e91**: state=SUCCEEDED                            
2024-03-19 11:07:59.816 [INF] LOOP: Received block 2582634                                                                                                      
2024-03-19 11:07:59.817 [INF] LOOP: 2fd6fe Checking preimage reveal height 2582713 exceeded (height 2582634)                                                    
2024-03-19 11:07:59.819 [INF] LOOP: 2fd6fe Swap script confirmed on chain                                                                                       
2024-03-19 11:07:59.819 [INF] LOOP: 2fd6fe Htlc tx 2d1c30a3f032a52e406ad2ab0788a3a6b422443b60d38b70965e3ffa43bf7656 at height 2582634                           
2024-03-19 11:07:59.820 [INF] LOOP: 2fd6fe Htlc value: 0.00250000 BTC                                                                                           
2024-03-19 11:08:00.824 [INF] SWEEP: Batcher handling sweep 2fd6feebe419, completed=false                                                                       
2024-03-19 11:08:00.825 [INF] LOOP: 2fd6fe Loop out swap state: PreimageRevealed                                                                                
2024-03-19 11:08:00.825 [INF] LOOP: 2fd6fe Pushing preimage to server                                                                                           
2024-03-19 11:08:00.827 [INF] SWEEP: [Batch 2] started, primary 000000000000, total sweeps 0                                                                    
2024-03-19 11:08:00.828 [INF] SWEEP: [Batch 2] adding sweep 2fd6feebe419                                                                                        
2024-03-19 11:08:00.828 [INF] SWEEP: [Batch 2] monitoring spend for outpoint 2d1c30a3f032a52e406ad2ab0788a3a6b422443b60d38b70965e3ffa43bf7656:0                 
2024-03-19 11:08:00.830 [DBG] SWEEP: [Batch 2] received block 2582634                                                                                           
2024-03-19 11:08:00.929 [INF] LOOP: 2fd6fe Server update: SERVER_SUCCESS received, timestamp: 2024-03-19 11:08:00.880578535 +0000 UTC                           
2024-03-19 11:08:00.929 [INF] LOOP: 2fd6fe swap subscription: server finished serving updates                                                                   
2024-03-19 11:08:00.994 [INF] LOOP: 2fd6fe Off chain payment succeeded                                                                                          
2024-03-19 11:08:00.994 [INF] LOOP: 2fd6fe Payment **2fd6feebe4196544a73eab4661b339bdf8ad1e05f89ca66268e780d1c253e6e4**: state=SUCCEEDED                            
2024-03-19 11:08:01.103 [DBG] LOOP: MC state not changed, skipping restore                                                                                      
2024-03-19 11:08:01.331 [INF] SWEEP: [Batch 2] initializing rbf fee rate for conf target=9                                                                      
2024-03-19 11:08:01.483 [DBG] SWEEP: [Batch 2] attempting to publish coop tx with feerate=272 sat/kw, totalfee=0.00000121 BTC, sweeps=1, destAddr=tb1qkljku7hjfn
ec37lrth38x44mkd0umdx4hl33pd                                                                                                                                    
2024-03-19 11:08:01.513 [INF] SWEEP: [Batch 2] published, total sweeps: 1, fees: 0.00000121 BTC                                                                 
2024-03-19 11:08:01.513 [INF] SWEEP: [Batch 2] published sweep 2fd6feebe419, value: 0.00250000 BTC                                                              
2024-03-19 11:12:55.489 [DBG] LQDY: no rules configured for autoloop                                                                                            
2024-03-19 11:19:16.544 [DBG] SWEEP: [Batch 2] received block 2582635                                                                                           
2024-03-19 11:19:17.309 [DBG] SWEEP: [Batch 2] attempting to publish coop tx with feerate=372 sat/kw, totalfee=0.00000165 BTC, sweeps=1, destAddr=tb1qkljku7hjfn
ec37lrth38x44mkd0umdx4hl33pd                                                                                                                                    
2024-03-19 11:19:17.330 [WRN] SWEEP: [Batch 2] co-op publish error: rpc error: code = Unknown desc = transaction rejected: output already spent                 
2024-03-19 11:19:17.330 [WRN] SWEEP: [Batch 2] publish error: rpc error: code = Unknown desc = transaction rejected: output already spent                       
2024-03-19 11:19:17.547 [INF] SWEEP: Batcher handling sweep 2fd6feebe419, completed=false                                                                       
2024-03-19 11:21:11.333 [DBG] SWEEP: [Batch 2] received block 2582636                                                                                           
2024-03-19 11:21:11.336 [INF] SWEEP: [Batch 2] spent, total sweeps: 1, purged sweeps: 0                                                                         
2024-03-19 11:21:11.336 [INF] LOOP: 2fd6fe Htlc spend by tx: 8dc8ee79d338169c5a84ebfd3a538891505687191b1169fde607a88ca4de09c1                                   
2024-03-19 11:21:11.336 [INF] LOOP: 2fd6fe Wait for server pulling off-chain payment(s)                                                                         
2024-03-19 11:21:11.336 [INF] LOOP: 2fd6fe Swap completed: Success (final cost: server 0.00000654 BTC, onchain 0.00000121 BTC, offchain 0.00000252 BTC)         
2024-03-19 11:21:11.338 [INF] LOOP: 2fd6fe Loop out swap state: Success

【3】Payments come from two channels, but I only select one channel , it is 2839628416710541312

{
    "code": "200",
    "success": true,
    "msg": "ok",
    "data": {
        "payments": [
            {
                "payment_hash": "2fd6feebe4196544a73eab4661b339bdf8ad1e05f89ca66268e780d1c253e6e4",
                "value": "220654",
                "creation_date": "1710845996",
                "fee": "221",
                "payment_preimage": "de88a80321d4be6c11233d47e8dd5aae8aa100a16565e333c30a068e1e619001",
                "value_sat": "220654",
                "value_msat": "220654000",
                "payment_request": "lntb2206540n1pjljupvpp59lt0a6lyr9j5ffe74drxrveehhu268s9lzw2vcngu7qdrsjnumjqdy9wdmkzupq95s8xcmjd9c8gw3qx5cnyvp38yer2v33x9jrwefeve3nxe3exs6rzvny8q6k2wp3xvmkxetyvfnrgwrzvdjnyvtrv3jk2erzx4jnscfcvcerwv3kxgmx2vf5xcmnscqzxgxq97zvuqrzjqg36el7h7d3mgkguapswm2rsl63496vpyykc5f0fdg8tagml4t3g3apyqqqqqqqqruqqqqqqqqqqqqqq9qsp5802k8l0ynm5arrkz7r0h36f6tca7jnh6ngryfltsvx908yzvfsqq9qyyssqvmrphgrdtl0rdvzsmtssxhu4ytugdpnhrmyjf4n5er4gx2qmkyjscshqvdr6f5hqcmx4qygf4wyjkdulxtfxsde9uad638gjsdvth5spqxmfd9",
                "status": "SUCCEEDED",
                "fee_sat": "221",
                "fee_msat": "221654",
                "creation_time_ns": "1710845996245058691",
                "htlcs": [
                    {
                        "attempt_id": "12000",
                        "status": "SUCCEEDED",
                        "route": {
                            "total_time_lock": 2582956,
                            "total_fees": "221",
                            "total_amt": "220875",
                            "hops": [
                                {
                                    **"chan_id": "2839628416710541312",** //  2839628416710541312 payed 220654 sat 
                                    "chan_capacity": "1000000",
                                    "amt_to_forward": "220654",
                                    "fee": "221",
                                    "expiry": 2582876,
                                    "amt_to_forward_msat": "220654000",
                                    "fee_msat": "221654",
                                    "pub_key": "020ec0c6a0c4fe5d8a79928ead294c36234a76f6e0dca896c35413612a3fd8dbf8",
                                    "tlv_payload": true,
                                    "mpp_record": null,
                                    "amp_record": null,
                                    "custom_records": {},
                                    "metadata": ""
                                },
                                {
                                    "chan_id": "2839498674337218560",
                                    "chan_capacity": "5000000",
                                    "amt_to_forward": "220654",
                                    "fee": "0",
                                    "expiry": 2582836,
                                    "amt_to_forward_msat": "220654000",
                                    "fee_msat": "0",
                                    "pub_key": "0223acffd7f363b4591ce860eda870fea352e981212d8a25e96a0ebea37faae288",
                                    "tlv_payload": true,
                                    "mpp_record": null,
                                    "amp_record": null,
                                    "custom_records": {},
                                    "metadata": ""
                                },
                                {
                                    "chan_id": "17592186044416000031",
                                    "chan_capacity": "220654",
                                    "amt_to_forward": "220654",
                                    "fee": "0",
                                    "expiry": 2582836,
                                    "amt_to_forward_msat": "220654000",
                                    "fee_msat": "0",
                                    "pub_key": "024ef6d6cb79add6f6f7c144519822a17248c244c8370db35a48a25c9a1db8ffd3",
                                    "tlv_payload": true,
                                    "mpp_record": {
                                        "payment_addr": "O9Vj/eSe6dGOwvDfeOk6XjvpTvqaBkT9cGGK85BMTAA=",
                                        "total_amt_msat": "220654000"
                                    },
                                    "amp_record": null,
                                    "custom_records": {},
                                    "metadata": ""
                                }
                            ],
                            "total_fees_msat": "221654",
                            "total_amt_msat": "220875654"
                        },
                        "attempt_time_ns": "1710845996275493601",
                        "resolve_time_ns": "1710846480980997092",
                        "failure": null,
                        "preimage": "3oioAyHUvmwRIz1H6N1aroqhAKFlZeMzwwoGjh5hkAE="
                    }
                ],
                "payment_index": "15001",
                "failure_reason": "FAILURE_REASON_NONE"
            },
            {
                "payment_hash": "dd74d40c7ccde50fa520ac949bf1272fb9daa3b368a80e8c5807f27a50b29e91",
                "value": "30000",
                "creation_date": "1710845996",
                "fee": "31",
                "payment_preimage": "5f84e283c43ebf6660f51b18c088204be0298e26c5c8f3a9d37e57996c5b8505",
                "value_sat": "30000",
                "value_msat": "30000000",
                "payment_request": "lntb300u1pjljupvpp5m46dgrruehjslffq4j2fhuf897ua4gandz5qarzcqle8559jn6gsdq2wpex2urp0ycqzxgxq97zvuqrzjqg36el7h7d3mgkguapswm2rsl63496vpyykc5f0fdg8tagml4t3g3apyqqqqqqqqruqqqqqqqqqqqqqq9qsp5506ym6y878tlmaaskl3w0t3flv48zam5gwkd3zq8eayfu2xcw8jq9qyyssqeacpl2j225wfyzn9x3r5cdrvzwnwmw3s9g43z32qnw8lkzdrex33rwluxd4y73xvm2a4xz0k7w9wgmjwt9thx8r8zvgs26j6f0mdcasp7vn3h4",
                "status": "SUCCEEDED",
                "fee_sat": "31",
                "fee_msat": "31000",
                "creation_time_ns": "1710845996245098527",
                "htlcs": [
                    {
                        "attempt_id": "12001",
                        "status": "SUCCEEDED",
                        "route": {
                            "total_time_lock": 2582956,
                            "total_fees": "31",
                            "total_amt": "30031",
                            "hops": [
                                {
                                    **"chan_id": "2839500873376923649"**, //  2839500873376923649 payed 30000 sat
                                    "chan_capacity": "1500000",
                                    "amt_to_forward": "30000",
                                    "fee": "31",
                                    "expiry": 2582876,
                                    "amt_to_forward_msat": "30000000",
                                    "fee_msat": "31000",
                                    "pub_key": "020ec0c6a0c4fe5d8a79928ead294c36234a76f6e0dca896c35413612a3fd8dbf8",
                                    "tlv_payload": true,
                                    "mpp_record": null,
                                    "amp_record": null,
                                    "custom_records": {},
                                    "metadata": ""
                                },
                                {
                                    "chan_id": "2839498674337218560",
                                    "chan_capacity": "5000000",
                                    "amt_to_forward": "30000",
                                    "fee": "0",
                                    "expiry": 2582836,
                                    "amt_to_forward_msat": "30000000",
                                    "fee_msat": "0",
                                    "pub_key": "0223acffd7f363b4591ce860eda870fea352e981212d8a25e96a0ebea37faae288",
                                    "tlv_payload": true,
                                    "mpp_record": null,
                                    "amp_record": null,
                                    "custom_records": {},
                                    "metadata": ""
                                },
                                {
                                    "chan_id": "17592186044416000031",
                                    "chan_capacity": "30000",
                                    "amt_to_forward": "30000",
                                    "fee": "0",
                                    "expiry": 2582836,
                                    "amt_to_forward_msat": "30000000",
                                    "fee_msat": "0",
                                    "pub_key": "024ef6d6cb79add6f6f7c144519822a17248c244c8370db35a48a25c9a1db8ffd3",
                                    "tlv_payload": true,
                                    "mpp_record": {
                                        "payment_addr": "o/RN6Ifx1/33sLfi564p+ypxd3RDrNiIB89InijYceQ=",
                                        "total_amt_msat": "30000000"
                                    },
                                    "amp_record": null,
                                    "custom_records": {},
                                    "metadata": ""
                                }
                            ],
                            "total_fees_msat": "31000",
                            "total_amt_msat": "30031000"
                        },
                        "attempt_time_ns": "1710845996275506865",
                        "resolve_time_ns": "1710846479299174470",
                        "failure": null,
                        "preimage": "X4Tig8Q+v2Zg9RsYwIggS+ApjibFyPOp035XmWxbhQU="
                    }
                ],
                "payment_index": "15002",
                "failure_reason": "FAILURE_REASON_NONE"
            }
        ],
        "first_index_offset": "15001",
        "last_index_offset": "15002",
        "total_num_payments": "0"
    }
}
hieblmi commented 5 months ago

It looks like the loop out pre-payment isn't sent over the channel that was selected for the loop-out.

EDIT: This will be fixed in the next version of Loop.