-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fwdinghistory doesn't include HTLCs settled using HTLC interceptor RPC #4910
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
Comments
I also see no mention of the |
If they were claimed by the |
They are a forward since the next step of the route was claimed by another node (just not a full BOLT compliant node). But rather than argue semantics, what I'd like is to understand where this claim is reflected and how to access it for accounting purpouses. The HTLC intercept API has no feedback on whether the |
It isn't a question of semantics given both the outgoing edge wasn't fully specified in the onion itself, as your system resolves it manually. A forward as defined within As a result, you'll need to externally account for this "special" case as If you want to track this progress externally, you can use the |
I think you have a misconception here. In our impl the outgoing edge is specified in the onion, LND is not the last hop of the onion but rather the previous one. We are simply implementing the outgoing link via HTTP. All the data
I dont understand this rationale. As I see it money gets shuffled around by the node and that should be recorded somewhere. It might be "special", but it still is a transaction executed by LND.
Perfect! We can make do with that. |
Background
At Muun we're using the HTLC interceptor RPC to settle HTLCs for our implementation of reverse swaps. I'm trying to determine whether the HTLC was properly claimed after the RPC call, but the fwdinghistory CLI command doesn't seem to include these HTLCs. In my tests, the HTLC seems to have been claimed by lnd since the sender received the preimage and the channel balances changed, but there seems to be no other record of this operation.
Your environment
lnd
:0.11.0-beta
Linux lnd-03-mainnet-0 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 Linux
0.19.0
Expected behaviour
See the HTLCs in the fwdinghistory for accounting purpouses.
Actual behaviour
They don't show up.
The text was updated successfully, but these errors were encountered: