Correct `ChannelMonitor::is_fully_resolved` docs
authorMatt Corallo <git@bluematt.me>
Thu, 18 Apr 2024 21:40:41 +0000 (21:40 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 18 Apr 2024 21:43:16 +0000 (21:43 +0000)
The block count at which the monitor will become prunable was
changed by an update while the PR was pending but not propagated
to the docs.

lightning/src/chain/channelmonitor.rs

index c05b6b309221f6b61c1c2a1eefdace52b705dd99..853fbbbe8bf147d217b9df305bf73f087fc259ed 100644 (file)
@@ -1865,7 +1865,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
        /// its outputs and balances (i.e. [`Self::get_claimable_balances`] returns an empty set).
        ///
        /// This function returns true only if [`Self::get_claimable_balances`] has been empty for at least
-       /// 2016 blocks as an additional protection against any bugs resulting in spuriously empty balance sets.
+       /// 4032 blocks as an additional protection against any bugs resulting in spuriously empty balance sets.
        pub fn is_fully_resolved<L: Logger>(&self, logger: &L) -> bool {
                let mut is_all_funds_claimed = self.get_claimable_balances().is_empty();
                let current_height = self.current_best_block().height;