-
Notifications
You must be signed in to change notification settings - Fork 268
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
Two expired HTLCs followed by remote force-close with testnet Eclair node #1110
Comments
Ok so block Our last commitments before that were:
Where htlcs are:
Indeed something is fishy, I see a parsing error in the logs. Is there anything special about those htlcs? |
Not in a sense that I did something special to those HTLCs, those two payments had many retries with rather long routes and ended up stuck eventually. Sadly I don't have that channel data by now. |
@t-bast could be related to #976? We received this failure from a downstream node:
Which has a 260-bytes failure packet, but we are expecting a 292-bytes field in the below code resulting in a eclair/eclair-core/src/main/scala/fr/acinq/eclair/crypto/Sphinx.scala Lines 320 to 321 in 8da509b
|
Interesting, I checked our code and I don't think we can generate such invalid onion errors (it looks like the mac is missing). However we might not be propagating the failure correctly upstream when we receive such an invalid onion, I'll fix that. I'll have a quick look at lnd and c-lightning to see if they have a bug. It's likely that one of the implementations introduced that bug when implementing variable-length onion (or it's a malicious node somewhere). |
Thanks for spotting this @btcontract, good catch! |
Remote node is endurance, channel id is
f3f72886a022c36329257fc459478201512d2744facffc3a3b343a4e25e9ce34
, there were two stuck HTLCs with expiration at block1575802
but endurance was not failing them after that deadline has passed.Channel was eventually force-closed by endurance with this commit tx: https://testnet.smartbit.com.au/tx/5176657c307a30ae61d3217cfcca8b7d5e0aba297dfa2b2911e826d559db2abb
The text was updated successfully, but these errors were encountered: