<oembed><type>rich</type><version>1.0</version><author_name>npub1r375vdaydp5nnnytff6ee2kwzxak8whmwkmnkm6h67agr7dadfkqxn6ccq</author_name><author_url>https://nostr.ae/npub1r375vdaydp5nnnytff6ee2kwzxak8whmwkmnkm6h67agr7dadfkqxn6ccq</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2017-12-27&#xA;📝 Original message:&#xA;Andy Schroder&#xA;&#xA;On 12/27/2017 12:18 AM, Andy Schroder wrote:&#xA;&gt;&gt; Channel closing&#xA;&gt;&gt; costs dwarf the gains to be made from cheating, however.&#xA;&gt;&gt;&#xA;&gt;&gt;&gt; Since millisatoshis is used, is there a maximum channel funding size?&#xA;&gt;&gt; Yes, the upper 32 bits must be zero, from BOLT #2:&#xA;&gt;&gt;&#xA;&gt;&gt;    - for channels with `chain_hash` identifying the Bitcoin blockchain:&#xA;&gt;&gt;      - MUST set the four most significant bytes of `amount_msat` to 0.&#xA;&gt;&gt;&#xA;&gt;&gt; This gives a maximum HTLC value of .04294967295 BTC, which, back when&#xA;&gt;&gt; we started, was about $10.&#xA;&gt;&#xA;&gt; What&#39;s the point of wasting the upper 32 bits? Seems like this is a &#xA;&gt; waste of data?&#xA;&gt;&#xA;&gt; If you have the lower 32 bits of data to use, and 2^32=4,294,967,296, &#xA;&gt; then you have 4,294,967,296 milli satoshis. 1 BTC=10^11 milli &#xA;&gt; satoshis, so 4,294,967,296 milli satoshis/((10^11 milli &#xA;&gt; satoshis)/1BTC) = 0.04294967296 BTC. That is off by 1 milli satoshi &#xA;&gt; from what you say above. Why is this?&#xA;&gt;&#xA;&gt; Regardless of the discrepancy of 1 milli satoshi, it still seems like &#xA;&gt; 0.04294967296 BTC is kind of a low maximum channel size for a lot of &#xA;&gt; business applications. Why do you want to limit this when you have &#xA;&gt; those extra 4 bytes set to zero? You think any more is too much to &#xA;&gt; safely have in a hot wallet? You felt keeping it low will encourage &#xA;&gt; decentralization? Something else?&#xA;&gt;&#xA;&gt;&#xA;&gt; Is the max HTLC value the same as the maximum channel size? &#xA;&#xA;Okay, so I may have discovered part of this answer to this question in &#xA;BOLT 2 where it says: &#34;MUST set |funding_satoshis| to less than 2^24 &#xA;satoshi&#34;. However, I still don&#39;t understand the rational of why |max &#xA;||funding_satoshis doesn&#39;t equal max |amount_msat, or where the values &#xA;of (2^24)*10^3 and 2^32 milli satoshis came from. Also, why don&#39;t you &#xA;use units of millisatoshis everywhere in the spec? Sometimes it&#39;s &#xA;satoshis and sometimes it&#39;s milli satoshis.&#xA;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20171227/f270ce79/attachment.html&gt;</html></oembed>