Closed
Description
EDIT: renamed this issue, new goal below.
LND 0.12
will return inbound balance with the channelbalance
call. Since this is considerably more efficient and accurate than our current "iterate through lnd's listchannels
" approach, we should move to this call too once lndbtc & lndltc 0.12 are released.
Also I just double checked the following:
- lnd's
channelbalance
is simply alllocal_balance
fields of all channels accumulated - same way does
channelbalance
include allremote_balance
fields of all channels accumulated with the PR above.
Here is the but: lnd's local_balance
and remote_balance
subtract the commit_fee
, but not the channel reserve chan_reserve_sat
which is essentially non-usable balance. Question is: do we want to manually subtract channel reserves from our local and remote balances to give the user a correct picture of what balance is actually usable?