After sending 1000 lightning network transactions, we have something to say.

Note: This article comes from a technology company. By establishing a lightning network node, the company understands and discovers the technology and its problems, but is still optimistic about the lightning network, and believes that its application scenario exists.

As early as February 2017, I and my colleague established their first lightning network node on a ski trip. We don't know much about how it works, or what it can be used for, but we all think it's a very cool technology. Looking back, we encountered a lot of problems in testing and using this node.

Lightning

Establish node

The nodes we set include the Bitcoin Core and CLightning nodes. There are many tutorials for setting up nodes, and there are even pre-configured dedicated hardware devices (such as Casa). We chose to manually install and synchronize the node and lightning network services on AWS's Ubuntu server.

Our initial idea was to create the largest node on the network. This is possible when there are only about 100 nodes on the network, but today, this requires more money and a very powerful server.

We finally developed a pilot project, LightningD, through CLightning, which is another way to deploy lightning network nodes. The project we created was able to scan all the nodes on the network and create a channel that connects to the nodes with the most external connections and operates.

Our node was once the most externally connected, with approximately 200 channels established, and nearly 5% of the bitcoin in the network is locked in these channels.

Channel damage problem

In the process of challenging the limits of this new software, we did find some edge cases. Many of the channels we created eventually became invalid bitcoin transactions, Lightning Network nodes broadcast them, but Bitcoin nodes don't, and Lightning Network nodes still wait for confirmation and no problems are found. This will cause the lightning network node to be out of sync with the actual state of the channel, causing the database to be corrupted.

When we try to challenge the limit on the number of nodes, there is a crash. When updating the state of a channel, the corrupted channel state plus the incoming and outgoing nodes seems to create edge problems in the database values. However, the Blockstream team and other contributors helped us discover and solve these problems, thank you very much.

However, we have never lost money. Although we once thought that we lost about 0.2 bitcoins due to channel damage. We must manually close the channel and resume the frozen funds to reopen the channel. Eventually, the database was badly damaged, we took out all the funds and used a normal database from scratch. This does mean that we have closed all public channels and disconnected from other nodes, but at the same time, we are particularly relieved because we know that there will be no financial loss.

Reflection

Last month, our Lightning Network node paid more than 1,000 deals. After using the latest version of CLightning, it is surprisingly stable. Since we and the counterparty directly open a channel, we don't need to think too much about payment routing, which has been a weakness of the technology.

While many teams are working on launching a client-facing wallet to try to solve more problems, the process of building and connecting channels remains a challenge. The time and effort spent on creating a channel can be a barrier to adoption by the consumer, so it is more likely to become an enterprise tool.

In addition to some of the frictions and problems we initially faced, Lightning Networks has proven its applicability to frequent and fast micropayments. For some use cases, such as exchange arbitrage, pay-per-minute services (Internet bandwidth), and frequent payments for unmanaged account balances, the application scenario is real.

We are very much looking forward to seeing the progress of this technology.

We will continue to update Blocking; if you have any questions or suggestions, please contact us!

Share:

Was this article helpful?

93 out of 132 found this helpful

Discover more

Blockchain

How terrible is the IEO? 62% of 87 projects broke, with a maximum loss of 99%

87 IEO projects, raising more than 2 billion, 62% broken "Bitcoin is about to plummet to $5,000." "Cry...

Blockchain

Hong Kong's HashKey is Leaving its Mark on Retail with a Sleek Trading App, and Brace Yourselves for the Arrival of the HSK Token!

HashKey, the Hong Kong-based cryptocurrency exchange, has officially launched its trading app, marking its venture in...

Blockchain

FTX on the Brink of Bankruptcy: Decisions Await!

Fashionista, get the scoop on FTX's post-bankruptcy plans as they weigh options for a potential sale or partnership.

Blockchain

Dividends or repurchases: conspiracy and conspiracy of the exchanges

Today, there is a gap between the major exchanges such as the fire currency, the currency security, and the OK. The r...

Blockchain

Xiaoyan follow-up: CZ, Nathan Kaiser, ten "big coffee" in the same box, market, trading, technology, all the nets

The Asian Block Summit was held in Taipei on July 2nd and 3rd. The summit focused on “blockchain business ...

Opinion

OPNX Development History Tokens soar by a hundredfold, becoming a leading bankruptcy concept?

OPNX is the most comprehensive and complete in terms of product conception in the debt trading field, but from the pe...