-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoice contains route hint to closed channel #419
Comments
Indeed it looks like we got extremely unlucky, as the following snippet shows:
So the invoice was created less than 2 seconds before we learned about the channel being closed. This is a symptom of Blockchain lag (#347) and should be mostly addressed. Notice that we can't quite exclude this from happening in rare occasions, but we should add all available channels, so a single closed one should not be a big deal. If it turns out to happen more frequently we'll have to add the closed channel detection to the routing server and check with it before including it in an invoice. Notice that even in this case, the temporal separation between invoice creation and payment, this may always happen, i.e., channel was open while the invoice was created, but closing before it is being paid, and we need to be robust to handle this correctly in the LN implementation itself. Closing as it was addressed. |
This invoice was created today
lnbc4325770n1pnzlxm2dq6gf5hgcm0d9hzq4rjv9h8xen9wgpp5j2v472f5m903s6jn9t2klf7ku5pa4lr6vh209fqkr8mdm406j6esxqy9gcqsp5yvmskp053rtutlr4gtfpe7ugz5jlf2kg27f49kxw42h5934qndwq9qrsgqcqzysrzjqfj2v2jrqltsrsz2g6v5ee04xga3eg5vsrrxku7xx8dukzvs6m5r2vmp84sqhsljrsqqqqlgqqqqqzsqjqh2ppqm7c3say8n2vfcwtu0q9rekydrhqzjv7cqq6k5yxjlm5u6cpj9e8lr8gw90j9nnulc6gaw8ytgvz26nzxtzxsjf86056dsl0x2qqk9jut9
for node036d6d6e23f13e2f0033cc582b67b6d5b4ae0e78e192ea8338e7ca8fa03ce4e1ba
It contains a route hint to the channel
funding tx:
d9efda963ae52266ca4c47276036da76328e31870ee160bc0a9d8a79017c055a:0
short_channel_id:
839435x2669x0
remote alias:
3367229x6294467x61980
That channel was closed 13 days ago.
I assume the user's node was not up-to-date with the chain when creating this invoice, hence didn't know about the closed channel. In this case the invoice was tied to an onchain swap with the Breez SDK, but turns out to be unpayable, because of the closed channel.
The text was updated successfully, but these errors were encountered: