Skip to content

Instantly share code, notes, and snippets.

@z1nkum
Last active July 15, 2019 19:29
Show Gist options
  • Save z1nkum/415e79740b61a6bcdc4ab4e63f22116f to your computer and use it in GitHub Desktop.
Save z1nkum/415e79740b61a6bcdc4ab4e63f22116f to your computer and use it in GitHub Desktop.
mkdir /root/.lnd
apt-get update
apt-get install docker docker-compose git
cd /opt; git clone -b elastoo-lnd --single-branch https://github.com/z1nkum/lnd.git
cd /opt/lnd/docker
curl ifconfig.io # get EXT ip for next step
vim .env
NETWORK=testnet
RPCUSER=olololo
RPCPASS=[secret password here]
DEBUG=debug
EXTERNAL_ADDRESS=[EXT ip]
ALIAS=elastoo-ln-node
docker-compose -f docker-compose.yml up --force-recreate -d
docker logs -f btcd --tail 20 # (chain sync)
docker exec -ti lnd_btc bash
lncli create # for the first time
lncli unlock # each time node restarts
# On clone instance clean-up
# /root/.lnd/data/chain/bitcoin/testnet/ on lnd_btc (wallet and macaroons)
# rm -rf /root/.lnd/data/graph/testnet/ on lnd_btc (lnd graph)
# and then create new wallet: lncli create # for the first time
# get connection string for ZAP
lndconnect --host=35.228.185.199 --bitcoin.testnet --bitcoin.active --url
payments tests:
https://starblocks.acinq.co/
https://testnet.yalls.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment