Add tx fee information to `Balance::ClaimableOnChannelClose`
authorMatt Corallo <git@bluematt.me>
Fri, 29 Sep 2023 17:54:24 +0000 (17:54 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 14 Nov 2023 22:01:09 +0000 (22:01 +0000)
commitb5ad3c91e81f3d47b9afdd004f38689448647bfb
tree57c827c582615ec13915e42594ad3da475575035
parent80a2598d936cf3a79f02eb02b90b889ea0c7af50
Add tx fee information to `Balance::ClaimableOnChannelClose`

`Balance::ClaimableOnChannelClose` excludes the commitment
transaction fee, which makes it hard to use for current balance
calculation. Here we add it, setting the value to zero for inbound
channels (i.e. ones for which we don't pay the fee).
lightning/src/chain/channelmonitor.rs
lightning/src/ln/channel.rs
lightning/src/ln/monitor_tests.rs