Add `ChannelMonitor::is_fully_resolved` function
authorjbesraa <jbesraa@gmail.com>
Fri, 29 Mar 2024 05:56:23 +0000 (08:56 +0300)
committerMatt Corallo <git@bluematt.me>
Thu, 18 Apr 2024 15:53:21 +0000 (15:53 +0000)
commit9a1649c2b2ca5b348d2e58624ccc936197bcb4d0
treebfdf4f115e30cb95fd4f5b8c9ffde39c61450519
parent1d2a27d11963d0d37606458169b9e59e5165f2a9
Add `ChannelMonitor::is_fully_resolved` function

  Checks if the monitor is fully resolved. Resolved monitor is one that has claimed all of
  its ouputs and balacnes.

  This function returns true only if `get_claimable_balances` has been empty for at least
  2016 blocks.
lightning/src/chain/channelmonitor.rs