]> git.bitcoin.ninja Git - rust-lightning/commit
Add `Event::ChannelClosed::last_local_balance_msats`
authorMirebella <166803555+Mirebella@users.noreply.github.com>
Sun, 11 Aug 2024 15:50:45 +0000 (17:50 +0200)
committerMatt Corallo <git@bluematt.me>
Tue, 8 Oct 2024 15:28:58 +0000 (15:28 +0000)
commit5d48d588ef16aad12a1a0786a310570bdf469c31
treef3b94369f34459f87dd6b8d84100d5027d6c9258
parentf7cc40e2e4793627356003cdd0ee5a4a73ecf2cd
Add `Event::ChannelClosed::last_local_balance_msats`

Users commonly want to know what their balance was when a channel
was closed, which this provides in a somewhat simplified manner.

It does not consider pending HTLCs and will always overstate our
balance by transaction fees.
lightning/src/events/mod.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs