Skip to content

Instantly share code, notes, and snippets.

@saubyk
Last active April 3, 2021 03:00
Show Gist options
  • Save saubyk/bb35f11ac77647b2140937b892261451 to your computer and use it in GitHub Desktop.
Save saubyk/bb35f11ac77647b2140937b892261451 to your computer and use it in GitHub Desktop.
Installing Testnet Lightning Stack on Mac

These instructions are strictly testnet only

Install Bitcoin Testnet

  1. Download the latest Bitcoin core dmg file for the Mac from the Bitcoin.org site - https://bitcoin.org/en/download
  2. Install Bitcore from the DMG file to the Applications folder on Mac
  3. Create a bitcoin.conf file in the folder ~/Library/Application Support/Bitcoin with the following content:
testnet=1
txindex=1
server=1
dbcache=6000
daemon=1
rpcuser=<user>
rpcpassword=<password>
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333
  1. Run Bitcoin core application. It will connect with the testnet and download and sync with the testnet blockchain

Install LND

  1. Download latest mac compatible (darwin-amd64) LND release from the release page:https://github.com/lightningnetwork/lnd/releases
  2. E.g. for the version 0.12.1 the link to be dowloaded is: https://github.com/lightningnetwork/lnd/releases/download/v0.12.1-beta/lnd-darwin-amd64-v0.12.1-beta.tar.gz
  3. Unzip the files and save in a folder locally. Two files will be extracted from the zip folder - lnd and lncli
  4. Run lnd once and kill the process after it prompts to unlock/create the node
  5. Go to the folder ~/Library/Application Support/Lnd and create a file lnd.conf in that location, with the below content:
[Application Options]
alias=<Your Alias>
color=#6AAABF
debuglevel=debug
restlisten=0.0.0.0:8080
externalip=<your ip address>:19735
listen=0.0.0.0:19735
accept-keysend=true
[Bitcoin]
#enable either testnet or mainnet
bitcoin.active=1
bitcoin.testnet=1
bitcoin.node=bitcoind
[Bitcoind]
bitcoind.rpcuser=<User specified in bitcoin.conf>
bitcoind.rpcpass=<Password specified in bitcoin.conf>
bitcoind.rpchost=127.0.0.1
bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
  1. Run lnd again in a terminal window, it will prompt to create/unlock the node
  2. Open another terminal window and go the folder which has the lncli file.
  3. Run lncli to create/unlock the node
  4. Once unlocked, the node will run and sync with the testnet network. Watch the log/progress in the first terminal window

Install RTL

To be continued...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment