-
Notifications
You must be signed in to change notification settings - Fork 92
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
mod+itest: reproduce and fix reverse direction invoice payment, bump to rc4 #790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff LGTM
itest seems unhappy, doesn't look related to these changes
https://github.com/lightninglabs/lightning-terminal/actions/runs/9890241755/job/27318070143?pr=790#step:6:1335
itest/litd_custom_channels_test.go
Outdated
) | ||
logBalance(t.t, nodes, assetID, "after keysend back") | ||
payInvoiceWithAssets(t.t, dave, charlie, invoiceResp, assetID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so prior to fix the sender would crash here saying there's no available path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, a NO_ROUTE error would be thrown here.
9d14d7c
to
4c72c55
Compare
Oops, I had a change in the flag name in there that isn't referenced yet. Will need to update |
783e679
to
787c913
Compare
I assume I should have expected this version of I tried to run this patch, but ran into the following panic:
|
787c913
to
87fca7d
Compare
Sorry, I forgot to mention that. Yes, we renamed the config flag because its name was actually wrong. |
A direct peer payment in the opposite direction now works, but when I perform a multi-hop payment in the opposite direction, it results in a I have setup a regtest network with the following setup.
I performed the following steps:
Here are the logs for all of the nodes. |
When I try to make a large direct peer invoice payment, it results in the litd process hanging and needing to be killed. It won't shutdown gracefully. This regtest network just has 2 litd nodes. I perform these steps to reproduce the error.
|
The first issue above (#790 (comment)) is fixed with the latest push. The second issue (#790 (comment)) is likely a bit more involved, so I spun it out into a separate issue report: lightninglabs/taproot-assets#1013 |
I am running this now, litd started up promptly and seems to be running smoothly! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first issue above (#790 (comment)) is fixed with the latest push.
tACK 🔥 Confirmed the first issue is resolved now. Thank you for the quick fix 💪
78fa03c
to
29be963
Compare
Fixes a bug that when an invoice is paid, the full invoice amount is checked when validating the local channel balance and reserve. But for custom channels the actual HTLC amount might be just above dust and shouldn't validate the channel reserve. We update our itest to reproduce the issue and then update to the lnd commit that fixes it.
9e15e61
to
997854b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-ACK
We don't need to set the shard size in every test, as the max_htlc value in the actual routing network will force splits if needed. When we go to send a large payment, with this value, and the default max parts value of 16, we'll never be able to send enough shards to finalize a payment amount.
We add a 1 second sleep as at times the balances haven't fully propagated, so we'll tend to use a max amount value of 0.
e3f94e4
to
b9e6bb5
Compare
Reported offline by @jamaljsr.
Depends on lightningnetwork/lnd#8908.
Depends on lightninglabs/taproot-assets#1011.
Fixes a bug that when an invoice is paid, the full invoice amount is checked when validating the local channel balance and reserve. But for custom channels the actual HTLC amount might be just above dust and shouldn't validate the channel reserve.
We update our itest to reproduce the issue and then update to the lnd commit that fixes it.