
Is Lightning Battle Tested?
Bitcoin and Lightning Network developer Joost Jager is making waves on Twitter this morning after posting the below thread. Many individuals, mainly those who would like to see the Lightning Network fail so others will adopt their preferred cryptocurrency, are claiming that Joost's thread is an admission that the Lightning Network is a pipe dream that will never find success as a second layer network to Bitcoin. This couldn't be further from the truth.
2/ The underlying issue is that a channel cannot hold more than 483 htlcs at a time, regardless of the channel capacity. Sending 483 micro-payments to yourself and holding on to the htlcs is enough to incapacitate a channel for up to two weeks.
— Joost Jager (@joostjgr) September 22, 2020
4/ Here you see me locking up ~5800000 sat with a refundable 18 sat payment looping five times through three mainnet channels owned by @bitfinex and @OpenNodeCo. For basically as long as I want. This happened today. pic.twitter.com/mbN3iYVXlW
— Joost Jager (@joostjgr) September 22, 2020
6/ Therefore I started a new project called Circuit Breaker: a firewall for Lightning nodes. The primary goal is to encourage thinking about this problem, with the potential to grow into a full-fledged Lightning protection system.https://t.co/iyOYqCFG8b pic.twitter.com/4VaaAZSXEB
— Joost Jager (@joostjgr) September 22, 2020
If you look close enough and actually read through the thread, Joost is highlighting a potential attack vector against the channels of Lightning users that can be exploited pretty trivially at the moment. Not going to lie, not ideal. However, if those who read the first tweet had enough attention span to read through the entirety of the thread, they would notice that Joost is also putting forward a potential solution to thwart this type of attack; a Lightning Network Circuit Breaker that limits the amount of by allowing nodes within the network to set limits on the amount of in-flight HTLCs. Preventing a would be attacker from being able to successfully pull off the griefing attack that would lock up funds for extended periods of time.
While many are using this thread to poo poo the Lightning Network, your Uncle Marty is going to Spin Zone this into a bullish development that highlights the fact that there are extremely smart and dedicated individuals focusing their time and energy on making the Lightning Network as robust and secure as possible. Nothing is going to be perfect out of the box, especially something as ambitious as Bitcoin and the protocols people are building on top of it. Luckily for us, Bitcoin provides an extremely solid base from which to experiment on. This cannot be said for any other cryptocurrency in existence in my honest opinion.
Discovering shortcomings and hardening them before Lightning Network usage increases significantly is the best case scenario. Each shortcoming that is identified and fixed means the network's chance of future success increases. As I said last week, I have never been more bullish on the Lightning Network. And if you believe the investing heuristic that you should "fade the mainstream narrative" or "be greedy when people are fearful" now is a great time to be bullish on the Lightning Network.
If you are developer interested in Bitcoin and the Lightning Network, consider contributing to the work being started by Joost on Circuit Breakers.
Final thought...
Day two of writing the rag in a car. Less nauseous. Growing stronger.