-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Background
Today, when a channel is opened by A to B, A is requesting B to hold 1% of the capacity in reserve if and when B has a balance greater or equal of the reserve amount (channel_reserve_satoshis). This can lead to strange situations like the case when A opens a 1,000,000 sat channel to B, A sends 10,000 sat to B but B can't do anything with these 10,000 sat as they should be kept as reserve.
Bolt 2: channel_reserve_satoshis: 1% of the channel total is suggested. Each side of a channel maintains this reserve so it always has something to lose if it were to try to broadcast an old, revoked commitment transaction.
Clearly, if B had in the past most of the capacity (say, 50%-99%) and is now having only 1%, this 1% will not keep the "wrong" person from trying to broadcast an old, revoked commitment transaction.
I would like to suggest a new startup Option --chanreserve which is the percentage of the capacity to be used as channel_reserve_satoshis. Default will be 1%.
Please let me know if you are happy with this and I will try to add support.
Thanks
Offer