]> git.bitcoin.ninja Git - rust-lightning/commit
Deprecate AvailableBalances::balance_msat
authorDuncan Dean <git@dunxen.dev>
Fri, 16 Aug 2024 09:34:55 +0000 (11:34 +0200)
committerDuncan Dean <git@dunxen.dev>
Tue, 20 Aug 2024 15:08:34 +0000 (17:08 +0200)
commit70762f90caaad3ceb1c1e81bebbca90876c6be66
tree9756adb616435783af9904e7d2fb0906eaa8d920
parent680d399da38f0daba6ff7952ad929d57d0285d33
Deprecate AvailableBalances::balance_msat

The ChannelMonitor::get_claimable_balances method provides a more
straightforward approach to the balance of a channel, which satisfies
most use cases. The computation of AvailableBalances::balance_msat is
complex and originally had a different purpose that is not applicable
anymore. We deprecate AvailableBalances::balance_msat now and will remove
it in a following release.

Co-authored-by: Willem Van Lint <noreply@wvanlint.dev>
lightning/src/chain/chainmonitor.rs
lightning/src/ln/channel.rs
lightning/src/ln/channel_state.rs
lightning/src/routing/router.rs
pending_changelog/3247-deprecate-balance_msat.txt [new file with mode: 0644]