Proposal: The Million Channel (Lightning) Project

Rusty Russell
Jan 5, 2019 · 1 min read

I’ve had this idea for a while, but I’ve never got around to it so I’m calling publicly for collaborators: https://github.com/rustyrussell/million-channels-project

The project would be in several parts:

  1. Do some rough analysis of the current lightning network: number of (public) channels, number of nodes, distribution of channels by node, and distribution of channels in blocks.
  2. Apply a scaling factor to make a similar network on regtest, preferably in a reproducible manner. This would be the corpus.
  3. Write a program to generate all the gossip generated by that network.
  4. Feed the gossip into a test node and watch it die horribly.
  5. Fix the bottlenecks in each implementation :)

Obviously, there are an infinite number of refinements, but I expect we would get useful results out of even a simple version of this. It would be nice to get ahead of network growth and uncover issues before they become deployment problems.

Meanwhile, thanks to a nice stream of bug reports from Javier on Telgram, I’ve ordered a Raspberry Pi as my third lightning node for more performance testing.

Contributions welcome!

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store