Skip to content
This repository was archived by the owner on Apr 17, 2020. It is now read-only.

Commit 424ca8c

Browse files
jsarenikcdecker
authored andcommitted
doc: Modify README.md code sections
1 parent fd338c0 commit 424ca8c

File tree

1 file changed

+20
-30
lines changed

1 file changed

+20
-30
lines changed

README.md

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -55,32 +55,28 @@ Please refer to the [installation documentation](doc/INSTALL.md) for
5555
detailed instructions.
5656
For the impatient here's the gist of it for Ubuntu and Debian:
5757

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
6565

6666
Or if you like to throw `docker` into the mix:
6767

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
7573

7674
### Starting `lightningd`
7775

7876
In order to start `lightningd` you will need to have a local `bitcoind`
7977
node running in either testnet or regtest mode:
8078

81-
```
82-
bitcoind -daemon -testnet
83-
```
79+
bitcoind -daemon -testnet
8480

8581
Wait until `bitcoind` has synchronized with the testnet network.
8682

@@ -91,9 +87,7 @@ Notice that currently pruned nodes are not supported and may result in
9187

9288
You can start `lightningd` with the following command:
9389

94-
```
95-
lightningd/lightningd --network=testnet --log-level=debug
96-
```
90+
lightningd/lightningd --network=testnet --log-level=debug
9791

9892
### Listing all commands:
9993
`cli/lightning-cli help` will print a table of the API and lists the
@@ -104,13 +98,11 @@ following commands
10498
First you need to transfer some funds to `lightningd` so that it can
10599
open a channel:
106100

107-
```
108-
# Returns an address <address>
109-
cli/lightning-cli newaddr
101+
# Returns an address <address>
102+
cli/lightning-cli newaddr
110103

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>
114106

115107
`lightningd` will register the funds once the transaction is confirmed.
116108

@@ -123,10 +115,8 @@ You can send it directly to the `lightningd` address.
123115

124116
Confirm `lightningd` got funds by:
125117

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
130120

131121
Once `lightningd` has funds, we can connect to a node and open a channel.
132122
Let's assume the **remote** node is accepting connections at `<ip>`

0 commit comments

Comments
 (0)