]> git.bitcoin.ninja Git - rust-lightning/commit
Add an accessor to `ChainMonitor` to get the claimable balances
authorMatt Corallo <git@bluematt.me>
Wed, 25 Aug 2021 20:13:01 +0000 (20:13 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 15 Sep 2021 18:07:34 +0000 (18:07 +0000)
commita675886e101d1cfb79117a040af88e7f3f7727d0
tree575a2dbbde47f304d5bf071c36f9049478a86f2f
parent00906418aabc482c0067b085e6f57db61df68bb2
Add an accessor to `ChainMonitor` to get the claimable balances

The common user desire is to get the set of claimable balances for
all non-closed channels. In order to do so, they really want to
just ask their `ChainMonitor` for the set of balances, which they
can do here by passing the `ChannelManager::list_channels` output
to `ChainMonitor::get_claimable_balances`.
lightning/src/chain/chainmonitor.rs