LND DeleteForwardingHistory
How It Works
The deletion mechanism operates at the database layer, directly manipulating the forwarding log bucket in LND's embedded bbolt database. The forwarding log stores events using nanosecond-precision timestamps as keys, which enables efficient time-based range queries. When you invoke a deletion, LND constructs a cursor-based iteration that walks through events in chronological order, collecting keys for events older than your specified cutoff time. It then deletes these events in batches, with each batch executed within its own database transaction.

GitHub
lnd/docs/forwarding_history_privacy.md at 017299fe6f3aec3d8c7ece84c383a47da59862f0 · Roasbeef/lnd
Lightning Network Daemon ⚡️. Contribute to Roasbeef/lnd development by creating an account on GitHub.


