Skip to content

Prune monitors with zero claimable balances upon persisting #2236

Closed
@wpaulino

Description

@wpaulino

Currently, users can decide to prune their ChannelMonitors if a call to get_claimable_balances returns empty. This is only safe to do so in certain scenarios though, as we can also return empty if the channel is either still unconfirmed or it has confirmed but we don't have a to_self balance (like in the case of an inbound channel) and no HTLCs are present in our latest commitment transaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions