<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:2022-02-16&#xA;📝 Original message:&#xA;Joost Jager &lt;joost.jager at gmail.com&gt; writes:&#xA;&gt; Hi Rusty,&#xA;&gt;&#xA;&gt; Nice to see the proposal in more concrete terms. Few questions:&#xA;&gt;&#xA;&gt; - The total proved utxo value (not counting any utxos which are spent)&#xA;&gt;&gt;   is multiplied by 10 to give the &#34;announcable_channel_capacity&#34; for that&#xA;&gt;&gt; node.&#xA;&gt;&gt;&#xA;&gt;&#xA;&gt; Could this work as a dynamic value too, similar to the minimum relay fee on&#xA;&gt; L1?&#xA;&#xA;I made the number up, so I&#39;m not very attached to it.  How would we&#xA;choose to scale it though?  If nodes don&#39;t use the same value it makes&#xA;for wasted gossip (and minisketch-based gossip much harder).&#xA;&#xA;&gt;&gt; 1. `tlv_stream`: `channel_update_v2_tlvs`&#xA;&gt;&gt;&#xA;&gt; 2. types:&#xA;&gt;&gt;     1. type: 4 (`capacity`)&#xA;&gt;&gt;     2. data:&#xA;&gt;&gt;         * [`tu64`:`satoshis`]&#xA;&gt;&gt;&#xA;&gt;&#xA;&gt; What does capacity mean exactly outside the context of a real channel? Will&#xA;&gt; this be reduced to that maximum htlc amount that the nodes want to route,&#xA;&gt; to save as much of the announceable budget as possible?&#xA;&#xA;Yes, it&#39;s the old htlc_maximum_msat, but expressed in satoshis because&#xA;msat seems to finegrained?&#xA;&#xA;&gt; It is also the question of whether 10 x 10k channels should weigh as much&#xA;&gt; on the budget as a 1 x 100k channel. A spammer may be able to do more harm&#xA;&gt; with multiple smaller channels because there is more for the sender&#39;s&#xA;&gt; pathfinding algorithms to explore. Maybe it doesn&#39;t matter as long as there&#xA;&gt; is some mechanism to discourage spam.&#xA;&#xA;Yes, I suggested a minimum cost to avoid 100k 1sat channels, I don&#39;t&#xA;know if we should be more sophisticated.&#xA;&#xA;&gt;&gt;     1. type: 5 (`cost`)&#xA;&gt;&gt;     2. data:&#xA;&gt;&gt;        * [`u16`:`cltv_expiry_delta`]&#xA;&gt;&gt;        * [`u32`:`fee_proportional_millionths`]&#xA;&gt;&gt;        * [`tu32`:`fee_base_msat`]&#xA;&gt;&gt;     1. type: 6 (`min_msat`)&#xA;&gt;&gt;     2. data:&#xA;&gt;&gt;         * [`tu64`:`min_htlc_sats`]&#xA;&gt;&gt;&#xA;&gt;&gt; - `channel_id_and_claimant` is a 31-bit per-node channel_id which can be&#xA;&gt;&gt;   used in onion_messages, and a one bit stolen for the `claim` flag.&#xA;&gt;&#xA;&gt; If you&#39;d increase the budget multiplier from 10 to 20, couldn&#39;t this be&#xA;&gt; simplified to always applying the cost to both nodes?&#xA;&#xA;Yes!  I forgot that capacity doesn&#39;t have to be symmetrical; if I open a&#xA;giant channel with you, and you don&#39;t want to expose more UTXOs, you&#xA;just set your capacity to some lower value.&#xA;&#xA;&gt;&gt; - A channel is not considered to exist until both peers have sent a&#xA;&gt;&gt;   channel_update_v2, at least one of which must set the `claim` flag.&#xA;&gt;&gt; - If a node sets `claim`, the capacity of the channel is subtracted from&#xA;&gt;&gt;   the remaining announcable_channel_capacity for that node (minimum&#xA;&gt;&gt;   10,000 sats).&#xA;&gt;&#xA;&gt; Same question about magic value and whether it can be dynamic.&#xA;&#xA;Yes, 10ksat might be giant one day?  We can change it naively with a&#xA;feature bit (&#34;I use v2 capacity calcs&#34;), or in some more finegrained&#xA;way, but what do we base it on?&#xA;&#xA;Cheers!&#xA;Rusty.</html></oembed>