- Download the latest Bitcoin core dmg file for the Mac from the Bitcoin.org site - https://bitcoin.org/en/download
- Install Bitcore from the DMG file to the Applications folder on Mac
- 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
- Run Bitcoin core application. It will connect with the testnet and download and sync with the testnet blockchain
- Download latest mac compatible (darwin-amd64) LND release from the release page:https://github.com/lightningnetwork/lnd/releases
- 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
- Unzip the files and save in a folder locally. Two files will be extracted from the zip folder -
lnd
andlncli
- Run
lnd
once and kill the process after it prompts to unlock/create the node - Go to the folder
~/Library/Application Support/Lnd
and create a filelnd.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
- Run
lnd
again in a terminal window, it will prompt to create/unlock the node - Open another terminal window and go the folder which has the
lncli
file. - Run
lncli
to create/unlock the node - Once unlocked, the node will run and sync with the testnet network. Watch the log/progress in the first terminal window
To be continued...