Expose the amount of funds available for claim in ChannelMonitor
authorMatt Corallo <git@bluematt.me>
Wed, 4 Aug 2021 16:10:38 +0000 (16:10 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 15 Sep 2021 18:07:34 +0000 (18:07 +0000)
commit00906418aabc482c0067b085e6f57db61df68bb2
tree834683da7ea7974cb85caec14eb1b9c44c66e9fd
parentf9febb0351414222dc61e1bef647b140bf7a1e39
Expose the amount of funds available for claim in ChannelMonitor

In general, we should always allow users to query for how much is
currently in-flight being claimed on-chain at any time.

This does so by examining the confirmed claims on-chain and
breaking down what is left to be claimed into a new
`ClaimableBalance` enum.

Fixes #995.
lightning/src/chain/channelmonitor.rs
lightning/src/ln/monitor_tests.rs