Correct balance printing in cli
authorMatt Corallo <git@bluematt.me>
Fri, 25 Mar 2022 23:16:32 +0000 (23:16 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 25 Mar 2022 23:21:49 +0000 (23:21 +0000)
commit719ac734966f6e65f883059f40772101d5a255df
tree716546c97b9a2ebe7e00846254a481c375cf00f6
parent8e113ff7a8e31cbc63310222ed038cd7ab92520d
Correct balance printing in cli

The `outbound_capacity_msat + unspendable_punishment_reserve`
calculation is fine, as long as the channel's current balance is
above the reserve value. If it is not, we'll spuriously report a
balance higher than we actually have.

This corrects that be havior by using the new(er) `balance_msat`
field instead.
src/cli.rs