Closed Raphman90 closed 8 months ago
Hi @Raphman90, thanks for raising this issue.
Could you check lncli getinfo
and see if you are synced_to_chain
?
Thanks for the quick response, yeah synced_to_chain and synced_to_graph are both true.
could you post the output of loop listswaps
here?
sure thing. I guess whatever I thought were the swap IDs were not, I need to do more reading haha
"swaps": [
{
"amt": "250000",
"id": "107b65d223e9fc6ba33e80172130ec82537d054fbf62b589d22cb320f1e4eacf",
"id_bytes": "107b65d223e9fc6ba33e80172130ec82537d054fbf62b589d22cb320f1e4eacf",
"type": "LOOP_OUT",
"state": "FAILED",
"failure_reason": "FAILURE_REASON_OFFCHAIN",
"initiation_time": "1706912688618429893",
"last_update_time": "1706913361517652633",
"htlc_address": "bc1pnfuzvffal0pcal595tp02j99463gyujjchwejjfs0vk37k7rp35ste783w",
"htlc_address_p2wsh": "bc1pnfuzvffal0pcal595tp02j99463gyujjchwejjfs0vk37k7rp35ste783w",
"htlc_address_p2tr": "",
"cost_server": "0",
"cost_onchain": "0",
"cost_offchain": "0",
"last_hop": "",
"outgoing_chan_set": [],
"label": ""
},
{
"amt": "250000",
"id": "e31cef98d5d591c9f324eca60e6e374700a2cd4aea3906cdc4d142f19a24524a",
"id_bytes": "e31cef98d5d591c9f324eca60e6e374700a2cd4aea3906cdc4d142f19a24524a",
"type": "LOOP_OUT",
"state": "FAILED",
"failure_reason": "FAILURE_REASON_OFFCHAIN",
"initiation_time": "1706914731358241113",
"last_update_time": "1706915830454619563",
"htlc_address": "bc1pnkxwgy83vn552uwpjj4sn268yszkf5thkm6jl2qy229utyxydhus0v6l5g",
"htlc_address_p2wsh": "bc1pnkxwgy83vn552uwpjj4sn268yszkf5thkm6jl2qy229utyxydhus0v6l5g",
"htlc_address_p2tr": "",
"cost_server": "0",
"cost_onchain": "0",
"cost_offchain": "0",
"last_hop": "",
"outgoing_chan_set": [],
"label": ""
}
]
}
Thanks, so FAILURE_REASON_OFFCHAIN
means that that a lightning payment(prepay or loop-out payment) failed because there could not be found any route to the LOOP server.
That could have different reasons, I see you only have one channel, so maybe your graph is incomplete and no route can be constructed.
It could also be an intermittent issue, you could try again.
Re the lost sats.
Could you do lncli listpayments
and lncli listchannels
and post it here?
Yeah, I would imagine I just couldn't find a route which makes sense, I'll have to open another channel a little closer to the loop node itself.
here's list payments:
"payments": [
{
"payment_hash": "b535bc1f7e0bcfc9dd80e6009930eb37b1912942ae1f56858ac6c71c61540def",
"value": "1",
"creation_date": "1706912686",
"fee": "1",
"payment_preimage": "1a422ec50152a0ef694b491fdf021d8247abb5fc428775a75795da65e85e2598",
"value_sat": "1",
"value_msat": "1000",
"payment_request": "lnbc10n1pjm66awpp5k56mc8m7p08unhvqucqfjv8tx7cez22z4c04dpv2cmr3cc25phhsdq8f3f5z4qcqzysxqyz5vqsp5j8sgvh8eh2lev2g4fx60gmwuxywwycxmr3ww8fmmmn9erjje7wus9qyyssq5skwq8ymhqfhgcdwcd5s4hff2l6fqfdt466a246h2qj5zu67mnl5nwprn4yjlc2tte73j4mzkqd8wqkwm93r48aqvc3z8jr85yj42kgp8hlamh",
"status": "SUCCEEDED",
"fee_sat": "1",
"fee_msat": "1001",
"creation_time_ns": "1706912686099082610",
"htlcs": [
{
"attempt_id": "1",
"status": "SUCCEEDED",
"route": {
"total_time_lock": 829048,
"total_fees": "1",
"total_amt": "2",
"hops": [
{
"chan_id": "911079524211490817",
"chan_capacity": "900000",
"amt_to_forward": "1",
"fee": "1",
"expiry": 828968,
"amt_to_forward_msat": "1001",
"fee_msat": "1000",
"pub_key": "03bc9337c7a28bb784d67742ebedd30a93bacdf7e4ca16436ef3798000242b2251",
"tlv_payload": true,
"mpp_record": null,
"amp_record": null,
"custom_records": {
},
"metadata": null
},
{
"chan_id": "909531411684065280",
"chan_capacity": "10030119",
"amt_to_forward": "1",
"fee": "0",
"expiry": 828928,
"amt_to_forward_msat": "1001",
"fee_msat": "0",
"pub_key": "02a2cda2072a9da486659b9e92fd38360396b07b5792b88e434a0bd78889a1fcf1",
"tlv_payload": true,
"mpp_record": null,
"amp_record": null,
"custom_records": {
},
"metadata": null
},
{
"chan_id": "910099859276431360",
"chan_capacity": "1000000",
"amt_to_forward": "1",
"fee": "0",
"expiry": 828784,
"amt_to_forward_msat": "1000",
"fee_msat": "1",
"pub_key": "03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f",
"tlv_payload": true,
"mpp_record": null,
"amp_record": null,
"custom_records": {
},
"metadata": null
},
{
"chan_id": "909461043006275584",
"chan_capacity": "210000000",
"amt_to_forward": "1",
"fee": "0",
"expiry": 828784,
"amt_to_forward_msat": "1000",
"fee_msat": "0",
"pub_key": "021c97a90a411ff2b10dc2a8e32de2f29d2fa49d41bfbb52bd416e460db0747d0d",
"tlv_payload": true,
"mpp_record": {
"payment_addr": "91e0865cf9babf96291549b4f46ddc311ce260db1c5ce3a77bdccb91ca59f3b9",
"total_amt_msat": "1000"
},
"amp_record": null,
"custom_records": {
},
"metadata": null
}
],
"total_fees_msat": "1001",
"total_amt_msat": "2001"
},
"attempt_time_ns": "1706912686166359531",
"resolve_time_ns": "1706912688471063499",
"failure": null,
"preimage": "1a422ec50152a0ef694b491fdf021d8247abb5fc428775a75795da65e85e2598"
}
],
"payment_index": "1",
"failure_reason": "FAILURE_REASON_NONE"
}
],
"first_index_offset": "1",
"last_index_offset": "1",
"total_num_payments": "0"
}
and list channels:
"channels": [
{
"active": true,
"remote_pubkey": "03bc9337c7a28bb784d67742ebedd30a93bacdf7e4ca16436ef3798000242b2251",
"channel_point": "7782632b2a243574d55e62d75c8b7eb28b489c2c05d4baa3603b2343d07e7cd7:1",
"chan_id": "911079524211490817",
"capacity": "900000",
"local_balance": "896527",
"remote_balance": "2",
"commit_fee": "3143",
"commit_weight": "772",
"fee_per_kw": "2500",
"unsettled_balance": "0",
"total_satoshis_sent": "2",
"total_satoshis_received": "0",
"num_updates": "44",
"pending_htlcs": [
],
"csv_delay": 144,
"private": false,
"initiator": true,
"chan_status_flags": "ChanStatusDefault",
"local_chan_reserve_sat": "9000",
"remote_chan_reserve_sat": "9000",
"static_remote_key": false,
"commitment_type": "ANCHORS",
"lifetime": "255183",
"uptime": "255173",
"close_address": "",
"push_amount_sat": "0",
"thaw_height": 0,
"local_constraints": {
"csv_delay": 144,
"chan_reserve_sat": "9000",
"dust_limit_sat": "354",
"max_pending_amt_msat": "891000000",
"min_htlc_msat": "1000",
"max_accepted_htlcs": 483
},
"remote_constraints": {
"csv_delay": 144,
"chan_reserve_sat": "9000",
"dust_limit_sat": "354",
"max_pending_amt_msat": "891000000",
"min_htlc_msat": "1",
"max_accepted_htlcs": 483
},
"alias_scids": [
],
"zero_conf": false,
"zero_conf_confirmed_scid": "0",
"peer_alias": "LNBϟG [Edge-2]",
"peer_scid_alias": "0"
}
]
}
so yeah, you didn't loose the 3473 sats, you don't see them cause they are fees for commitment transactions and anchor outputs that might be needed in the future.
So it's 900.000 capacity - 3143 commit_fee - 330 anchor output = local balance 896527
ah ha, gotchya that makes sense. Thank you for taking the time and walking me through this, I appreciate it greatly @hieblmi !
Hello!
I was trying to use loop out for the first time, attempting twice to give myself some incoming liquidity. both attempts failed, the HTLCs have expired, yet it seems like I am missing 3,473 sats.
the two loop IDs are 4xzvmNXVkcnzJOymDm43RwCizUrqOQbNxNFC8ZokUko= EHtl0iPp/GujPoAXITDsglN9BU+/YrWJ0iyzIPHk6s8= the various versions of things I'm using are:
the latest release of loop, 0.27 version 0.16.3 of LND bitcoin core 24.01 and RTL 0.14 I've attached my log in case it's helpful!
loopd.log