Spending `to_local` output of commitment [combined summary]



Individual post summaries: Click here to read the original discussion on the lightning-dev mailing list

Published on: 2023-05-19T21:46:26+00:00


Summary:

The email conversation posted on the Lightning-dev mailing list hosted by the Linux Foundation revolves around the development related to the Lightning Network, which is a protocol layer built on top of Bitcoin to enhance scalability and transaction speed. Benjamin Weintraub initiates the thread by seeking guidance on generating a transaction that spends vout[2] after a force closure of the channel. In response, Ken Sedgwick explains that the "to_local" output can only be spent after a delay period, making it not a valid transaction until then. The delay period for HTLCs is one block for redeeming an HTLC. Ken provides Benjamin with a link to the GitHub page detailing the necessary witness script for generating a transaction that spends the to_local and HTLC output following a force closure of the channel.Keags also joins the conversation expressing uncertainty about generating such a transaction using lncli or chantools. The email includes a code block displaying transaction details such as the number of required signatures and addresses involved. Additionally, contact information for Ken Sedgwick of Bonsai Software, Inc. is provided.The email thread commences with Benjamin Weintraub sharing his experience with testing failure scenarios in LND. He encountered an issue after force closing the channel using `lncli closechannel --force ....`. Although he could see the commitment transaction in the mempool, he couldn't find the subsequent HTLC/to_local spend. Seeking suggestions, Benjamin asks how to generate the transaction that spends the to_local and HTLC output, preferably using lnd. In response, Ken Sedgwick directs him to the necessary witness script described in the given GitHub link. Benjamin further seeks clarification on the witness script needed to redeem the to_local funds when a peer force closes a channel by sending a commitment to the blockchain. He provides transaction details from a committed transaction on a local simnet bitcoin blockchain and expresses the desire to spend vout[2].To summarize, Benjamin Weintraub seeks guidance on the witness script required to redeem the to_local funds after a force closure of the channel. He wishes to generate a transaction based on a specific committed transaction on a local simnet bitcoin blockchain and spend vout[2]. Ken Sedgwick provides assistance by directing him to the appropriate GitHub link.


Updated on: 2023-08-01T01:09:32.496791+00:00