Skip to content

staticaddr/deposit: deposits cache can grow without bound #1170

Description

@hieblmi

The static address deposit manager keeps a deposits map[wire.OutPoint]*Deposit that appears to retain every deposit seen by the daemon.

Finalized deposits are removed from activeDeposits, but the broader deposits map is not pruned. On startup, the map is repopulated from Store.AllDeposits, including historical/final deposit rows.

For a reusable static address, this means a long-running or high-volume node could accumulate an unbounded in-memory deposit cache over time. This is especially relevant if the address receives many small deposits, dust, or spam.

This issue is a reminder to evaluate and address the memory-growth concern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions