mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
Correct ChannelMonitor::is_fully_resolved
docs
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.
This commit is contained in:
parent
195e666953
commit
71fef35eb2
1 changed files with 1 additions and 1 deletions
|
@ -1865,7 +1865,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
|
||||||
/// its outputs and balances (i.e. [`Self::get_claimable_balances`] returns an empty set).
|
/// 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
|
/// 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 {
|
pub fn is_fully_resolved<L: Logger>(&self, logger: &L) -> bool {
|
||||||
let mut is_all_funds_claimed = self.get_claimable_balances().is_empty();
|
let mut is_all_funds_claimed = self.get_claimable_balances().is_empty();
|
||||||
let current_height = self.current_best_block().height;
|
let current_height = self.current_best_block().height;
|
||||||
|
|
Loading…
Add table
Reference in a new issue