-
Notifications
You must be signed in to change notification settings - Fork 902
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
Unilateral close: Can't find HTLC to resend? #1907
Comments
This is on v0.6.1rc1 |
rustyrussell
added a commit
to rustyrussell/lightning
that referenced
this issue
Sep 4, 2018
It's an array: we were only saving the single element; if there was more than one changed HTLC we'd get a bad signature! The report in ElementsProject#1907 is probably caused by the other side re-requesting something we considered already finalized; to avoid this particular error, we should set the field to NULL if there's no last_sent_commit. I'm increasingly of the opinion we want to just save all the update packets to the db and blast them out, instead of doing this second-guessing dance. Fixes: ElementsProject#1907 Signed-off-by: Rusty Russell <[email protected]>
rustyrussell
added a commit
to rustyrussell/lightning
that referenced
this issue
Sep 4, 2018
It's an array: we were only saving the single element; if there was more than one changed HTLC we'd get a bad signature! The report in ElementsProject#1907 is probably caused by the other side re-requesting something we considered already finalized; to avoid this particular error, we should set the field to NULL if there's no last_sent_commit. I'm increasingly of the opinion we want to just save all the update packets to the db and blast them out, instead of doing this second-guessing dance. Fixes: ElementsProject#1907 Signed-off-by: Rusty Russell <[email protected]>
rustyrussell
added a commit
to rustyrussell/lightning
that referenced
this issue
Sep 4, 2018
It's an array: we were only saving the single element; if there was more than one changed HTLC we'd get a bad signature! The report in ElementsProject#1907 is probably caused by the other side re-requesting something we considered already finalized; to avoid this particular error, we should set the field to NULL if there's no last_sent_commit. I'm increasingly of the opinion we want to just save all the update packets to the db and blast them out, instead of doing this second-guessing dance. Fixes: ElementsProject#1907 Signed-off-by: Rusty Russell <[email protected]>
rustyrussell
added a commit
to rustyrussell/lightning
that referenced
this issue
Sep 4, 2018
It's an array: we were only saving the single element; if there was more than one changed HTLC we'd get a bad signature! The report in ElementsProject#1907 is probably caused by the other side re-requesting something we considered already finalized; to avoid this particular error, we should set the field to NULL if there's no last_sent_commit. I'm increasingly of the opinion we want to just save all the update packets to the db and blast them out, instead of doing this second-guessing dance. Fixes: ElementsProject#1907 Signed-off-by: Rusty Russell <[email protected]>
that was fast! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed this in my logs when I booted up my node this morning:
grep -e 02cdf83ef8e45908b1092125d25c68dcec7751ca8d39f557775cd842e5bc127469 -e HTLC
:full log: https://jb55.com/s/lightningd-bitcoin-2018-09-03-1103.txt
peer:
The text was updated successfully, but these errors were encountered: