Consider anchor outputs value in get_available_balances
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Thu, 19 Oct 2023 16:25:23 +0000 (09:25 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 20 Oct 2023 18:04:40 +0000 (11:04 -0700)
commitd7672d4ebe59db94d145354f71962040891af013
tree74c1ee316e8d8a46053fddca2afbd504330cb687
parent37a3a03f12780f0074b1a08013aebd86e9c066ad
Consider anchor outputs value in get_available_balances

This could lead us to sending/forwarding HTLCs that would put us below
our reserve, forcing our counterparty to close the channel on us due to
an invalid update.
lightning/src/ln/channel.rs