You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to close a channel with an np2wkh address fails if the peer does not have option_shutdown_anysegwit enabled. Attempting to close again, this time using a p2wkh address fails as the previous shutdown script is now locked into the channel.
There is no way to proceed from here, except for force close, and potential loss.
This should not be a use case - if the peer does not have option_shutdown_anysegwit enabled, then when attempting to close the channel with np2wkh address the request should be rejected - the shutdown script should not be added to the channel, rendering the channel unclose-able.
lightning-cli close id=123xxx destination=39xxx (np2wkh address)
{
"code": -32602,
"message": "Invalid close destination"
}
lightning-cli close id=123xxx destination=1bcxxx (p2wkh address)
{
"code": -32602,
"message": "Destination address abc123 does not match previous shutdown script def123"
}
lightning-cli close id=123xxx (no destination specified)
{
"code": -32602,
"message": "Invalid close destination"
}
The text was updated successfully, but these errors were encountered:
Issue and Steps to Reproduce
Attempting to close a channel with an np2wkh address fails if the peer does not have
option_shutdown_anysegwit
enabled. Attempting to close again, this time using a p2wkh address fails as the previous shutdown script is now locked into the channel.There is no way to proceed from here, except for force close, and potential loss.
This should not be a use case - if the peer does not have
option_shutdown_anysegwit
enabled, then when attempting to close the channel with np2wkh address the request should be rejected - the shutdown script should not be added to the channel, rendering the channel unclose-able.lightning-cli close id=123xxx destination=39xxx (np2wkh address)
lightning-cli close id=123xxx destination=1bcxxx (p2wkh address)
lightning-cli close id=123xxx (no destination specified)
The text was updated successfully, but these errors were encountered: