Skip to content

Commit 0f19279

Browse files
committed
docs: Update install and sample conf to decred
This updates the install document and the sample-dcrlnd.conf file to refer to the decred-specific port.
1 parent 3dfdbb9 commit 0f19279

File tree

2 files changed

+41
-158
lines changed

2 files changed

+41
-158
lines changed

docs/INSTALL.md

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424

2525
**Note**: The minimum version of Go supported is Go 1.11. We recommend that
2626
users use the latest version of Go, which at the time of writing is
27-
[`1.11`](https://blog.golang.org/go1.11).
27+
[`1.12`](https://blog.golang.org/go1.12).
2828

2929

3030
On Linux:
3131
```
32-
sudo apt-get install golang-1.11-go
32+
sudo apt-get install golang-1.12-go
3333
```
34-
> Note that golang-1.11-go puts binaries in /usr/lib/go-1.11/bin. If you want them on your PATH, you need to make that change yourself. Alternatively, you can run:
34+
> Note that golang-1.12-go puts binaries in /usr/lib/go-1.12/bin. If you want them on your PATH, you need to make that change yourself. Alternatively, you can run:
3535
```
36-
sudo ln -s /usr/lib/go-1.11/bin/go /usr/local/bin/go
36+
sudo ln -s /usr/lib/go-1.12/bin/go /usr/local/bin/go
3737
```
3838
3939
On Mac OS X:
@@ -67,7 +67,7 @@
6767
* **go modules:** This project uses [go modules](https://github.com/golang/go/wiki/Modules)
6868
to manage dependencies as well as to provide *reproducible builds*.
6969
70-
Usage of go modules (with go 1.11) means that you no longer need to clone
70+
Usage of go modules (with go 1.12) means that you no longer need to clone
7171
`dcrlnd` into your `$GOPATH` for development purposes. Instead, your
7272
`dcrlnd` repo can now live anywhere!
7373
@@ -134,14 +134,8 @@ make check
134134
135135
In order to run, `dcrlnd` requires, that the user specify a chain backend. At
136136
the time of writing of this document, only the `dcrd` backend can be used. We
137-
don't require `--txindex` when running with `dcrd` but activating the `txindex`
138-
will generally make `dcrlnd` run faster.
137+
currently *require* `--txindex` when running with `dcrd`.
139138
140-
**NOTE: WE DO NOT FULLY SUPPORT PRUNED OPERATING MODES FOR FULL NODES.** It's
141-
possible to run a node in a pruned mode and have it serve lnd, however one must
142-
take care to ensure that `dcrlnd` has all blocks on disk since the birth of the
143-
wallet, and the age of the earliest channels (which were created around March
144-
2018).
145139
146140
The set of arguments for each of the backend modes is as follows:
147141
@@ -162,7 +156,7 @@ dcrd:
162156
163157
On FreeBSD, use gmake instead of make.
164158
165-
To install btcd, run the following commands:
159+
To install dcrd, run the following commands:
166160
167161
Install **dcrd**:
168162
```
@@ -177,13 +171,10 @@ repo](https://github.com/decred/dcrd).
177171
Running the following command will create `rpc.cert` and default `dcrd.conf`.
178172
179173
```
180-
dcrd --testnet --rpcuser=REPLACEME --rpcpass=REPLACEME
174+
dcrd --testnet --rpcuser=REPLACEME --rpcpass=REPLACEME --txindex
181175
```
182176
If you want to use `dcrlnd` on testnet, `dcrd` needs to first fully sync the
183177
testnet blockchain. Depending on your hardware, this may take up to a few hours.
184-
Note that adding `--txindex` is optional, as it will take longer to sync the
185-
node, but then `dcrlnd` will generally operate faster as it can hit the index
186-
directly, rather than scanning blocks or BIP 158 filters for relevant items.
187178
188179
While `dcrd` is syncing you can check on its progress using dcrd's `getinfo`
189180
RPC command:
@@ -211,7 +202,7 @@ You can test your `dcrd` node's connectivity using the `getpeerinfo` command:
211202
dcrctl --testnet --rpcuser=REPLACEME --rpcpass=REPLACEME getpeerinfo | more
212203
```
213204
214-
### Running lnd using the dcrd backend
205+
### Running dcrlnd using the dcrd backend
215206
216207
If you are on testnet, run this command after `dcrd` has finished syncing.
217208
Otherwise, replace `--decred.testnet` with `--decred.simnet`. If you are
@@ -226,7 +217,7 @@ dcrlnd --decred.active --decred.testnet --debuglevel=debug --dcrd.rpcuser=kek --
226217
`dcrlnd`'s authentication system is called **macaroons**, which are
227218
decentralized bearer credentials allowing for delegation, attenuation, and other
228219
cool features. You can learn more about them in Alex Akselrod's [writeup on
229-
Github](https://github.com/decred/dcrlnd/issues/20).
220+
the original lnd issue](https://github.com/lightningnetwork/lnd/issues/20).
230221
231222
Running `dcrlnd` for the first time will by default generate the
232223
`admin.macaroon`, `read_only.macaroon`, and `macaroons.db` files that are used

sample-lnd.conf

Lines changed: 31 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[Application Options]
22

3-
; The directory that lnd stores all wallet, chain, and channel related data
4-
; within The default is ~/.lnd/data on POSIX OSes, $LOCALAPPDATA/Lnd/data on
5-
; Windows, ~/Library/Application Support/Lnd/data on Mac OS, and $home/lnd/data
3+
; The directory that dcrlnd stores all wallet, chain, and channel related data
4+
; within The default is ~/.dcrlnd/data on POSIX OSes, $LOCALAPPDATA/Dcrlnd/data on
5+
; Windows, ~/Library/Application Support/Dcrlnd/data on Mac OS, and $home/dcrlnd/data
66
; on Plan9. Environment variables are expanded so they may be used. NOTE:
77
; Windows environment variables are typically %VARIABLE%, but they must be
88
; accessed with $VARIABLE here. Also, ~ is expanded to $LOCALAPPDATA on Windows.
9-
; datadir=~/.lnd/data
9+
; datadir=~/.dcrlnd/data
1010

1111
; The directory that logs are stored in. The logs are auto-rotated by default.
1212
; Rotated logs are compressed in place.
13-
; logdir=~/.lnd/logs
13+
; logdir=~/.dcrlnd/logs
1414

1515
; Number of logfiles that the log rotation should keep. Setting it to 0 disables deletion of old log files.
1616
; maxlogfiles=3
@@ -37,25 +37,25 @@
3737
; the line below.
3838
; no-macaroons=true
3939

40-
; Path to write the admin macaroon for lnd's RPC and REST services if it
40+
; Path to write the admin macaroon for dcrlnd's RPC and REST services if it
4141
; doesn't exist. This can be set if one wishes to store the admin macaroon in a
42-
; distinct location. By default, it is stored within lnd's network directory.
42+
; distinct location. By default, it is stored within dcrlnd's network directory.
4343
; Applications that are able to read this file, gain admin macaroon access.
44-
; adminmacaroonpath=~/.lnd/data/chain/bitcoin/simnet/admin.macaroon
44+
; adminmacaroonpath=~/.dcrlnd/data/chain/decred/simnet/admin.macaroon
4545

4646
; Path to write the read-only macaroon for lnd's RPC and REST services if it
4747
; doesn't exist. This can be set if one wishes to store the read-only macaroon
4848
; in a distinct location. The read only macaroon allows users which can read
4949
; the file to access RPCs which don't modify the state of the daemon. By
5050
; default, it is stored within lnd's network directory.
51-
; readonlymacaroonpath=~/.lnd/data/chain/bitcoin/simnet/readonly.macaroon
51+
; readonlymacaroonpath=~/.dcrlnd/data/chain/decred/simnet/readonly.macaroon
5252

5353
; Path to write the invoice macaroon for lnd's RPC and REST services if it
5454
; doesn't exist. This can be set if one wishes to store the invoice macaroon in
5555
; a distinct location. By default, it is stored within lnd's network directory.
5656
; The invoice macaroon allows users which can read the file to gain read and
5757
; write access to all invoice related RPCs.
58-
; invoicemacaroonpath=~/.lnd/data/chain/bitcoin/simnet/invoice.macaroon
58+
; invoicemacaroonpath=~/.dcrlnd/data/chain/decred/simnet/invoice.macaroon
5959

6060

6161
; Specify the interfaces to listen on for p2p connections. One listen
@@ -142,163 +142,55 @@
142142
; color=#3399FF
143143

144144

145-
[Bitcoin]
145+
[Decred]
146146

147-
; If the Bitcoin chain should be active. Atm, only a single chain can be
147+
; If the Decred chain should be active. Atm, only a single chain can be
148148
; active.
149-
bitcoin.active=1
149+
decred.active=1
150150

151-
; Use Bitcoin's test network.
152-
; bitcoin.testnet=1
151+
; Use Decred's test network.
152+
; decred.testnet=1
153153
;
154-
; Use Bitcoin's simulation test network
155-
bitcoin.simnet=1
154+
; Use Decred's simulation test network
155+
decred.simnet=1
156156

157-
; Use Bitcoin's regression test network
158-
; bitcoin.regtest=false
157+
; Use Decred's regression test network
158+
; decred.regtest=false
159159

160-
; Use the btcd back-end
161-
bitcoin.node=btcd
162-
163-
; Use the bitcoind back-end
164-
; bitcoin.node=bitcoind
165-
166-
; Use the neutrino (light client) back-end
167-
; bitcoin.node=neutrino
160+
; Use the dcrd back-end
161+
decred.node=dcrd
168162

169163
; The default number of confirmations a channel must have before it's considered
170164
; open. We'll require any incoming channel requests to wait this many
171165
; confirmations before we consider the channel active.
172-
; bitcoin.defaultchanconfs=3
166+
; decred.defaultchanconfs=3
173167

174168

175-
[Btcd]
169+
[Dcrd]
176170

177-
; The host that your local btcd daemon is listening on. By default, this
171+
; The host that your local dcrd daemon is listening on. By default, this
178172
; setting is assumed to be localhost with the default port for the current
179173
; network.
180-
; btcd.rpchost=localhost
174+
; dcrd.rpchost=localhost
181175

182-
; Username for RPC connections to btcd. By default, lnd will attempt to
176+
; Username for RPC connections to dcrd. By default, lnd will attempt to
183177
; automatically obtain the credentials, so this likely won't need to be set
184178
; (other than for simnet mode).
185-
; btcd.rpcuser=kek
179+
; dcrd.rpcuser=kek
186180

187-
; Password for RPC connections to btcd. By default, lnd will attempt to
181+
; Password for RPC connections to dcrd. By default, lnd will attempt to
188182
; automatically obtain the credentials, so this likely won't need to be set
189183
; (other than for simnet mode).
190-
; btcd.rpcpass=kek
184+
; dcrd.rpcpass=kek
191185

192186
; File containing the daemon's certificate file. This only needs to be set if
193187
; the node isn't on the same host as lnd.
194-
; btcd.rpccert=~/.btcd/rpc.cert
188+
; dcrd.rpccert=~/.dcrd/rpc.cert
195189

196190
; The raw bytes of the daemon's PEM-encoded certificate chain which will be used
197191
; to authenticate the RPC connection. This only needs to be set if the btcd
198192
; node is on a remote host.
199-
; btcd.rawrpccert=
200-
201-
202-
[Bitcoind]
203-
204-
; The host that your local bitcoind daemon is listening on. By default, this
205-
; setting is assumed to be localhost with the default port for the current
206-
; network.
207-
; bitcoind.rpchost=localhost
208-
209-
; Username for RPC connections to bitcoind. By default, lnd will attempt to
210-
; automatically obtain the credentials, so this likely won't need to be set
211-
; (other than for a remote bitcoind instance).
212-
; bitcoind.rpcuser=kek
213-
214-
; Password for RPC connections to bitcoind. By default, lnd will attempt to
215-
; automatically obtain the credentials, so this likely won't need to be set
216-
; (other than for a remote bitcoind instance).
217-
; bitcoind.rpcpass=kek
218-
219-
; ZMQ socket which sends rawblock and rawtx notifications from bitcoind. By
220-
; default, lnd will attempt to automatically obtain this information, so this
221-
; likely won't need to be set (other than for a remote bitcoind instance).
222-
; bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
223-
; bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
224-
225-
226-
[neutrino]
227-
228-
; Connect only to the specified peers at startup. This creates a persistent
229-
; connection to a target peer. This is recommended as there aren't many
230-
; neutrino compliant full nodes on the test network yet.
231-
; neutrino.connect=
232-
233-
; Add a peer to connect with at startup.
234-
; neutrino.addpeer=
235-
236-
237-
[Litecoin]
238-
239-
; If the Litecoin chain should be active. Atm, only a single chain can be
240-
; active.
241-
; litecoin.active=1
242-
243-
; Use Litecoin's test network.
244-
; litecoin.testnet=1
245-
246-
; Use the ltcd back-end
247-
litecoin.node=ltcd
248-
249-
; Use the litecoind back-end
250-
; litecoin.node=litecoind
251-
252-
253-
[Ltcd]
254-
255-
; The host that your local ltcd daemon is listening on. By default, this
256-
; setting is assumed to be localhost with the default port for the current
257-
; network.
258-
; ltcd.rpchost=localhost
259-
260-
; Username for RPC connections to ltcd. By default, lnd will attempt to
261-
; automatically obtain the credentials, so this likely won't need to be set
262-
; (other than for simnet mode).
263-
; ltcd.rpcuser=kek
264-
265-
; Password for RPC connections to ltcd. By default, lnd will attempt to
266-
; automatically obtain the credentials, so this likely won't need to be set
267-
; (other than for simnet mode).
268-
; ltcd.rpcpass=kek
269-
270-
; File containing the daemon's certificate file. This only needs to be set if
271-
; the node isn't on the same host as lnd.
272-
; ltcd.rpccert=~/.ltcd/rpc.cert
273-
274-
; The raw bytes of the daemon's PEM-encoded certificate chain which will be used
275-
; to authenticate the RPC connection. This only needs to be set if the ltcd
276-
; node is on a remote host.
277-
; ltcd.rawrpccert=
278-
279-
280-
[Litecoind]
281-
282-
; The host that your local litecoind daemon is listening on. By default, this
283-
; setting is assumed to be localhost with the default port for the current
284-
; network.
285-
; litecoind.rpchost=localhost
286-
287-
; Username for RPC connections to litecoind. By default, lnd will attempt to
288-
; automatically obtain the credentials, so this likely won't need to be set
289-
; (other than for a remote litecoind instance).
290-
; litecoind.rpcuser=kek
291-
292-
; Password for RPC connections to litecoind. By default, lnd will attempt to
293-
; automatically obtain the credentials, so this likely won't need to be set
294-
; (other than for a remote litecoind instance).
295-
; litecoind.rpcpass=kek
296-
297-
; ZMQ socket which sends rawblock and rawtx notifications from litecoind. By
298-
; default, lnd will attempt to automatically obtain this information, so this
299-
; likely won't need to be set (other than for a remote litecoind instance).
300-
; litecoind.zmqpubrawblock=tcp://127.0.0.1:28332
301-
; litecoind.zmqpubrawtx=tcp://127.0.0.1:28333
193+
; dcrd.rawrpccert=
302194

303195

304196
[autopilot]

0 commit comments

Comments
 (0)