-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Description
When you use openchannel with the push_sats argument (ie. open channel worth 10 BTC and push 5 BTC to the other side from the beginning state)
I doubt anyone will use push_sats on mainnet in prod... but in our test environment it was very obvious since we use push_sats all the time, and everything is wonky because of it.
Also, should we be considering LOCAL_CHANNEL_OPEN capacity as debited funds?
Currently it shows amount: 10 BTC, credit: false for the channel open when I still control half the funds in the channel.
Perhaps LOCAL_CHANNEL_OPEN should only "debit":
- Any amount pushed in first state via push_sats
- Any amount that is not usable on our end (set aside for closing fees etc.) (These "set aside" things can be credited during close if we don't use them all)