Skip to content

[bug]: can't find route through a channel I know about and I can reach its channel peer #10056

@ZZiigguurraatt

Description

@ZZiigguurraatt

I'm running the LND version found in lightninglabs/lightning-terminal#1097 .

I'm trying to reach node 02cfdbb9872fae741c2da1c8e43191a6736be23d01875b14e1c4344a6958001f43, but can't. I used to be able to before upgrading.

431de8e23386:/$ lncli queryroutes --amt 1 --dest 02cfdbb9872fae741c2da1c8e43191a6736be23d01875b14e1c4344a6958001f43
[lncli] rpc error: code = Unknown desc = unable to find a path to destination
431de8e23386:/$ 

There is a channel that node 0305011de51793582fe9dab5c6f56903f676899e4e93a457bfe3e35cab66bde208 has with 02cfdbb9872fae741c2da1c8e43191a6736be23d01875b14e1c4344a6958001f43 that I know about.

431de8e23386:/$ lncli getchaninfo --chan_point 526923e998077ebad0d9ba02832b5cd5e1be7b5e157d087335e66ed2ae090fb9:0
{
    "channel_id": "442003674431488",
    "chan_point": "526923e998077ebad0d9ba02832b5cd5e1be7b5e157d087335e66ed2ae090fb9:0",
    "last_update": 1752001791,
    "node1_pub": "02cfdbb9872fae741c2da1c8e43191a6736be23d01875b14e1c4344a6958001f43",
    "node2_pub": "0305011de51793582fe9dab5c6f56903f676899e4e93a457bfe3e35cab66bde208",
    "capacity": "5000000",
    "node1_policy": {
        "time_lock_delta": 80,
        "min_htlc": "1000",
        "fee_base_msat": "1000",
        "fee_rate_milli_msat": "1",
        "disabled": false,
        "max_htlc_msat": "4950000000",
        "last_update": 1752001788,
        "custom_records": {},
        "inbound_fee_base_msat": 0,
        "inbound_fee_rate_milli_msat": 0
    },
    "node2_policy": {
        "time_lock_delta": 80,
        "min_htlc": "1000",
        "fee_base_msat": "1000",
        "fee_rate_milli_msat": "1",
        "disabled": false,
        "max_htlc_msat": "4950000000",
        "last_update": 1752001791,
        "custom_records": {},
        "inbound_fee_base_msat": 0,
        "inbound_fee_rate_milli_msat": 0
    },
    "custom_records": {},
    "auth_proof": null
}
431de8e23386:/$ 

I can route to 0305011de51793582fe9dab5c6f56903f676899e4e93a457bfe3e35cab66bde208

431de8e23386:/$ lncli queryroutes --amt 1 --dest 0305011de51793582fe9dab5c6f56903f676899e4e93a457bfe3e35cab66bde208
{
    "routes": [
        {
            "total_time_lock": 874,
            "total_fees": "1",
            "total_amt": "2",
            "hops": [
                {
                    "chan_id": "387028093042688",
                    "chan_capacity": "100000",
                    "amt_to_forward": "1",
                    "fee": "1",
                    "expiry": 794,
                    "amt_to_forward_msat": "1000",
                    "fee_msat": "1000",
                    "pub_key": "03712a62dc9022079983aab1fbdfc166b6fef23ca3ab9bfaf0719dfe91dbe2498f",
                    "tlv_payload": true,
                    "mpp_record": null,
                    "amp_record": null,
                    "custom_records": {},
                    "metadata": "",
                    "blinding_point": "",
                    "encrypted_data": "",
                    "total_amt_msat": "0"
                },
                {
                    "chan_id": "398023209320448",
                    "chan_capacity": "5000000",
                    "amt_to_forward": "1",
                    "fee": "0",
                    "expiry": 794,
                    "amt_to_forward_msat": "1000",
                    "fee_msat": "0",
                    "pub_key": "0305011de51793582fe9dab5c6f56903f676899e4e93a457bfe3e35cab66bde208",
                    "tlv_payload": true,
                    "mpp_record": null,
                    "amp_record": null,
                    "custom_records": {},
                    "metadata": "",
                    "blinding_point": "",
                    "encrypted_data": "",
                    "total_amt_msat": "0"
                }
            ],
            "total_fees_msat": "1000",
            "total_amt_msat": "2000",
            "first_hop_amount_msat": "0",
            "custom_channel_data": ""
        }
    ],
    "success_prob": 1
}
431de8e23386:/$ 

therefor, I think I should be able to reach 02cfdbb9872fae741c2da1c8e43191a6736be23d01875b14e1c4344a6958001f43 .

Is there some more troubleshooting I can do to figure out why a route can't be found?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2should be fixed if one has timebugUnintended code behaviourneeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions