Skip to content

Commit

Permalink
update lncli-web macaroon folders (#229)
Browse files Browse the repository at this point in the history
Added a few lines to choose the right folder to copy the admin.macaroon from. The location where admin.macaroon is created changed since LND-0.5. If you run this tutorial for the first time, it will now be compatible with LND-0.5.
  • Loading branch information
CodingMuziekwijk authored and Stadicus committed Sep 21, 2018
1 parent 0932132 commit fdd6f8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions raspibolt/raspibolt_69_lncli-web.md
Expand Up @@ -83,7 +83,14 @@ The new certificates need to be distributed and LND is restarted to load the new
```
$ sudo cp /home/bitcoin/.lnd/tls.cert /home/admin/.lnd
$ sudo cp /home/bitcoin/.lnd/tls.cert /home/web/lncli-web/lnd.cert
#The way macaroons work has changed since LND version 0.5 therefore we have to check our version.
$ lnd --version
# If using a LND with version 0.5.0 or above:
$ sudo cp /home/bitcoin/.lnd/data/chain/bitcoin/mainnet/admin.macaroon /home/web/lncli-web/
# Else (if using a LND version lower then 0.5.0):
$ sudo cp /home/bitcoin/.lnd/admin.macaroon /home/web/lncli-web/
$ sudo chown web:web /home/web/lncli-web/*
# restart lnd, unlock the wallet and check the startup process
Expand Down

0 comments on commit fdd6f8a

Please sign in to comment.