That seems impossible. You would never be able to update and close the channel, as balances wouldn't match on chain?
Discussion
Millisats have to be rounded up at the time of on-chain settlement.
I don't follow.
I have a channel of 1000 sats.
I send 999.2 sats
Assuming I already have set aside enough to cover closing fee.
What happens? How can I settle on chan again? There isn't a full sat left.
Is it just round to 0. So I close the channel and have no BTC back?
Wild.
You canโt have a 1000 sat channel. There wouldnโt be enough in reserve to cover the on-chain closing fees. Millisats are mainly used for internal accounting, for things like routing fees between nodes. What gets sent in transactions are still full sats.
According to the LND repo on GitHub:
MilliSatoshi are the native unit of the Lightning Network. A milli-satoshi is simply 1/1000th of a satoshi. There are 1000 milli-satoshis in a single satoshi. Within the network, all HTLC payments are denominated in milli-satoshis. As milli-satoshis aren't deliverable on the native blockchain, before settling to broadcasting, the values are rounded down to the nearest satoshi.
The 1000 sats was just an example. Make it 10,000 and 9999.3 sats sent.
Very interesting. Thanks.
1000 sats? Ok! We've got the mining fee covered.
If your bank wanted to charge you all the fees needed to use BTC & LN, would you use them?
Holy hell did you miss the point.
I made up a number for simplicty.
I could have same 1 million sats. or 100k.