-
Notifications
You must be signed in to change notification settings - Fork 27
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
Relai: Sweep is not executed after closed channel #433
Comments
This looks like an instance of #439, checking logs to corroborate this theory.
I notice that there are some lines related to HTLCs in onchaind being printed:
|
The good news is that the output is still being tracked:
So this might still happen, I just couldn't find the time at which it'll be cleared. Keeping this open until we either end up in #439 or it is resolved. |
Looking at this again, we now see that there is a sweep transaction in the mempool of blockstream.info: This one has a low feerate, but it is being swept. |
Looking a bit further into this and it looks as follows: The second stage HTLC transaction is what
Fetching this TX from the DB we find this:
So it is taking the 72ksat output and the 231722sat output of the closing transaction (HTLC and The good news is that once we have fixed this we can just trigger a rescan and it will be picked up correctly. |
@cdecker LMK when you do the rescan so we will update the user. Does it need any cln upgrade? |
Well, yes, because I'm working on the v24.02 upgrade and won't put that aside for a one-off fix. |
We used to fire up channeld to send this, but: 1. That's silly, we have all the information to make it ourselves. 2. We didn't do it if there was an error on the channel, which as of 24.02 there always is! 3. Running channeld *stops* onchaind, slowing recovery. Fixes: Blockstream/greenlight#433 Signed-off-by: Rusty Russell <[email protected]>
We used to fire up channeld to send this, but: 1. That's silly, we have all the information to make it ourselves. 2. We didn't do it if there was an error on the channel, which as of 24.02 there always is! 3. When it did work, running channeld *stops* onchaind, indefinitely slowing recovery. Fixes: Blockstream/greenlight#433 Changelog-Fixed: Protocol: we once again send CHANNEL_REESTABLISH responses on closing channels. Signed-off-by: Rusty Russell <[email protected]>
We used to fire up channeld to send this, but: 1. That's silly, we have all the information to make it ourselves. 2. We didn't do it if there was an error on the channel, which as of 24.02 there always is! 3. When it did work, running channeld *stops* onchaind, indefinitely slowing recovery. Fixes: Blockstream/greenlight#433 Changelog-Fixed: Protocol: we once again send CHANNEL_REESTABLISH responses on closing channels. Signed-off-by: Rusty Russell <[email protected]>
closing tx: https://blockstream.info/address/bc1qegwvckjfq8fv8terqxcu9nuv7dffn7n9y3htn69qjm8kmly0mzuqepk3m9
Node ID: 03606df0218e00b1d739db696e8d95ddfbff25293463395b95f21bb45638f10433
https://github.com/breez/breez-sdk-relai/issues/23
The text was updated successfully, but these errors were encountered: