<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>2023-06-09T12:24:03Z</updated>
  <generator>https://njump.me</generator>

  <title>Nostr notes by Benjamin Weintraub [ARCHIVE]</title>
  <author>
    <name>Benjamin Weintraub [ARCHIVE]</name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://njump.me/npub16jyzug4pdecycueva7s4ndyr89dmqvkxd3vdn6encn60h2zzzmqq0n9gxw.rss" />
  <link href="https://njump.me/npub16jyzug4pdecycueva7s4ndyr89dmqvkxd3vdn6encn60h2zzzmqq0n9gxw" />
  <id>https://njump.me/npub16jyzug4pdecycueva7s4ndyr89dmqvkxd3vdn6encn60h2zzzmqq0n9gxw</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://njump.me/nevent1qqsd0y4mrk43eqdruhn8tpd6xg7cgqmpgemw4750h4egr6ae883x9aczyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqewdr6t</id>
    
      <title type="html">📅 Original date posted:2023-05-02 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsd0y4mrk43eqdruhn8tpd6xg7cgqmpgemw4750h4egr6ae883x9aczyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqewdr6t" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsq5hf384m3rcu47f9lfdntptu4nalnd35ey3rut7l0ecteyuvykmq29dw7y&#39;&gt;nevent1q…dw7y&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-05-02&lt;br/&gt;🗒️ Summary of this message: A user is seeking help on generating a transaction that spends the to_local and HTLC output after force closing a channel in LND.&lt;br/&gt;📝 Original message:&lt;br/&gt;Thank you, Ken. I have a follow up question as well.&lt;br/&gt;&lt;br/&gt;Context: I’m playing around with some failure scenarios in LND. Say Alice is paying Bob, before Bob is able to send the fulfillment (which includes the HTLC preimage), Alice’s node dies and becomes unreachable.&lt;br/&gt;&lt;br/&gt;Bob has already received the commitment for the updated balance and already has the preimage, so he force closes the channel.&lt;br/&gt;&lt;br/&gt;My understanding is that he will submit the updated commitment to the blockchain as well as the channel closing transaction (after the CSV timeout) which spends his to_local and the HTLC output.&lt;br/&gt;&lt;br/&gt;Here is my problem. After using `lncli closechannel --force ...` , I only see the commitment transaction in the mempool, not the subsequent HTLC/to_local spend. How can I generate the transaction that spends the to_local and HTLC output? If there&amp;#39;s a way to generate it with lnd, that would be ideal.&lt;br/&gt;&lt;br/&gt;Thanks in advance!&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;________________________________&lt;br/&gt;From: Ken Sedgwick &amp;lt;ksedgwic at bonsai.com&amp;gt;&lt;br/&gt;Sent: Sunday, April 30, 2023 14:30&lt;br/&gt;To: Benjamin Weintraub &amp;lt;weintraub.b at northeastern.edu&amp;gt;&lt;br/&gt;Cc: Lightning-dev at lists.linuxfoundation.org &amp;lt;lightning-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;Subject: Re: [Lightning-dev] Spending `to_local` output of commitment&lt;br/&gt;&lt;br/&gt;Ben,&lt;br/&gt;&lt;br/&gt;The necessary witness is described here:&lt;br/&gt;&lt;a href=&#34;https://github.com/lightning/bolts/blob/master/03-transactions.md#to_local-output&#34;&gt;https://github.com/lightning/bolts/blob/master/03-transactions.md#to_local-output&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Regards,&lt;br/&gt;&lt;br/&gt;Ken&lt;br/&gt;&lt;br/&gt;On Sat, Apr 29, 2023 at 7:57 PM Benjamin Weintraub via Lightning-dev &amp;lt;lightning-dev at lists.linuxfoundation.org&amp;lt;mailto:lightning-dev at lists.linuxfoundation.org&amp;gt;&amp;gt; wrote:&lt;br/&gt;Hi all,&lt;br/&gt;&lt;br/&gt;I have a question about commitments. If a peer force closes a channel by sending a commitment to the blockchain, what kind of witness script is needed to redeem the `to_local` funds? (assuming the `to_self_delay` has elapsed.) It seems that the transaction described here is for cooperative closures: &lt;a href=&#34;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&#34;&gt;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&lt;/a&gt;. But for force closures, I would think that the txin would need to be the `to_local` txout of the commitment.&lt;br/&gt;&lt;br/&gt;Concretely, I have commited the following transaction on a local simnet bitcoin blockchain and mined 500 blocks on top of it. I want to spend vout[2], how can I generate such a transaction?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;{&lt;br/&gt;  &amp;#34;hash&amp;#34;: &amp;#34;47d15337bb3c29c7c2881dd7cd912604b401ed221c66ea6f781b456d4983d451&amp;#34;,&lt;br/&gt;  &amp;#34;size&amp;#34;: 444,&lt;br/&gt;  &amp;#34;vsize&amp;#34;: 279,&lt;br/&gt;  &amp;#34;weight&amp;#34;: 1113,&lt;br/&gt;  &amp;#34;version&amp;#34;: 2,&lt;br/&gt;  &amp;#34;locktime&amp;#34;: 551351761,&lt;br/&gt;  &amp;#34;vin&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;txid&amp;#34;: &amp;#34;0248025b9447df8267d02d14c34ab9b269f52cd827132c70159a55cbf27ab3c1&amp;#34;,&lt;br/&gt;      &amp;#34;vout&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptSig&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;txinwitness&amp;#34;: [&lt;br/&gt;        &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;3045022100d3f52ca04d6a71587c29592931e542b16a47f3e9e577f1869b416547d00c62dd0220485da35ad31ff71b4263b1a25f0ba9f35990e1c8d5ac848365bbd588c3ce83d701&amp;#34;,&lt;br/&gt;        &amp;#34;3044022057fc3878e17a865c12d57b7885ed48f0d6122bd9e00511c8eac150180d1508d502205fd1d0674a41b3c0118d0b6c19b1c77d35fc95bb89f929da6478f22e94dbf5ce01&amp;#34;,&lt;br/&gt;        &amp;#34;5221038acdafe305edd06e91706ee687a091be306f0f29bcbda52dadde084bbaa36c902103d8fd53b9b43638c2255e1abd6f134a0232d2fba65527252c4eb81f926ddf50ad52ae&amp;#34;&lt;br/&gt;      ],&lt;br/&gt;      &amp;#34;sequence&amp;#34;: 2161061453&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;vout&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 45ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;002045ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qghkgvfzrwm28qqx2vkf8swazda4j4ese5fxg7hadyjdccutf2htqysq3qz&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 1,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q2q4pweztxdzg959r7kyanps67m3pqk5m0t7n7hp93m7f3wm2amksa0fysc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0002,&lt;br/&gt;      &amp;#34;n&amp;#34;: 2,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qq3248lrcjj20zmhlfnazy8gzjns5p7mewuh0ad7c897s4swye7zsyrm5pc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.009761,&lt;br/&gt;      &amp;#34;n&amp;#34;: 3,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 2d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;00202d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q94gu5ssdpd4t2myhegnrr4esfjddjqjj2t48rua037tnv9neqshqm4z7yr&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;blockhash&amp;#34;: &amp;#34;0fa78bc7e9f6e0a60be71bb5fb2eaaf42a97895bb057f09d7cbb2c49120fa61d&amp;#34;,&lt;br/&gt;  &amp;#34;confirmations&amp;#34;: 500,&lt;br/&gt;  &amp;#34;time&amp;#34;: 1682451410,&lt;br/&gt;  &amp;#34;blocktime&amp;#34;: 1682451410&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;_______________________________________________&lt;br/&gt;Lightning-dev mailing list&lt;br/&gt;Lightning-dev at lists.linuxfoundation.org&amp;lt;mailto:Lightning-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;&lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;--&lt;br/&gt;Ken Sedgwick&lt;br/&gt;Bonsai Software, Inc.&lt;br/&gt;&lt;a href=&#34;http://www.bonsai.com/ken/&#34;&gt;http://www.bonsai.com/ken/&lt;/a&gt;&lt;br/&gt;(510) 269-7334&lt;br/&gt;ken at bonsai.com&amp;lt;mailto:ken at bonsai.com&amp;gt;&lt;br/&gt;Public Key: &lt;a href=&#34;http://www.bonsai.com/ken/ken.asc&#34;&gt;http://www.bonsai.com/ken/ken.asc&lt;/a&gt;&lt;br/&gt;GPG Fingerprint: 4695 E5B8 F781 BF85 4326  9639 BBFC E515 8602 5550&lt;br/&gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230502/4f68b6f7/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230502/4f68b6f7/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-19T17:42:14Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqswuadhs0jp7h330yy3uyzc64kzqe8nx3qgvmcf6tugj2xv4pquj4gzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqlucgqs</id>
    
      <title type="html">📅 Original date posted:2023-05-02 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqswuadhs0jp7h330yy3uyzc64kzqe8nx3qgvmcf6tugj2xv4pquj4gzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqlucgqs" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsxmmve0x89l9hmpscqhgh8t4mgl9wcf94w7lxdtzja09smxlfymzgtdwmp4&#39;&gt;nevent1q…wmp4&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-05-02&lt;br/&gt;🗒️ Summary of this message: A user is seeking help on generating a transaction that spends the to_local and HTLC output after a force close of a channel in LND.&lt;br/&gt;📝 Original message:&lt;br/&gt;Thank you, Ken. I have a follow up question as well.&lt;br/&gt;&lt;br/&gt;Context: I’m playing around with some failure scenarios in LND. Say Alice is paying Bob, before Bob is able to send the fulfillment (which includes the HTLC preimage), Alice’s node dies and becomes unreachable.&lt;br/&gt;&lt;br/&gt;Bob has already received the commitment for the updated balance and already has the preimage, so he force closes the channel.&lt;br/&gt;&lt;br/&gt;My understanding is that he will submit the updated commitment to the blockchain as well as the channel closing transaction (after the CSV timeout) which spends his to_local and the HTLC output.&lt;br/&gt;&lt;br/&gt;Here is my problem. After using `lncli closechannel --force ...` , I only see the commitment transaction in the mempool, not the subsequent HTLC/to_local spend. How can I generate the transaction that spends the to_local and HTLC output? If there&amp;#39;s a way to generate it with lnd, that would be ideal.&lt;br/&gt;&lt;br/&gt;Thanks in advance!&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;________________________________&lt;br/&gt;From: Ken Sedgwick &amp;lt;ksedgwic at bonsai.com&amp;gt;&lt;br/&gt;Sent: Sunday, April 30, 2023 14:30&lt;br/&gt;To: Benjamin Weintraub &amp;lt;weintraub.b at northeastern.edu&amp;gt;&lt;br/&gt;Cc: Lightning-dev at lists.linuxfoundation.org &amp;lt;lightning-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;Subject: Re: [Lightning-dev] Spending `to_local` output of commitment&lt;br/&gt;&lt;br/&gt;Ben,&lt;br/&gt;&lt;br/&gt;The necessary witness is described here:&lt;br/&gt;&lt;a href=&#34;https://github.com/lightning/bolts/blob/master/03-transactions.md#to_local-output&#34;&gt;https://github.com/lightning/bolts/blob/master/03-transactions.md#to_local-output&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Regards,&lt;br/&gt;&lt;br/&gt;Ken&lt;br/&gt;&lt;br/&gt;On Sat, Apr 29, 2023 at 7:57 PM Benjamin Weintraub via Lightning-dev &amp;lt;lightning-dev at lists.linuxfoundation.org&amp;lt;mailto:lightning-dev at lists.linuxfoundation.org&amp;gt;&amp;gt; wrote:&lt;br/&gt;Hi all,&lt;br/&gt;&lt;br/&gt;I have a question about commitments. If a peer force closes a channel by sending a commitment to the blockchain, what kind of witness script is needed to redeem the `to_local` funds? (assuming the `to_self_delay` has elapsed.) It seems that the transaction described here is for cooperative closures: &lt;a href=&#34;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&#34;&gt;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&lt;/a&gt;. But for force closures, I would think that the txin would need to be the `to_local` txout of the commitment.&lt;br/&gt;&lt;br/&gt;Concretely, I have commited the following transaction on a local simnet bitcoin blockchain and mined 500 blocks on top of it. I want to spend vout[2], how can I generate such a transaction?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;{&lt;br/&gt;  &amp;#34;hash&amp;#34;: &amp;#34;47d15337bb3c29c7c2881dd7cd912604b401ed221c66ea6f781b456d4983d451&amp;#34;,&lt;br/&gt;  &amp;#34;size&amp;#34;: 444,&lt;br/&gt;  &amp;#34;vsize&amp;#34;: 279,&lt;br/&gt;  &amp;#34;weight&amp;#34;: 1113,&lt;br/&gt;  &amp;#34;version&amp;#34;: 2,&lt;br/&gt;  &amp;#34;locktime&amp;#34;: 551351761,&lt;br/&gt;  &amp;#34;vin&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;txid&amp;#34;: &amp;#34;0248025b9447df8267d02d14c34ab9b269f52cd827132c70159a55cbf27ab3c1&amp;#34;,&lt;br/&gt;      &amp;#34;vout&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptSig&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;txinwitness&amp;#34;: [&lt;br/&gt;        &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;3045022100d3f52ca04d6a71587c29592931e542b16a47f3e9e577f1869b416547d00c62dd0220485da35ad31ff71b4263b1a25f0ba9f35990e1c8d5ac848365bbd588c3ce83d701&amp;#34;,&lt;br/&gt;        &amp;#34;3044022057fc3878e17a865c12d57b7885ed48f0d6122bd9e00511c8eac150180d1508d502205fd1d0674a41b3c0118d0b6c19b1c77d35fc95bb89f929da6478f22e94dbf5ce01&amp;#34;,&lt;br/&gt;        &amp;#34;5221038acdafe305edd06e91706ee687a091be306f0f29bcbda52dadde084bbaa36c902103d8fd53b9b43638c2255e1abd6f134a0232d2fba65527252c4eb81f926ddf50ad52ae&amp;#34;&lt;br/&gt;      ],&lt;br/&gt;      &amp;#34;sequence&amp;#34;: 2161061453&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;vout&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 45ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;002045ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qghkgvfzrwm28qqx2vkf8swazda4j4ese5fxg7hadyjdccutf2htqysq3qz&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 1,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q2q4pweztxdzg959r7kyanps67m3pqk5m0t7n7hp93m7f3wm2amksa0fysc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0002,&lt;br/&gt;      &amp;#34;n&amp;#34;: 2,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qq3248lrcjj20zmhlfnazy8gzjns5p7mewuh0ad7c897s4swye7zsyrm5pc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.009761,&lt;br/&gt;      &amp;#34;n&amp;#34;: 3,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 2d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;00202d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q94gu5ssdpd4t2myhegnrr4esfjddjqjj2t48rua037tnv9neqshqm4z7yr&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;blockhash&amp;#34;: &amp;#34;0fa78bc7e9f6e0a60be71bb5fb2eaaf42a97895bb057f09d7cbb2c49120fa61d&amp;#34;,&lt;br/&gt;  &amp;#34;confirmations&amp;#34;: 500,&lt;br/&gt;  &amp;#34;time&amp;#34;: 1682451410,&lt;br/&gt;  &amp;#34;blocktime&amp;#34;: 1682451410&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;_______________________________________________&lt;br/&gt;Lightning-dev mailing list&lt;br/&gt;Lightning-dev at lists.linuxfoundation.org&amp;lt;mailto:Lightning-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;&lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;--&lt;br/&gt;Ken Sedgwick&lt;br/&gt;Bonsai Software, Inc.&lt;br/&gt;&lt;a href=&#34;http://www.bonsai.com/ken/&#34;&gt;http://www.bonsai.com/ken/&lt;/a&gt;&lt;br/&gt;(510) 269-7334&lt;br/&gt;ken at bonsai.com&amp;lt;mailto:ken at bonsai.com&amp;gt;&lt;br/&gt;Public Key: &lt;a href=&#34;http://www.bonsai.com/ken/ken.asc&#34;&gt;http://www.bonsai.com/ken/ken.asc&lt;/a&gt;&lt;br/&gt;GPG Fingerprint: 4695 E5B8 F781 BF85 4326  9639 BBFC E515 8602 5550&lt;br/&gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230502/4f68b6f7/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230502/4f68b6f7/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T13:13:13Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqszrpvpu58lhk89h50jdvfffs0xqyfaz6jhze3ywf5nugswh65yjsqzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqsnewkh</id>
    
      <title type="html">📅 Original date posted:2023-04-27 🗒️ Summary of this ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqszrpvpu58lhk89h50jdvfffs0xqyfaz6jhze3ywf5nugswh65yjsqzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqsnewkh" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs8jp0qcj9gzpvd7wdm2ttsaneujc6zcknz5az7z8mlg7q9406zjng0q5cpq&#39;&gt;nevent1q…5cpq&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-04-27&lt;br/&gt;🗒️ Summary of this message: The author is seeking advice on witness scripts needed to redeem `to_local` funds after a peer force closes a channel. Includes a sample transaction.&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi all,&lt;br/&gt;&lt;br/&gt;I have a question about commitments. If a peer force closes a channel by sending a commitment to the blockchain, what kind of witness script is needed to redeem the `to_local` funds? (assuming the `to_self_delay` has elapsed.) It seems that the transaction described here is for cooperative closures: &lt;a href=&#34;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&#34;&gt;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&lt;/a&gt;. But for force closures, I would think that the txin would need to be the `to_local` txout of the commitment.&lt;br/&gt;&lt;br/&gt;Concretely, I have commited the following transaction on a local simnet bitcoin blockchain and mined 500 blocks on top of it. I want to spend vout[2], how can I generate such a transaction?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;{&lt;br/&gt;  &amp;#34;hash&amp;#34;: &amp;#34;47d15337bb3c29c7c2881dd7cd912604b401ed221c66ea6f781b456d4983d451&amp;#34;,&lt;br/&gt;  &amp;#34;size&amp;#34;: 444,&lt;br/&gt;  &amp;#34;vsize&amp;#34;: 279,&lt;br/&gt;  &amp;#34;weight&amp;#34;: 1113,&lt;br/&gt;  &amp;#34;version&amp;#34;: 2,&lt;br/&gt;  &amp;#34;locktime&amp;#34;: 551351761,&lt;br/&gt;  &amp;#34;vin&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;txid&amp;#34;: &amp;#34;0248025b9447df8267d02d14c34ab9b269f52cd827132c70159a55cbf27ab3c1&amp;#34;,&lt;br/&gt;      &amp;#34;vout&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptSig&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;txinwitness&amp;#34;: [&lt;br/&gt;        &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;3045022100d3f52ca04d6a71587c29592931e542b16a47f3e9e577f1869b416547d00c62dd0220485da35ad31ff71b4263b1a25f0ba9f35990e1c8d5ac848365bbd588c3ce83d701&amp;#34;,&lt;br/&gt;        &amp;#34;3044022057fc3878e17a865c12d57b7885ed48f0d6122bd9e00511c8eac150180d1508d502205fd1d0674a41b3c0118d0b6c19b1c77d35fc95bb89f929da6478f22e94dbf5ce01&amp;#34;,&lt;br/&gt;        &amp;#34;5221038acdafe305edd06e91706ee687a091be306f0f29bcbda52dadde084bbaa36c902103d8fd53b9b43638c2255e1abd6f134a0232d2fba65527252c4eb81f926ddf50ad52ae&amp;#34;&lt;br/&gt;      ],&lt;br/&gt;      &amp;#34;sequence&amp;#34;: 2161061453&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;vout&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 45ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;002045ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qghkgvfzrwm28qqx2vkf8swazda4j4ese5fxg7hadyjdccutf2htqysq3qz&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 1,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q2q4pweztxdzg959r7kyanps67m3pqk5m0t7n7hp93m7f3wm2amksa0fysc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0002,&lt;br/&gt;      &amp;#34;n&amp;#34;: 2,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qq3248lrcjj20zmhlfnazy8gzjns5p7mewuh0ad7c897s4swye7zsyrm5pc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.009761,&lt;br/&gt;      &amp;#34;n&amp;#34;: 3,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 2d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;00202d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q94gu5ssdpd4t2myhegnrr4esfjddjqjj2t48rua037tnv9neqshqm4z7yr&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;blockhash&amp;#34;: &amp;#34;0fa78bc7e9f6e0a60be71bb5fb2eaaf42a97895bb057f09d7cbb2c49120fa61d&amp;#34;,&lt;br/&gt;  &amp;#34;confirmations&amp;#34;: 500,&lt;br/&gt;  &amp;#34;time&amp;#34;: 1682451410,&lt;br/&gt;  &amp;#34;blocktime&amp;#34;: 1682451410&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230427/d0c110bb/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230427/d0c110bb/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T13:13:06Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqspxpw8y60r68mmeh88rvsq08x8ggwmncs4unauu3hkmaz28ca6akgzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqxc4d57</id>
    
      <title type="html">📅 Original date posted:2023-05-02 📝 Original message: Thank ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqspxpw8y60r68mmeh88rvsq08x8ggwmncs4unauu3hkmaz28ca6akgzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqxc4d57" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs8q3naytj9l9h6evqjj9wtvxpkurd0ctfw6y2dxpeugm3wcfjeevcc2k02x&#39;&gt;nevent1q…k02x&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-05-02&lt;br/&gt;📝 Original message:&lt;br/&gt;Thank you, Ken. I have a follow up question as well.&lt;br/&gt;&lt;br/&gt;Context: I’m playing around with some failure scenarios in LND. Say Alice is paying Bob, before Bob is able to send the fulfillment (which includes the HTLC preimage), Alice’s node dies and becomes unreachable.&lt;br/&gt;&lt;br/&gt;Bob has already received the commitment for the updated balance and already has the preimage, so he force closes the channel.&lt;br/&gt;&lt;br/&gt;My understanding is that he will submit the updated commitment to the blockchain as well as the channel closing transaction (after the CSV timeout) which spends his to_local and the HTLC output.&lt;br/&gt;&lt;br/&gt;Here is my problem. After using `lncli closechannel --force ...` , I only see the commitment transaction in the mempool, not the subsequent HTLC/to_local spend. How can I generate the transaction that spends the to_local and HTLC output? If there&amp;#39;s a way to generate it with lnd, that would be ideal.&lt;br/&gt;&lt;br/&gt;Thanks in advance!&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;________________________________&lt;br/&gt;From: Ken Sedgwick &amp;lt;ksedgwic at bonsai.com&amp;gt;&lt;br/&gt;Sent: Sunday, April 30, 2023 14:30&lt;br/&gt;To: Benjamin Weintraub &amp;lt;weintraub.b at northeastern.edu&amp;gt;&lt;br/&gt;Cc: Lightning-dev at lists.linuxfoundation.org &amp;lt;lightning-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;Subject: Re: [Lightning-dev] Spending `to_local` output of commitment&lt;br/&gt;&lt;br/&gt;Ben,&lt;br/&gt;&lt;br/&gt;The necessary witness is described here:&lt;br/&gt;&lt;a href=&#34;https://github.com/lightning/bolts/blob/master/03-transactions.md#to_local-output&#34;&gt;https://github.com/lightning/bolts/blob/master/03-transactions.md#to_local-output&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Regards,&lt;br/&gt;&lt;br/&gt;Ken&lt;br/&gt;&lt;br/&gt;On Sat, Apr 29, 2023 at 7:57 PM Benjamin Weintraub via Lightning-dev &amp;lt;lightning-dev at lists.linuxfoundation.org&amp;lt;mailto:lightning-dev at lists.linuxfoundation.org&amp;gt;&amp;gt; wrote:&lt;br/&gt;Hi all,&lt;br/&gt;&lt;br/&gt;I have a question about commitments. If a peer force closes a channel by sending a commitment to the blockchain, what kind of witness script is needed to redeem the `to_local` funds? (assuming the `to_self_delay` has elapsed.) It seems that the transaction described here is for cooperative closures: &lt;a href=&#34;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&#34;&gt;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&lt;/a&gt;. But for force closures, I would think that the txin would need to be the `to_local` txout of the commitment.&lt;br/&gt;&lt;br/&gt;Concretely, I have commited the following transaction on a local simnet bitcoin blockchain and mined 500 blocks on top of it. I want to spend vout[2], how can I generate such a transaction?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;{&lt;br/&gt;  &amp;#34;hash&amp;#34;: &amp;#34;47d15337bb3c29c7c2881dd7cd912604b401ed221c66ea6f781b456d4983d451&amp;#34;,&lt;br/&gt;  &amp;#34;size&amp;#34;: 444,&lt;br/&gt;  &amp;#34;vsize&amp;#34;: 279,&lt;br/&gt;  &amp;#34;weight&amp;#34;: 1113,&lt;br/&gt;  &amp;#34;version&amp;#34;: 2,&lt;br/&gt;  &amp;#34;locktime&amp;#34;: 551351761,&lt;br/&gt;  &amp;#34;vin&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;txid&amp;#34;: &amp;#34;0248025b9447df8267d02d14c34ab9b269f52cd827132c70159a55cbf27ab3c1&amp;#34;,&lt;br/&gt;      &amp;#34;vout&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptSig&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;txinwitness&amp;#34;: [&lt;br/&gt;        &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;3045022100d3f52ca04d6a71587c29592931e542b16a47f3e9e577f1869b416547d00c62dd0220485da35ad31ff71b4263b1a25f0ba9f35990e1c8d5ac848365bbd588c3ce83d701&amp;#34;,&lt;br/&gt;        &amp;#34;3044022057fc3878e17a865c12d57b7885ed48f0d6122bd9e00511c8eac150180d1508d502205fd1d0674a41b3c0118d0b6c19b1c77d35fc95bb89f929da6478f22e94dbf5ce01&amp;#34;,&lt;br/&gt;        &amp;#34;5221038acdafe305edd06e91706ee687a091be306f0f29bcbda52dadde084bbaa36c902103d8fd53b9b43638c2255e1abd6f134a0232d2fba65527252c4eb81f926ddf50ad52ae&amp;#34;&lt;br/&gt;      ],&lt;br/&gt;      &amp;#34;sequence&amp;#34;: 2161061453&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;vout&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 45ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;002045ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qghkgvfzrwm28qqx2vkf8swazda4j4ese5fxg7hadyjdccutf2htqysq3qz&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 1,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q2q4pweztxdzg959r7kyanps67m3pqk5m0t7n7hp93m7f3wm2amksa0fysc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0002,&lt;br/&gt;      &amp;#34;n&amp;#34;: 2,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qq3248lrcjj20zmhlfnazy8gzjns5p7mewuh0ad7c897s4swye7zsyrm5pc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.009761,&lt;br/&gt;      &amp;#34;n&amp;#34;: 3,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 2d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;00202d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q94gu5ssdpd4t2myhegnrr4esfjddjqjj2t48rua037tnv9neqshqm4z7yr&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;blockhash&amp;#34;: &amp;#34;0fa78bc7e9f6e0a60be71bb5fb2eaaf42a97895bb057f09d7cbb2c49120fa61d&amp;#34;,&lt;br/&gt;  &amp;#34;confirmations&amp;#34;: 500,&lt;br/&gt;  &amp;#34;time&amp;#34;: 1682451410,&lt;br/&gt;  &amp;#34;blocktime&amp;#34;: 1682451410&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;_______________________________________________&lt;br/&gt;Lightning-dev mailing list&lt;br/&gt;Lightning-dev at lists.linuxfoundation.org&amp;lt;mailto:Lightning-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;&lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;--&lt;br/&gt;Ken Sedgwick&lt;br/&gt;Bonsai Software, Inc.&lt;br/&gt;&lt;a href=&#34;http://www.bonsai.com/ken/&#34;&gt;http://www.bonsai.com/ken/&lt;/a&gt;&lt;br/&gt;(510) 269-7334&lt;br/&gt;ken at bonsai.com&amp;lt;mailto:ken at bonsai.com&amp;gt;&lt;br/&gt;Public Key: &lt;a href=&#34;http://www.bonsai.com/ken/ken.asc&#34;&gt;http://www.bonsai.com/ken/ken.asc&lt;/a&gt;&lt;br/&gt;GPG Fingerprint: 4695 E5B8 F781 BF85 4326  9639 BBFC E515 8602 5550&lt;br/&gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230502/4f68b6f7/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230502/4f68b6f7/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T13:08:43Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsdwfzqtfspve04d22ndkcaxymykegeyau20fjjmzpp7tpnjy046xczyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqfdn0du</id>
    
      <title type="html">📅 Original date posted:2023-04-27 📝 Original message: Hi ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsdwfzqtfspve04d22ndkcaxymykegeyau20fjjmzpp7tpnjy046xczyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqfdn0du" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsr7nzfm8ugy03wgea0uxpkwg2qzcu8tahs0d43a2r5tsahz4dc9fqdxchgl&#39;&gt;nevent1q…chgl&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2023-04-27&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi all,&lt;br/&gt;&lt;br/&gt;I have a question about commitments. If a peer force closes a channel by sending a commitment to the blockchain, what kind of witness script is needed to redeem the `to_local` funds? (assuming the `to_self_delay` has elapsed.) It seems that the transaction described here is for cooperative closures: &lt;a href=&#34;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&#34;&gt;https://github.com/lightning/bolts/blob/c74a3bbcf890799d343c62cb05fcbcdc952a1cf3/03-transactions.md#closing-transaction&lt;/a&gt;. But for force closures, I would think that the txin would need to be the `to_local` txout of the commitment.&lt;br/&gt;&lt;br/&gt;Concretely, I have commited the following transaction on a local simnet bitcoin blockchain and mined 500 blocks on top of it. I want to spend vout[2], how can I generate such a transaction?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;{&lt;br/&gt;  &amp;#34;hash&amp;#34;: &amp;#34;47d15337bb3c29c7c2881dd7cd912604b401ed221c66ea6f781b456d4983d451&amp;#34;,&lt;br/&gt;  &amp;#34;size&amp;#34;: 444,&lt;br/&gt;  &amp;#34;vsize&amp;#34;: 279,&lt;br/&gt;  &amp;#34;weight&amp;#34;: 1113,&lt;br/&gt;  &amp;#34;version&amp;#34;: 2,&lt;br/&gt;  &amp;#34;locktime&amp;#34;: 551351761,&lt;br/&gt;  &amp;#34;vin&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;txid&amp;#34;: &amp;#34;0248025b9447df8267d02d14c34ab9b269f52cd827132c70159a55cbf27ab3c1&amp;#34;,&lt;br/&gt;      &amp;#34;vout&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptSig&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;&amp;#34;&lt;br/&gt;      },&lt;br/&gt;      &amp;#34;txinwitness&amp;#34;: [&lt;br/&gt;        &amp;#34;&amp;#34;,&lt;br/&gt;        &amp;#34;3045022100d3f52ca04d6a71587c29592931e542b16a47f3e9e577f1869b416547d00c62dd0220485da35ad31ff71b4263b1a25f0ba9f35990e1c8d5ac848365bbd588c3ce83d701&amp;#34;,&lt;br/&gt;        &amp;#34;3044022057fc3878e17a865c12d57b7885ed48f0d6122bd9e00511c8eac150180d1508d502205fd1d0674a41b3c0118d0b6c19b1c77d35fc95bb89f929da6478f22e94dbf5ce01&amp;#34;,&lt;br/&gt;        &amp;#34;5221038acdafe305edd06e91706ee687a091be306f0f29bcbda52dadde084bbaa36c902103d8fd53b9b43638c2255e1abd6f134a0232d2fba65527252c4eb81f926ddf50ad52ae&amp;#34;&lt;br/&gt;      ],&lt;br/&gt;      &amp;#34;sequence&amp;#34;: 2161061453&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;vout&amp;#34;: [&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 0,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 45ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;002045ec86244376d47000ca6592783ba26f6b2ae619a24c8f5fad249b8c716955d6&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qghkgvfzrwm28qqx2vkf8swazda4j4ese5fxg7hadyjdccutf2htqysq3qz&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0000033,&lt;br/&gt;      &amp;#34;n&amp;#34;: 1,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020502a17644b334482d0a3f589d9861af6e2105a9b7afd3f5c258efc98bb6aeeed&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q2q4pweztxdzg959r7kyanps67m3pqk5m0t7n7hp93m7f3wm2amksa0fysc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.0002,&lt;br/&gt;      &amp;#34;n&amp;#34;: 2,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;0020045553fc789494f16eff4cfa221d0294e140fb79772efeb7d8397d0ac1c4cf85&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1qq3248lrcjj20zmhlfnazy8gzjns5p7mewuh0ad7c897s4swye7zsyrm5pc&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    },&lt;br/&gt;    {&lt;br/&gt;      &amp;#34;value&amp;#34;: 0.009761,&lt;br/&gt;      &amp;#34;n&amp;#34;: 3,&lt;br/&gt;      &amp;#34;scriptPubKey&amp;#34;: {&lt;br/&gt;        &amp;#34;asm&amp;#34;: &amp;#34;0 2d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;hex&amp;#34;: &amp;#34;00202d51ca420d0b6ab56c97ca2631d7304c9ad9025252ea71f3af8f97361679042e&amp;#34;,&lt;br/&gt;        &amp;#34;reqSigs&amp;#34;: 1,&lt;br/&gt;        &amp;#34;type&amp;#34;: &amp;#34;witness_v0_scripthash&amp;#34;,&lt;br/&gt;        &amp;#34;addresses&amp;#34;: [&lt;br/&gt;          &amp;#34;sb1q94gu5ssdpd4t2myhegnrr4esfjddjqjj2t48rua037tnv9neqshqm4z7yr&amp;#34;&lt;br/&gt;        ]&lt;br/&gt;      }&lt;br/&gt;    }&lt;br/&gt;  ],&lt;br/&gt;  &amp;#34;blockhash&amp;#34;: &amp;#34;0fa78bc7e9f6e0a60be71bb5fb2eaaf42a97895bb057f09d7cbb2c49120fa61d&amp;#34;,&lt;br/&gt;  &amp;#34;confirmations&amp;#34;: 500,&lt;br/&gt;  &amp;#34;time&amp;#34;: 1682451410,&lt;br/&gt;  &amp;#34;blocktime&amp;#34;: 1682451410&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230427/d0c110bb/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230427/d0c110bb/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T13:08:36Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsdx76etmhhfsrp9q0ldjy2f5cje0ga49h2lw7rae3x4nfgs0zeqvgzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvq0m08yg</id>
    
      <title type="html">📅 Original date posted:2022-12-13 📝 Original message: Very ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsdx76etmhhfsrp9q0ldjy2f5cje0ga49h2lw7rae3x4nfgs0zeqvgzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvq0m08yg" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsth6hqzrej4rn07n3qvhrw558ts27kp3ts0eguuxeeqm4ytd2glugenp3th&#39;&gt;nevent1q…p3th&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2022-12-13&lt;br/&gt;📝 Original message:&lt;br/&gt;Very helpful, thank you for the quick reply!&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;________________________________&lt;br/&gt;From: SomberNight &amp;lt;somber.night at protonmail.com&amp;gt;&lt;br/&gt;Sent: Tuesday, December 13, 2022 10:53&lt;br/&gt;To: Benjamin Weintraub &amp;lt;weintraub.b at northeastern.edu&amp;gt;&lt;br/&gt;Cc: Lightning-dev at lists.linuxfoundation.org &amp;lt;lightning-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;Subject: Re: [Lightning-dev] Unclear HTLC scenario&lt;br/&gt;&lt;br/&gt;Hi Ben,&lt;br/&gt;&lt;br/&gt;This is handled earlier than update_fail_htlc: when the recipient sees the update_add_htlc, some sanity checks will fail and it won&amp;#39;t commit it to the commitment tx.&lt;br/&gt;&lt;br/&gt;See here:&lt;br/&gt;&lt;a href=&#34;https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flightning%2Fbolts%2Fblame%2Fa0bbe47b0278b4f152dbaa4f5fab2562413a217c%2F02-peer-protocol.md%23L1036&amp;amp;data=05%7C01%7Cweintraub.b%40northeastern.edu%7C5e9d13700f58406b671208dadd223e31%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C638065437441102846%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=6GUyG4x9dxZnhGZpIJY6SQBmA%2FH4%2Bcw8kkD3aQaNZ%2Bk%3D&amp;amp;reserved=0&#34;&gt;https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flightning%2Fbolts%2Fblame%2Fa0bbe47b0278b4f152dbaa4f5fab2562413a217c%2F02-peer-protocol.md%23L1036&amp;amp;data=05%7C01%7Cweintraub.b%40northeastern.edu%7C5e9d13700f58406b671208dadd223e31%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C638065437441102846%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=6GUyG4x9dxZnhGZpIJY6SQBmA%2FH4%2Bcw8kkD3aQaNZ%2Bk%3D&amp;amp;reserved=0&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&amp;gt; 1. type: 128 (`update_add_htlc`)&lt;br/&gt;&amp;gt; [...]&lt;br/&gt;&amp;gt; A receiving node:&lt;br/&gt;&amp;gt; [...]&lt;br/&gt;&amp;gt;   - receiving an `amount_msat` that the sending node cannot afford at the current `feerate_per_kw` (while maintaining its channel reserve and any `to_local_anchor` and `to_remote_anchor` costs):&lt;br/&gt;&amp;gt;    - SHOULD send a `warning` and close the connection, or send an&lt;br/&gt;      `error` and fail the channel.&lt;br/&gt;&lt;br/&gt;If the recipient decides to simply close the transport connection, the update_add_htlc message is forgotten (due to the rules of how channel_reestablish works), and the channel is back to a usable state.&lt;br/&gt;&lt;br/&gt;ghost43&lt;br/&gt;&lt;br/&gt;------- Original Message -------&lt;br/&gt;On Tuesday, December 13th, 2022 at 2:51 PM, Benjamin Weintraub via Lightning-dev &amp;lt;lightning-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;gt; Hi list,&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I have a question about how update_fail_htlcs are handled. Consider this scenario: a node, potentially adversarial, forwards an HTLC along a channel that does not have the funds to support a payment of that size. How does the recipient of the HTLC respond?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I see this line in BOLT #2:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; “until the corresponding HTLC is irrevocably committed in both sides&amp;#39; commitment transactions: MUST NOT send an `update_fulfill_htlc`, `update_fail_htlc`, or `update_fail_malformed_htlc`&amp;#34;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; But this seems confusing to me in the context of the scenario I suggested. Is it saying that even though the channel cannot support the payment, the nodes still need to commit to it?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I assume that this interpretation is not correct, but then when is it okay for a node to send an update_fail_htlc? Immediately upon receiving an invalid transaction?&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Any insight you could provide would be great.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Thanks in advance,&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Ben&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20221213/aba37c8b/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20221213/aba37c8b/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T13:07:46Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqspy5c58esdetg9y7e77uy4jf6jcxna6agj5tple70v330p4xd5qxqzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvq48tpzz</id>
    
      <title type="html">📅 Original date posted:2022-12-13 📝 Original message: Hi ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqspy5c58esdetg9y7e77uy4jf6jcxna6agj5tple70v330p4xd5qxqzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvq48tpzz" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsqj5heffhef9mald7x5qn6ha4w43cl9yst3rkmmvxlg0lq3tue4lsr20fmj&#39;&gt;nevent1q…0fmj&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2022-12-13&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi list,&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I have a question about how update_fail_htlcs are handled. Consider this scenario: a node, potentially adversarial, forwards an HTLC along a channel that does not have the funds to support a payment of that size. How does the recipient of the HTLC respond?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I see this line in BOLT #2:&lt;br/&gt;&lt;br/&gt;“until the corresponding HTLC is irrevocably committed in both sides&amp;#39; commitment transactions: MUST NOT send an update_fulfill_htlc, update_fail_htlc, or update_fail_malformed_htlc&amp;#34;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;But this seems confusing to me in the context of the scenario I suggested. Is it saying that even though the channel cannot support the payment, the nodes still need to commit to it?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;I assume that this interpretation is not correct, but then when is it okay for a node to send an update_fail_htlc? Immediately upon receiving an invalid transaction?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Any insight you could provide would be great.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks in advance,&lt;br/&gt;&lt;br/&gt;Ben&lt;br/&gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20221213/056c715c/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20221213/056c715c/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T13:07:45Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsvyhskgc57vjaam4txp4ecn3372e4wnj4pp9ptwv6jjldqnkc60ugzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqvl9x6y</id>
    
      <title type="html">📅 Original date posted:2022-02-16 📝 Original message: Hi ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsvyhskgc57vjaam4txp4ecn3372e4wnj4pp9ptwv6jjldqnkc60ugzyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqvl9x6y" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqstkplrk8rt47rkr42tjst9q2ps9ztv2ln08tc3xt07rrd3ygyztrgx59vx7&#39;&gt;nevent1q…9vx7&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2022-02-16&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi Laolu!&lt;br/&gt;&lt;br/&gt;Thanks for the helpful reply. A couple follow up questions:&lt;br/&gt;&lt;br/&gt;1) Why would concurrent signatures generate additional messages? My understanding is that by the time the signatures are sent, the HTLCs are already locked in.&lt;br/&gt;&lt;br/&gt;2) Perhaps I didn&amp;#39;t just understand your explanation, but I still don&amp;#39;t get why the additional `commitment_signed` and `revoke_and_ack` messages are necessary. The initial pair of `commitment_signed` and `revoke_and_ack` messages establish a new state _conditioned_ on possessing the pre-image, right? So after the pre-image is shared, then all parties have assurance of the new state and therefore _could_ go to the chain (even if they don&amp;#39;t want to, because they want to keep the channel open). Since the new state is already guaranteed by the previous commitments and revocations, what purpose do the additional commitments and revocations provide?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks again!&lt;br/&gt;Ben&lt;br/&gt;&lt;br/&gt;--&lt;br/&gt;Ben Weintraub&lt;br/&gt;PhD Student&lt;br/&gt;Khoury College of Computer Sciences&lt;br/&gt;Northeastern University&lt;br/&gt;&lt;a href=&#34;https://ben-weintraub.com/&#34;&gt;https://ben-weintraub.com/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;________________________________&lt;br/&gt;From: Olaoluwa Osuntokun &amp;lt;laolu32 at gmail.com&amp;gt;&lt;br/&gt;Sent: Tuesday, February 15, 2022 18:13&lt;br/&gt;To: Benjamin Weintraub &amp;lt;weintraub.b at northeastern.edu&amp;gt;&lt;br/&gt;Cc: Lightning-dev at lists.linuxfoundation.org &amp;lt;lightning-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;Subject: Re: [Lightning-dev] Normal operation questions&lt;br/&gt;&lt;br/&gt;Hi Benjamin,&lt;br/&gt;&lt;br/&gt;&amp;gt; 1) Multiple sources indicate that after Alice sends the `update_add_htlc`,&lt;br/&gt;&amp;gt; she should then send the `commitment_signed`, but why is it important that&lt;br/&gt;&amp;gt; she sends it first (before Bob)? As far as I understand, as long as she&lt;br/&gt;&amp;gt; doesn&amp;#39;t revoke the old state before Bob commits to the new state, there&lt;br/&gt;&amp;gt; shouldn&amp;#39;t be a problem. In that case, the order wouldn&amp;#39;t matter---they could&lt;br/&gt;&amp;gt; even send their commitments concurrently. So does the order matter?&lt;br/&gt;&lt;br/&gt;You&amp;#39;re correct that it isn&amp;#39;t absolutely necessary that she sends a new&lt;br/&gt;signature after adding a new HTLC to the pending set of HTLCs. Alice may&lt;br/&gt;want to delay her signature if she has other HTLCs she wants to add to the&lt;br/&gt;commitment transaction, which allows her to batch/pipeline updates to the&lt;br/&gt;channel.&lt;br/&gt;&lt;br/&gt;If Alice is forwarding that HTLC, and Bob&amp;#39;s side of the channel has been&lt;br/&gt;dormant (not making many updates), then it&amp;#39;s her best interest to propose a&lt;br/&gt;new state immediately as she may generate some routing fees from a&lt;br/&gt;successful forward.&lt;br/&gt;&lt;br/&gt;Concurrent signatures aren&amp;#39;t an issue, but will end up generating additional&lt;br/&gt;state transitions for both sides to have the exact same set of locked in&lt;br/&gt;HTLCs.&lt;br/&gt;&lt;br/&gt;&amp;gt; 2) After Bob sends the `update_fulfill_htlc`, both he and Alice exchange&lt;br/&gt;&amp;gt; `commitment_signed` and `revoke_and_ack` messages again. Why is this&lt;br/&gt;&amp;gt; necessary? After Alice receives the preimage, doesn&amp;#39;t she have enough&lt;br/&gt;&amp;gt; information to claim her funds (with the new state)?&lt;br/&gt;&lt;br/&gt;If Bob is sending the pre-image, then _he_ is the one that is claiming the&lt;br/&gt;funds. Once Bob learns of the pre-image, he can go to chain if he wants to&lt;br/&gt;in order to claim the HTLC. However that&amp;#39;ll be a lot slower and also cost&lt;br/&gt;more in chain fees than doing an update off-chain to settle the HTLC from&lt;br/&gt;the PoV of the commitment transaction of both parties.  Both sides exchange&lt;br/&gt;those messages in order to update their commitment state _off chain_.&lt;br/&gt;&lt;br/&gt;Once Alice receives the pre-image (assuming a multi-hop scenario), she can&lt;br/&gt;opt to not wait for the full exchange, and instead _pipeline_ the pre-image&lt;br/&gt;back upstream in the route. In practice, this can reduce perceived user&lt;br/&gt;latency for payments, as you can side step the 1.5 RTTs at each hop in the&lt;br/&gt;route, and simply sling the pre-image all the way back to the original&lt;br/&gt;sender.&lt;br/&gt;&lt;br/&gt;-- Laolu&lt;br/&gt;&lt;br/&gt;On Tue, Feb 15, 2022 at 7:32 AM Benjamin Weintraub &amp;lt;weintraub.b at northeastern.edu&amp;lt;mailto:weintraub.b at northeastern.edu&amp;gt;&amp;gt; wrote:&lt;br/&gt;Hi all,&lt;br/&gt;&lt;br/&gt;I have a couple questions about the Normal Operation protocol. For the following, consider a single-hop payment between Alice and Bob over a single channel.&lt;br/&gt;&lt;br/&gt;1) Multiple sources indicate that after Alice sends the `update_add_htlc`, she should then send the `commitment_signed`, but why is it important that she sends it first (before Bob)? As far as I understand, as long as she doesn&amp;#39;t revoke the old state before Bob commits to the new state, there shouldn&amp;#39;t be a problem. In that case, the order wouldn&amp;#39;t matter---they could even send their commitments concurrently. So does the order matter?&lt;br/&gt;&lt;br/&gt;2) After Bob sends the `update_fulfill_htlc`, both he and Alice exchange `commitment_signed` and `revoke_and_ack` messages again. Why is this necessary? After Alice receives the preimage, doesn&amp;#39;t she have enough information to claim her funds (with the new state)?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Ben&lt;br/&gt;&lt;br/&gt;--&lt;br/&gt;Ben Weintraub&lt;br/&gt;PhD Student&lt;br/&gt;Khoury College of Computer Sciences&lt;br/&gt;Northeastern University&lt;br/&gt;&lt;a href=&#34;https://ben-weintraub.com/&amp;lt;https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fben-weintraub.com%2F&amp;amp;data=04%7C01%7Cweintraub.b%40northeastern.edu%7Cd033116731cd4050291708d9f0d8d9bb%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637805637505660537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;amp;sdata=ip73Qo2E1UUud0LxEuMVCpYJQNxYQYLB3YtW0xIrtUA%3D&amp;amp;reserved=0&amp;gt&#34;&gt;https://ben-weintraub.com/&amp;lt;https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fben-weintraub.com%2F&amp;amp;data=04%7C01%7Cweintraub.b%40northeastern.edu%7Cd033116731cd4050291708d9f0d8d9bb%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637805637505660537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;amp;sdata=ip73Qo2E1UUud0LxEuMVCpYJQNxYQYLB3YtW0xIrtUA%3D&amp;amp;reserved=0&amp;gt&lt;/a&gt;;&lt;br/&gt;&lt;br/&gt;_______________________________________________&lt;br/&gt;Lightning-dev mailing list&lt;br/&gt;Lightning-dev at lists.linuxfoundation.org&amp;lt;mailto:Lightning-dev at lists.linuxfoundation.org&amp;gt;&lt;br/&gt;&lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&amp;lt;https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.linuxfoundation.org%2Fmailman%2Flistinfo%2Flightning-dev&amp;amp;data=04%7C01%7Cweintraub.b%40northeastern.edu%7Cd033116731cd4050291708d9f0d8d9bb%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637805637505660537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;amp;sdata=V1m2qqncyahnT7crpeYhCmgGcBjep%2Ft%2FIBnjzuDbRJk%3D&amp;amp;reserved=0&amp;gt&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&amp;lt;https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.linuxfoundation.org%2Fmailman%2Flistinfo%2Flightning-dev&amp;amp;data=04%7C01%7Cweintraub.b%40northeastern.edu%7Cd033116731cd4050291708d9f0d8d9bb%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637805637505660537%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;amp;sdata=V1m2qqncyahnT7crpeYhCmgGcBjep%2Ft%2FIBnjzuDbRJk%3D&amp;amp;reserved=0&amp;gt&lt;/a&gt;;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20220216/16cb3180/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20220216/16cb3180/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T13:05:20Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqsgdt2h8mucf0duv0kpzmfdjp4gt9qmez37c4cmplk09m33r0wzg0czyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqhn2glc</id>
    
      <title type="html">📅 Original date posted:2022-02-15 📝 Original message: Hi ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqsgdt2h8mucf0duv0kpzmfdjp4gt9qmez37c4cmplk09m33r0wzg0czyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqhn2glc" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqszy07ggwtn5vuzv4ymjwhgc7tmesuszyke9h7zd5az2tz4lvugwds67zw95&#39;&gt;nevent1q…zw95&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2022-02-15&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi all,&lt;br/&gt;&lt;br/&gt;I have a couple questions about the Normal Operation protocol. For the following, consider a single-hop payment between Alice and Bob over a single channel.&lt;br/&gt;&lt;br/&gt;1) Multiple sources indicate that after Alice sends the `update_add_htlc`, she should then send the `commitment_signed`, but why is it important that she sends it first (before Bob)? As far as I understand, as long as she doesn&amp;#39;t revoke the old state before Bob commits to the new state, there shouldn&amp;#39;t be a problem. In that case, the order wouldn&amp;#39;t matter---they could even send their commitments concurrently. So does the order matter?&lt;br/&gt;&lt;br/&gt;2) After Bob sends the `update_fulfill_htlc`, both he and Alice exchange `commitment_signed` and `revoke_and_ack` messages again. Why is this necessary? After Alice receives the preimage, doesn&amp;#39;t she have enough information to claim her funds (with the new state)?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;Ben&lt;br/&gt;&lt;br/&gt;--&lt;br/&gt;Ben Weintraub&lt;br/&gt;PhD Student&lt;br/&gt;Khoury College of Computer Sciences&lt;br/&gt;Northeastern University&lt;br/&gt;&lt;a href=&#34;https://ben-weintraub.com/&#34;&gt;https://ben-weintraub.com/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20220215/ea3c951b/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20220215/ea3c951b/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T13:05:19Z</updated>
  </entry>

  <entry>
    <id>https://njump.me/nevent1qqs0n6zz3fqn9u2znuktdzv5wux26yg9ny5dm67v46m8zmscwu4dasczyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqr2taku</id>
    
      <title type="html">📅 Original date posted:2021-12-09 📝 Original message: Hi ...</title>
    
    <link rel="alternate" href="https://njump.me/nevent1qqs0n6zz3fqn9u2znuktdzv5wux26yg9ny5dm67v46m8zmscwu4dasczyr2gst3z59h8qnrn9nh6zkd5svu4hvpjcek93k0tx0z0f7agggtvqr2taku" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsqg4q00m2t4sqxf30c3tqn4rw7nw4enh9xy8mx2kfrjz35tse90kc6wnvj0&#39;&gt;nevent1q…nvj0&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2021-12-09&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi all,&lt;br/&gt;&lt;br/&gt;I have a question about BOLT #2. What exactly does it mean to &amp;#34;fail the channel&amp;#34;? In the section for &amp;#34;update_add_htlc,&amp;#34; the follwing text is written:&lt;br/&gt;&lt;br/&gt;  *   receiving an amount_msat equal to 0, OR less than its own htlc_minimum_msat:&lt;br/&gt;     *   SHOULD fail the channel.&lt;br/&gt;  *   receiving an amount_msat that the sending node cannot afford at the current feerate_per_kw (while maintaining its channel reserve and any to_local_anchor and to_remote_anchor costs):&lt;br/&gt;     *   SHOULD fail the channel.&lt;br/&gt;  *   if a sending node adds more than receiver max_accepted_htlcs HTLCs to its local commitment transaction, OR adds more than receiver max_htlc_value_in_flight_msat worth of offered HTLCs to its local commitment transaction:&lt;br/&gt;     *   SHOULD fail the channel.&lt;br/&gt;  *   if sending node sets cltv_expiry to greater or equal to 500000000:&lt;br/&gt;     *   SHOULD fail the channel.&lt;br/&gt;&lt;br/&gt;Does it mean closing the channel (unilaterally or mutually)? Or ending the TCP connection? Something else?&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Ben&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20211209/b7241bfc/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20211209/b7241bfc/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T13:04:45Z</updated>
  </entry>

</feed>