<oembed><type>rich</type><version>1.0</version><title>Rusty Russell [ARCHIVE] wrote</title><author_name>Rusty Russell [ARCHIVE] (npub1zw…hkhpx)</author_name><author_url>https://yabu.me/npub1zw7cc8z78v6s3grujfvcv3ckpvg6kr0w7nz9yzvwyglyg0qu5sjsqhkhpx</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>📅 Original date posted:2021-07-04&#xA;📝 Original message:&#xA;Matt Corallo &lt;lf-lists at mattcorallo.com&gt; writes:&#xA;&gt; Thanks!&#xA;&gt;&#xA;&gt; On 6/29/21 01:34, Rusty Russell wrote:&#xA;&gt;&gt; Hi all!&#xA;&gt;&gt; &#xA;&gt;&gt;          John Carvalo recently pointed out that not every implementation&#xA;&gt;&gt; accepts zero-conf channels, but they are useful.  Roasbeef also recently&#xA;&gt;&gt; noted that they&#39;re not spec&#39;d.&#xA;&gt;&gt; &#xA;&gt;&gt; How do you all do it?  Here&#39;s a strawman proposal:&#xA;&gt;&gt; &#xA;&gt;&gt; 1. Assign a new feature bit &#34;I accept zeroconf channels&#34;.&#xA;&gt;&gt; 2. If both negotiate this, you can send update_add_htlc (etc) *before*&#xA;&gt;&gt;     funding_locked without the peer getting upset.&#xA;&gt;&#xA;&gt; Does it make sense to negotiate this per-direction in the channel init message(s)? There&#39;s a pretty different threat &#xA;&gt; model between someone spending a dual-funded or push_msat balance vs someone spending a classic channel-funding balance.&#xA;&#xA;channel_types fixes this :)&#xA;&#xA;Until then, I&#39;d say keep it simple.  I would think that c-lightning will&#xA;implement the &#34;don&#39;t route from non-locked-in channels&#34; and always&#xA;advertize this option.  That means we&#39;re always offering zero-conf&#xA;channels, but that seems harmless:&#xA;&#xA;- Risks for funder is that channel never confirms, but it probably ignores&#xA;  the risk because it can close onchain (annoying, and fee-heavy, but not&#xA;  loss of funds caused by peer).&#xA;&#xA;- Risks for fundee (or DF channels where peer contributes any funds) is&#xA;  that funder doublespends, so HTLCs must not be routed out to others&#xA;  (unless you have other reason to trust peer).&#xA;&#xA;Cheers,&#xA;Rusty.</html></oembed>