Learn Bitcoin is live in Beta - spot an issue or have a suggestion? We'd love to hear it!
Home Glossary G Graph Pruning

Graph Pruning

An LN node’s maintenance process for removing stale or inactive channels from its local network map to improve efficiency.
Share

Over time, some Lightning channels become unresponsive or inactive, yet they stay in the node’s database. Graph pruning removes these dead branches, minimizing memory use and speeding up routing calculations. Nodes typically prune channels that haven’t seen updates or successful pings for a set period.

This housekeeping step ensures the LN topology reflects the real, active channels rather than cluttering it with outdated entries. Users generally don’t notice pruning, as it happens in the background. Still, it’s essential for maintaining a lean and accurate view of the ever-evolving LN network graph.

Key takeaways
Deletes outdated or non-responsive LN channels from the routing table
Saves memory and improves route-finding performance
Ensures nodes have a current snapshot of active channels
Learn Bitcoin visual
Learn how to

Be Your Own Bank

Be Your Own Bank teaches you how to securely store and manage your Bitcoin, giving you full control over your finances. Unlock the power of self-custody and financial sovereignty, so you can confidently operate without intermediaries.

Take the Survey
30 sec
Free
Suggest a Term

Have a term to suggest? Enter it below and help us expand our vocabulary!