-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
ChannelMonitor::is_stale
function
Checks if the monitor is stale, meaning it has not been updated with a new block data in a substantial amount of time and thus has no outputs to watch, ie this monitor is not expected to be able to claim any funds on chain. The first time this method is called it will save the current known height of the monitor if all funds are claimed. Otherwise, if we yet to claim all funds, it will return false. If all funds are claimed, it will return true if the monitor has not been updated with new block data in a substantial amount of time referred as `threshold` and `balances_empty_height` is set.
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters