lnresearch / topology

Data about the past and current structure of the Lightning Network
MIT License
83 stars 15 forks source link

cli: Add a simple timemachine to reconstruct the network from msgs #1

Closed cdecker closed 3 years ago

cdecker commented 3 years ago

We can replay the gossip messages in order and reconstruct the network as it would have looked like at a specific time in the past. This tool does just that, including the 2 weeks passive pruning logic (if a channel hasn't seen an update in the last two weeks they are considered dead). It is not considering channel closes that are signaled by spending the funding output, since that'd require tracking the outputs.