Skip to content

Instantly share code, notes, and snippets.

@jooray
Last active February 4, 2022 18:13
Show Gist options
  • Select an option

  • Save jooray/3c43de2531c8782dfe33cf72d06c7cfb to your computer and use it in GitHub Desktop.

Select an option

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

jooray commented Aug 11, 2019

Copy link
Copy Markdown
Author

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