Skip to content

Commit ed63782

Browse files
committed
Fix usage of --macaroonpath for lncli commands in tutorial.
1 parent f45a2e9 commit ed63782

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tutorial/01-lncli.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: page
33
title: Stage 1 - Setting up a local cluster
4-
---
4+
---
55
### Introduction
66

77
In this stage of the tutorial, we will learn how to set up a local cluster of
@@ -133,7 +133,7 @@ $ tree $GOPATH -L 2
133133
Start up the Alice node from within the `alice` directory:
134134
```bash
135135
cd $GOPATH/dev/alice
136-
alice$ lnd --rpclisten=localhost:10001 --listen=localhost:10011 --restlisten=localhost:8001 --datadir=data --logdir=log --debuglevel=info --bitcoin.simnet --bitcoin.active --bitcoin.node=btcd --btcd.rpcuser=kek --btcd.rpcpass=kek
136+
alice$ lnd --rpclisten=localhost:10001 --listen=localhost:10011 --restlisten=localhost:8001 --datadir=data --logdir=log --debuglevel=info --bitcoin.simnet --bitcoin.active --bitcoin.node=btcd --btcd.rpcuser=kek --btcd.rpcpass=kek
137137
```
138138
The Alice node should now be running and displaying output ending with a line
139139
beginning with "Waiting for wallet encryption password."
@@ -182,7 +182,7 @@ Run Bob and Charlie:
182182
```bash
183183
# In a new terminal window
184184
cd $GOPATH/dev/bob
185-
bob$ lnd --rpclisten=localhost:10002 --listen=localhost:10012 --restlisten=localhost:8002 --datadir=data --logdir=log --debuglevel=info --bitcoin.simnet --bitcoin.active --bitcoin.node=btcd --btcd.rpcuser=kek --btcd.rpcpass=kek
185+
bob$ lnd --rpclisten=localhost:10002 --listen=localhost:10012 --restlisten=localhost:8002 --datadir=data --logdir=log --debuglevel=info --bitcoin.simnet --bitcoin.active --bitcoin.node=btcd --btcd.rpcuser=kek --btcd.rpcpass=kek
186186

187187
# In another terminal window
188188
cd $GOPATH/dev/charlie
@@ -252,7 +252,7 @@ Open up a new terminal window, set `$GOPATH` and include `$GOPATH/bin` in your
252252
`PATH` as usual. Let's create Alice's wallet and set her passphrase:
253253
```bash
254254
cd $GOPATH/dev/alice
255-
alice$ lncli --rpcserver=localhost:10001 --macaroonpath=data/admin.macaroon create
255+
alice$ lncli --rpcserver=localhost:10001 create
256256
```
257257
You'll be asked to input and confirm a wallet password for Alice, which must be
258258
longer than 8 characters. You also have the option to add a passphrase to your
@@ -262,7 +262,7 @@ passphrase.
262262

263263
You can now request some basic information as follows:
264264
```bash
265-
alice$ lncli --rpcserver=localhost:10001 --macaroonpath=data/admin.macaroon getinfo
265+
alice$ lncli --rpcserver=localhost:10001 --macaroonpath=data/chain/bitcoin/simnet/admin.macaroon getinfo
266266
```
267267
`lncli` just made an RPC call to the Alice `lnd` node. This is a good way to
268268
test if your nodes are up and running and `lncli` is functioning properly. Note
@@ -275,21 +275,21 @@ respectively.
275275
```bash
276276
# In a new terminal window, setting $GOPATH, etc.
277277
cd $GOPATH/dev/bob
278-
bob$ lncli --rpcserver=localhost:10002 --macaroonpath=data/admin.macaroon create
278+
bob$ lncli --rpcserver=localhost:10002 create
279279
# Note that you'll have to enter an 8+ character password and "n" for the mnemonic.
280280

281281
# In a new terminal window:
282282
cd $GOPATH/dev/charlie
283-
charlie$ lncli --rpcserver=localhost:10003 --macaroonpath=data/admin.macaroon create
283+
charlie$ lncli --rpcserver=localhost:10003 create
284284
# Note that you'll have to enter an 8+ character password and "n" for the mnemonic.
285285
```
286286

287287
To avoid typing the `--rpcserver=localhost:1000X` and `--macaroonpath` flag
288288
every time, we can set some aliases. Add the following to your `.bashrc`:
289289
```bash
290-
alias lncli-alice="lncli --rpcserver=localhost:10001 --macaroonpath=data/admin.macaroon"
291-
alias lncli-bob="lncli --rpcserver=localhost:10002 --macaroonpath=data/admin.macaroon"
292-
alias lncli-charlie="lncli --rpcserver=localhost:10003 --macaroonpath=data/admin.macaroon"
290+
alias lncli-alice="lncli --rpcserver=localhost:10001 --macaroonpath=data/chain/bitcoin/simnet/admin.macaroon"
291+
alias lncli-bob="lncli --rpcserver=localhost:10002 --macaroonpath=data/chain/bitcoin/simnet/admin.macaroon"
292+
alias lncli-charlie="lncli --rpcserver=localhost:10003 --macaroonpath=data/chain/bitcoin/simnet/admin.macaroon"
293293
```
294294

295295
To make sure this was applied to all of your current terminal windows, rerun

0 commit comments

Comments
 (0)