Skip to content

Instantly share code, notes, and snippets.

@phptek
Created December 31, 2018 19:06
Show Gist options
  • Save phptek/2f7ee16576707600f4a0e3a879bf5f2b to your computer and use it in GitHub Desktop.
Save phptek/2f7ee16576707600f4a0e3a879bf5f2b to your computer and use it in GitHub Desktop.
LND Setup
Docker image reqs
* Ubuntu Bionic
* go 1.11.x https://golang.org/doc/install?download=go1.11.4.linux-amd64.tar.gz
wget -O /tmp/go-1.11.4.tar.gz https://golang.org/doc/install?download=go1.11.4.linux-amd64.tar.gz \
tar -C /usr/local -xzf /tmp/go-1.11.4.tar.gz \
* php7.1
* nginx
* php7.1-fpm
* bitcoind (https://dev.lightning.community/guides/installation/#bitcoind-options)
bitcoin.conf
testnet=1
server=1
daemon=1
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333
* LND (https://dev.lightning.community/guides/installation/#installing-lnd)
- Use example lnd.conf for starting in testnet not simnet mode
- Installation: https://dev.lightning.community/guides/installation/#installation
go get -d github.com/lightningnetwork/lnd \
cd $GOPATH/src/github.com/lightningnetwork/lnd \
make && make install && make check
lnd.conf
...
// Run lnd and bitcoind as the same user
lnd --bitcoin.active --bitcoin.testnet --debuglevel=debug --bitcoin.node=bitcoind --bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332 --bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333 --externalip=X.X.X.X
* LN-Zap wallet: https://github.com/LN-Zap/zap-desktop
* Follow tutorial: https://dev.lightning.community/tutorial/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment