Skip to content
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

lnwallet+funding: sanitize upfront_shutdown_script #5369

Merged

Conversation

Crypt-iQ
Copy link
Collaborator

@Crypt-iQ Crypt-iQ commented Jun 9, 2021

Otherwise, we would get non-standard txn's and fail to broadcast them when cooperatively closing a channel. This wouldn't affect funds security as no HTLCs would be active to steal. This is just a safety measure as we should only generate standard txn's.

BOLT#02: https://github.com/lightningnetwork/lightning-rfc/blob/master/02-peer-protocol.md#requirements-5

@Crypt-iQ Crypt-iQ added funding Related to the opening of new channels with funding transactions on the blockchain channel closing Related to the closing of channels cooperatively and uncooperatively bug fix labels Jun 9, 2021
@Crypt-iQ Crypt-iQ added this to the v0.14.0 milestone Jun 9, 2021
@Crypt-iQ Crypt-iQ requested review from wpaulino and carlaKC June 9, 2021 20:44
@Crypt-iQ
Copy link
Collaborator Author

Crypt-iQ commented Jun 9, 2021

Feel free to remove yourself from review @carlaKC & @wpaulino if you don't want to review - I requested as both of you have knowledge in this area

@Crypt-iQ Crypt-iQ force-pushed the coop_close_sanity_06082021 branch from 25a0015 to 40da187 Compare June 9, 2021 21:05
lnwallet/wallet.go Show resolved Hide resolved
funding/manager_test.go Outdated Show resolved Hide resolved
Otherwise, we would get non-standard txn's and fail to broadcast
them when cooperatively closing a channel. This wouldn't affect
funds security as no HTLCs would be active to steal. This is just
a safety measure as we should only generate standard txn's.
@Roasbeef Roasbeef modified the milestones: v0.14.0, 0.13.1 Jun 15, 2021
@Roasbeef Roasbeef merged commit fdc6d26 into lightningnetwork:master Jun 18, 2021
@Crypt-iQ Crypt-iQ deleted the coop_close_sanity_06082021 branch June 18, 2021 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix channel closing Related to the closing of channels cooperatively and uncooperatively funding Related to the opening of new channels with funding transactions on the blockchain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants