Skip to content

Instantly share code, notes, and snippets.

@jooray
Last active February 4, 2022 18:13
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jooray/3c43de2531c8782dfe33cf72d06c7cfb to your computer and use it in GitHub Desktop.
Save jooray/3c43de2531c8782dfe33cf72d06c7cfb to your computer and use it in GitHub Desktop.
Install LND neutrino mainnet
#!/bin/bash
# Check the most recent LND_TAG at
# https://github.com/lightningnetwork/lnd/releases
export LND_TAG=1e511be523eb8e97c4e2d9c89a7a263963a3929f
# install lnd
git clone https://github.com/lightningnetwork/lnd $GOPATH/src/github.com/lightningnetwork/lnd
cd $GOPATH/src/github.com/lightningnetwork/lnd
git checkout $LND_TAG
# enabling mainnet on neutrino is in main branch since 0.8x, only uncomment for tag <0.8
#git fetch https://github.com/halseth/lnd.git mainnet-neutrino && git cherry-pick dbd3ca7be48027d8eda557e3c22268497ecc6b25
make && make install tags="experimental autopilotrpc chainrpc invoicesrpc routerrpc signrpc walletrpc watchtowerrpc"
@jooray
Copy link
Author

jooray commented Aug 11, 2019

If your neutrino chain state is corrupted (for example wrong headers), you can reset all neutrino state by removing

data/chain/bitcoin/mainnet/{neutrino.db,block_headers.bin,reg_filter_headers.bin}

and restarting lnd

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