]> git.bitcoin.ninja Git - rust-lightning/commit
Remove AvailableBalances::balance_msat
authorDuncan Dean <git@dunxen.dev>
Thu, 15 Aug 2024 08:15:30 +0000 (10:15 +0200)
committerDuncan Dean <git@dunxen.dev>
Mon, 9 Sep 2024 17:37:03 +0000 (19:37 +0200)
commit59f16896d60ad92c1e5fae7519e20d5745bce14a
tree8cc4d6dfa1f7897199db483f746846ab82c56b8a
parenteba329cfaf4a0ec3743c137ea43bafb6adc43d14
Remove AvailableBalances::balance_msat

The ChannelMonitor::get_claimable_balances and ChainMonitor::get_claimable_balances
methods provide 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.

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