Skip to content

Feature: Lightweight lightningd.sqlite3 database #4824

Closed
@jsarenik

Description

@jsarenik

Description

As discussed in one of the recent Monday meetings, I would like to know what are the minimum data in lightningd.sqlite3 file in order to keep the basic functionality of the node and all its channels, but being able to forget the history of all the forwards at least.

My node is routing for free (0 base and 0 proportional) no matter what. So I think all that is needed in the DB should be some channel states and balances. Anything else?

Currently I am experimenting with wiping out the contents of forwarded_payments and channel_htlcs tables.

The above reduces the size of lightningd.sqlite3 file significantly (from 380MB to 120MB). What other table contents would be safe to delete?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions