[Lightning-dev] Channel refill
anton.kumaigorodskiy at outlook.com
Mon May 9 16:45:07 UTC 2016
As far as I understand LN has some edge cases such as:
-- one can't receive a single payment which is larger than what is currently locked in a channel (this is the most limiting one). -- a variation of the first case: one can issue a large number of small invoices which in total exceed current channel capacity so not all of them could be paid. -- obviously one can't make payments once their side of channel balance reaches zero.
The answer currently is to just open another channel (or transfer bitcoins directly) but what if "channel refill" procedure could be implemented?
It could work almost as "open anchor" procedure but not quite: -- the same pair of commit_key's is used resulting in a second utxo on anchor address. -- a separate "refill commitment tx" is created which does not invalidate current "main commitment tx". -- once on-chain refill tx reaches required depth a new "main commitment tx" is created which takes into account new utxo and old "main commitment tx" as well as "refill commitment tx" are invalidated.
One advantage of refill over new channel creation is that overall channel capacity would grow each time so after a number of refills no more of them may be needed for a long time.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lightning-dev