From 88e78da7e5e73d50baa489881abc4959e26af952 Mon Sep 17 00:00:00 2001 From: Brian McMichael Date: Sun, 23 Feb 2020 14:55:49 -0500 Subject: [PATCH 1/5] non obvious => non-obvious --- 01_introduction.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_introduction.asciidoc b/01_introduction.asciidoc index 6273dc9..ab75c5a 100644 --- a/01_introduction.asciidoc +++ b/01_introduction.asciidoc @@ -4,7 +4,7 @@ Welcome to Mastering the Lightning Network (LN)! -The Lightning Network is a protocol for using Bitcoin in a smart and non obvious way. +The Lightning Network is a protocol for using Bitcoin in a smart and non-obvious way. Thus it is a second layer technology on top of Bitcoin. It is changing the way people exchange value online and it's one of the most exciting advancements to happen to the Bitcoin network over the past few years. Right now, LN is in its infancy. In concept it's about 5 years old, in implementation about 3 years old. We're only beginning to see the opportunities LN provides including improved privacy, speed, and scale. With core knowledge of LN, you can help shape the future of the network while building opportunities for yourself as well. Some basic knowledge about Bitcoin is assumed but can be readily acquired by reading the first two chapters of _Mastering Bitcoin_ which are available for free online. From b2760a81e329f5757ef303f1b5b089b85ae81cc3 Mon Sep 17 00:00:00 2001 From: Brian McMichael Date: Sun, 23 Feb 2020 15:00:22 -0500 Subject: [PATCH 2/5] bitcoin and demand grow --- 01_introduction.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_introduction.asciidoc b/01_introduction.asciidoc index ab75c5a..a438c55 100644 --- a/01_introduction.asciidoc +++ b/01_introduction.asciidoc @@ -12,7 +12,7 @@ While the bulk of this book is written for programmers, the first two chapters a === Motivation for the Lightning Network -As Bitcoin grows, and the demand for transactions grows, the number of transactions in each block will increase until eventually hitting the block size limit. When blocks are full, excess transactions are left to wait in a queue. Many users increase the fees they're willing to pay in order to buy space for their transaction in the next block. At the same time an increasing number of users are left behind. Their transactions, e.g. microtransactions such as common small spendings, are not economically qualified to be on the network. However, increasing block size simply shifts the problem to node operators, where each increase is multiplied by an order of magnitude. +As Bitcoin and the demand for transactions grows, the number of transactions in each block will increase until eventually hitting the block size limit. When blocks are full, excess transactions are left to wait in a queue. Many users increase the fees they're willing to pay in order to buy space for their transaction in the next block. At the same time an increasing number of users are left behind. Their transactions, e.g. microtransactions such as common small spendings, are not economically qualified to be on the network. However, increasing block size simply shifts the problem to node operators, where each increase is multiplied by an order of magnitude. Because blockchains are gossip protocols, each node is required to know and validate every single transaction that occurs on the network. Furthermore, once validated, each transaction and block must be propagated to the node's "neighbors", multiplying the bandwidth requirements. As such, the greater the block size, the greater the bandwidth, processing, and storage requirements for each individual nodes, effectively limiting the amount of scaling that can be done this way. Furthermore, scaling in this way has an undesirable side effect of centralizing the network by reducing the number of nodes and node operators. Since node operators are not compensated for running nodes, if nodes are very expensive to run, only a few well funded node operators will continue to run nodes. From 09d04a297caa9c584b570d06d57da51a8abbfce8 Mon Sep 17 00:00:00 2001 From: Brian McMichael Date: Sun, 23 Feb 2020 15:24:36 -0500 Subject: [PATCH 3/5] comma --- 01_introduction.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_introduction.asciidoc b/01_introduction.asciidoc index a438c55..d22a831 100644 --- a/01_introduction.asciidoc +++ b/01_introduction.asciidoc @@ -12,7 +12,7 @@ While the bulk of this book is written for programmers, the first two chapters a === Motivation for the Lightning Network -As Bitcoin and the demand for transactions grows, the number of transactions in each block will increase until eventually hitting the block size limit. When blocks are full, excess transactions are left to wait in a queue. Many users increase the fees they're willing to pay in order to buy space for their transaction in the next block. At the same time an increasing number of users are left behind. Their transactions, e.g. microtransactions such as common small spendings, are not economically qualified to be on the network. However, increasing block size simply shifts the problem to node operators, where each increase is multiplied by an order of magnitude. +As Bitcoin and the demand for transactions grows, the number of transactions in each block will increase until eventually hitting the block size limit. When blocks are full, excess transactions are left to wait in a queue. Many users increase the fees they're willing to pay in order to buy space for their transaction in the next block. At the same time, an increasing number of users are left behind. Their transactions, e.g. microtransactions such as common small spendings, are not economically qualified to be on the network. However, increasing block size simply shifts the problem to node operators, where each increase is multiplied by an order of magnitude. Because blockchains are gossip protocols, each node is required to know and validate every single transaction that occurs on the network. Furthermore, once validated, each transaction and block must be propagated to the node's "neighbors", multiplying the bandwidth requirements. As such, the greater the block size, the greater the bandwidth, processing, and storage requirements for each individual nodes, effectively limiting the amount of scaling that can be done this way. Furthermore, scaling in this way has an undesirable side effect of centralizing the network by reducing the number of nodes and node operators. Since node operators are not compensated for running nodes, if nodes are very expensive to run, only a few well funded node operators will continue to run nodes. From b2b9e55f2a56a112e471fbd23d30b4ee6c4fc48e Mon Sep 17 00:00:00 2001 From: Brian McMichael Date: Sun, 23 Feb 2020 15:25:44 -0500 Subject: [PATCH 4/5] ox comma --- 01_introduction.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_introduction.asciidoc b/01_introduction.asciidoc index d22a831..7b1735a 100644 --- a/01_introduction.asciidoc +++ b/01_introduction.asciidoc @@ -92,4 +92,4 @@ Wei is an entrepreneur who sells information services related to the Lightning N === Chapter Summary -In this chapter we looked at the history of the Lightning Network and the motivations behind second layer scaling solutions for Bitcoin and other blockchain based networks. We learned basic terminology including node, payment channel, on-chain transactions and off-chain payments. Finally, we met Alice, Bob, Saanvi, John, Gloria, Farel, and Wei who we'll be following throughout the rest of the book. In the next chapter we'll meet Alice and walk through her thought process as she selects a Lightning wallet and prepares to make her first LN payment, to buy a cup of coffee from Bob's Cafe. +In this chapter we looked at the history of the Lightning Network and the motivations behind second layer scaling solutions for Bitcoin and other blockchain based networks. We learned basic terminology including node, payment channel, on-chain transactions, and off-chain payments. Finally, we met Alice, Bob, Saanvi, John, Gloria, Farel, and Wei who we'll be following throughout the rest of the book. In the next chapter we'll meet Alice and walk through her thought process as she selects a Lightning wallet and prepares to make her first LN payment, to buy a cup of coffee from Bob's Cafe. From 01cef463ef5a85ac320127710ce5db0f9e9b1f59 Mon Sep 17 00:00:00 2001 From: Brian McMichael Date: Sun, 23 Feb 2020 15:29:32 -0500 Subject: [PATCH 5/5] Fix sp. breaking build --- node_client.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_client.asciidoc b/node_client.asciidoc index 360dc24..e77b2b2 100644 --- a/node_client.asciidoc +++ b/node_client.asciidoc @@ -171,7 +171,7 @@ cc -Og ccan-asort.o ccan-autodata.o ccan-bitmap.o ccan-bitops.o ccan-... ---- -If all goes well, you will see no +ERROR+ message stopping the execution of the above command. The c-lightning software pakcage has been compiled from source and we are now ready to install the executable packages: +If all goes well, you will see no +ERROR+ message stopping the execution of the above command. The c-lightning software package has been compiled from source and we are now ready to install the executable packages: ---- $ sudo make install