]> git.bitcoin.ninja Git - rust-lightning/commit
Add tx fee information to `Balance::ClaimableOnChannelClose`
authorMatt Corallo <git@bluematt.me>
Fri, 29 Sep 2023 17:54:24 +0000 (17:54 +0000)
committerDuncan Dean <git@dunxen.dev>
Tue, 13 Aug 2024 11:26:57 +0000 (13:26 +0200)
commita39357e08a86a71e80451ab56f36a17f36178a55
tree93e200c4f364968dc5669b62da7f6a6ec1aa89e7
parentf1f28c6010139de04359aa04f98e708e15bd6a7d
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