Skip to content

Instantly share code, notes, and snippets.

@nolim1t
Last active May 9, 2018 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolim1t/17204e2f9329b8eb5063f24e6d8d76b8 to your computer and use it in GitHub Desktop.
Save nolim1t/17204e2f9329b8eb5063f24e6d8d76b8 to your computer and use it in GitHub Desktop.
bitcoind command line stuff
# 550 MB blockchain (8332 for live 18332 for test)
# Useful for VPS https://gist.github.com/laanwj/efe29c7661ce9b6620a7
#swap size
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# /etc/fstab
# /swapfile none swap sw 0 0
# Getting neutrino light node
# go get -d github.com/lightninglabs/neutrino
export MALLOC_ARENA_MAX=1
# bitcoind testnet
./bitcoind -prune=550 -maxmempool=5 -dbcache=4 -maxconnections=8 -testnet -server -rpcuser=username -rpcpassword=password &
# bitcoind mainnet
./bitcoind -prune=550 -maxmempool=5 -dbcache=4 -maxconnections=8 -server -rpcuser=username -rpcpassword=password &
# lightning
./lightningd/lightningd --network bitcoin --cltv-final=10 --port 9735 --bitcoin-rpcuser username --bitcoin-rpcpassword password --daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment