@@ -55,32 +55,28 @@ Please refer to the [installation documentation](doc/INSTALL.md) for
55
55
detailed instructions.
56
56
For the impatient here's the gist of it for Ubuntu and Debian:
57
57
58
- ```
59
- sudo apt-get update
60
- sudo apt-get install -y autoconf automake build-essential git libtool libgmp-dev libsqlite3-dev python python3 net-tools libsodium-dev
61
- git clone https://github.com/ElementsProject/lightning.git
62
- cd lightning
63
- make
64
- ```
58
+ sudo apt-get update
59
+ sudo apt-get install -y \
60
+ autoconf automake build-essential git libtool libgmp-dev \
61
+ libsqlite3-dev python python3 net-tools libsodium-dev
62
+ git clone https://github.com/ElementsProject/ lightning.git
63
+ cd lightning
64
+ make
65
65
66
66
Or if you like to throw ` docker ` into the mix:
67
67
68
- ```
69
- sudo docker run \
70
- -v $HOME/.lightning:/root/.lightning \
71
- -v $HOME/.bitcoin:/root/.bitcoin \
72
- -p 9735:9735 \
73
- cdecker/lightningd:latest
74
- ```
68
+ sudo docker run \
69
+ -v $HOME/.lightning:/root/.lightning \
70
+ -v $HOME/.bitcoin:/root/.bitcoin \
71
+ -p 9735:9735 \
72
+ cdecker/lightningd:latest
75
73
76
74
### Starting ` lightningd `
77
75
78
76
In order to start ` lightningd ` you will need to have a local ` bitcoind `
79
77
node running in either testnet or regtest mode:
80
78
81
- ```
82
- bitcoind -daemon -testnet
83
- ```
79
+ bitcoind -daemon -testnet
84
80
85
81
Wait until ` bitcoind ` has synchronized with the testnet network.
86
82
@@ -91,9 +87,7 @@ Notice that currently pruned nodes are not supported and may result in
91
87
92
88
You can start ` lightningd ` with the following command:
93
89
94
- ```
95
- lightningd/lightningd --network=testnet --log-level=debug
96
- ```
90
+ lightningd/lightningd --network=testnet --log-level=debug
97
91
98
92
### Listing all commands:
99
93
` cli/lightning-cli help ` will print a table of the API and lists the
@@ -104,13 +98,11 @@ following commands
104
98
First you need to transfer some funds to ` lightningd ` so that it can
105
99
open a channel:
106
100
107
- ```
108
- # Returns an address <address>
109
- cli/lightning-cli newaddr
101
+ # Returns an address <address>
102
+ cli/lightning-cli newaddr
110
103
111
- # Returns a transaction id <txid>
112
- bitcoin-cli -testnet sendtoaddress <address> <amount_in_bitcoins>
113
- ```
104
+ # Returns a transaction id <txid>
105
+ bitcoin-cli -testnet sendtoaddress <address> <amount_in_bitcoins>
114
106
115
107
` lightningd ` will register the funds once the transaction is confirmed.
116
108
@@ -123,10 +115,8 @@ You can send it directly to the `lightningd` address.
123
115
124
116
Confirm ` lightningd ` got funds by:
125
117
126
- ```
127
- # Returns an array of on-chain funds.
128
- cli/lightning-cli listfunds
129
- ```
118
+ # Returns an array of on-chain funds.
119
+ cli/lightning-cli listfunds
130
120
131
121
Once ` lightningd ` has funds, we can connect to a node and open a channel.
132
122
Let's assume the ** remote** node is accepting connections at ` <ip> `
0 commit comments