<oembed><type>rich</type><version>1.0</version><author_name>npub1vjzmc45k8dgujppapp2ue20h3l9apnsntgv4c0ukncvv549q64gsz4x8dd</author_name><author_url>https://nostr.ae/npub1vjzmc45k8dgujppapp2ue20h3l9apnsntgv4c0ukncvv549q64gsz4x8dd</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2020-10-08&#xA;📝 Original message:&#xA;&gt; There is no need to stop the channel&#39;s operations while you&#39;re updating&#xA;these parameters, since&#xA;they can be updated unilaterally anyway&#xA;&#xA;I think it&#39;s just how you defne channel&#39;s operations, either emptying out&#xA;all pending HTLCs or more a `update_fee` alike semantic. You&#39;re right that&#xA;the latter should be good enough for the set of parameters you&#39;re proposing.&#xA;A lightweight `update_policy` doesn&#39;t sound to bear difficulty at first&#xA;sight.&#xA;&#xA;Le jeu. 8 oct. 2020 à 08:23, Bastien TEINTURIER &lt;bastien at acinq.fr&gt; a écrit :&#xA;&#xA;&gt; Good morning Antoine and Zman,&#xA;&gt;&#xA;&gt; Thanks for your answers!&#xA;&gt;&#xA;&gt; I was thinking dynamic policy adjustment would be covered by the dynamic&#xA;&gt;&gt; commitment mechanism proposed by Laolu&#xA;&gt;&#xA;&gt;&#xA;&gt; I didn&#39;t mention this as I think we still have a long-ish way to go before&#xA;&gt; dynamic commitments&#xA;&gt; are spec-ed, implemented and deployed, and I think the parameters I&#39;m&#xA;&gt; interested in don&#39;t require&#xA;&gt; that complexity to be updated.&#xA;&gt;&#xA;&gt; Please forget about channel jamming, upfront fees et al and simply&#xA;&gt; consider the parameters I&#39;m&#xA;&gt; mentioning. It feels to me that these are by nature dynamic channel&#xA;&gt; parameters (some of them are&#xA;&gt; even present in `channel_update`, but no-one updates them yet because&#xA;&gt; direct peers don&#39;t take the&#xA;&gt; update into account anyway). I&#39;d like to raise `htlc_minimum_msat` on some&#xA;&gt; big channels because&#xA;&gt; I&#39;d like these channels to be used only for big-ish payments. Today I&#xA;&gt; can&#39;t, I have to close that&#xA;&gt; channel and open a new one for such a trivial configuration update, which&#xA;&gt; is sad.&#xA;&gt;&#xA;&gt; There is no need to stop the channel&#39;s operations while you&#39;re updating&#xA;&gt; these parameters, since&#xA;&gt; they can be updated unilaterally anyway. The only downside is that if you&#xA;&gt; make your policy stricter,&#xA;&gt; your peer may send you some HTLCs that you will immediately fail&#xA;&gt; afterwards; it&#39;s only a minor&#xA;&gt; inconvenience that won&#39;t trigger a channel closure.&#xA;&gt;&#xA;&gt; I&#39;d like to know if other implementations than eclair have specificities&#xA;&gt; that would make this&#xA;&gt; feature particularly hard to implement or undesirable.&#xA;&gt;&#xA;&gt; Thanks,&#xA;&gt; Bastien&#xA;&gt;&#xA;&gt; Le mar. 6 oct. 2020 à 18:43, ZmnSCPxj &lt;ZmnSCPxj at protonmail.com&gt; a écrit :&#xA;&gt;&#xA;&gt;&gt; Good morning Antoine, and Bastien,&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt; &gt; Instead of relying on reputation, the other alternative is just to have&#xA;&gt;&gt; an upfront payment system, where a relay node doesn&#39;t have to account for a&#xA;&gt;&gt; HTLC issuer reputation to decide acceptance and can just forward a HTLC as&#xA;&gt;&gt; long it paid enough. More, I think it&#39;s better to mitigate jamming with a&#xA;&gt;&gt; fees-based system than a web-of-trust one, less burden on network newcomers.&#xA;&gt;&gt;&#xA;&gt;&gt; Let us consider some of the complications here.&#xA;&gt;&gt;&#xA;&gt;&gt; A newcomer wants to make an outgoing payment.&#xA;&gt;&gt; Speculatively, it connects to some existing nodes based on some policy.&#xA;&gt;&gt;&#xA;&gt;&gt; Now, since forwarding is upfront, the newcomer fears that the node it&#xA;&gt;&gt; connected to might not even bother forwarding the payment, and instead just&#xA;&gt;&gt; fail it and claim the upfront fees.&#xA;&gt;&gt;&#xA;&gt;&gt; In particular: how would the newcomer offer upfront fees to a node it is&#xA;&gt;&gt; not directly channeled with?&#xA;&gt;&gt; In order to do that, we would have to offer the upfront fees for that&#xA;&gt;&gt; node, to the node we *are* channeled with, so it can forward this as well.&#xA;&gt;&gt;&#xA;&gt;&gt; * We can give the upfront fee outright to the first hop, and trust that&#xA;&gt;&gt; if it forwards, it will also forward the upfront fee for the next hop.&#xA;&gt;&gt;   * The first hop would then prefer to just fail the HTLC then and there&#xA;&gt;&gt; and steal all the upfront fees.&#xA;&gt;&gt;     * After all, the offerrer is a newcomer, and might be the sybil of a&#xA;&gt;&gt; hacker that is trying to tie up its liquidity.&#xA;&gt;&gt;       The first hop would (1) avoid this risk and (2) earn more upfront&#xA;&gt;&gt; fees because it does not forward those fees to later hops.&#xA;&gt;&gt;   * This is arguably custodial and not your keys not your coins applies.&#xA;&gt;&gt;     Thus, it returns us back to tr\*st anyway.&#xA;&gt;&gt; * We can require that the first hop prove *where* along the route errored.&#xA;&gt;&gt;  If it provably failed at a later hop, then the first hop can claim more&#xA;&gt;&gt; as upfront fees, since it will forward the upfront fees to the later hop as&#xA;&gt;&gt; well.&#xA;&gt;&gt;   * This has to be enforcable onchain in case the channel gets dropped&#xA;&gt;&gt; onchain.&#xA;&gt;&gt;     Is there a proposal SCRIPT which can enforce this?&#xA;&gt;&gt;   * If not enforcable onchain, then there may be onchain shenanigans&#xA;&gt;&gt; possible and thus this solution might introduce an attack vector even as it&#xA;&gt;&gt; fixes another.&#xA;&gt;&gt;     * On the other hand, sub-satoshi amounts are not enforcable onchain&#xA;&gt;&gt; too, and nobody cares, so...&#xA;&gt;&gt;&#xA;&gt;&gt; On the other hand, a web-of-tr\*st might not be *that* bad.&#xA;&gt;&gt;&#xA;&gt;&gt; One can say that &#34;tr\*st is risk&#34;, and consider that the size and age of&#xA;&gt;&gt; a channel to a peer represents your tr\*st that that peer will behave&#xA;&gt;&gt; correctly for fast and timely resolution of payments.&#xA;&gt;&gt; And anyone can look at the blockchain and the network gossip to get an&#xA;&gt;&gt; idea of who is generally considered tr\*stworthy, and since that&#xA;&gt;&gt; information is backed by Bitcoins locked in channels, this is reasonably&#xA;&gt;&gt; hard to fake.&#xA;&gt;&gt;&#xA;&gt;&gt; On the other hand, this risks centralization around existing, long-lived&#xA;&gt;&gt; nodes.&#xA;&gt;&gt; *Sigh*.&#xA;&gt;&gt;&#xA;&gt;&gt; Regards,&#xA;&gt;&gt; ZmnSCPxj&#xA;&gt;&gt;&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20201008/4fe5af26/attachment-0001.html&gt;</html></oembed>