lncm / noma

Noma - Bitcoin lightning node management CLI utility & Python API
https://lncm.io
Apache License 2.0
5 stars 2 forks source link

Bitcoin full node support #59

Open AnotherDroog opened 5 years ago

AnotherDroog commented 5 years ago

This adds a pruned bitcoind with low resource limits.

Intended to provide invoicer with mempool capabilities and block verification.

Please note that pruned mode will sync from genesis unless a recent chain snapshot is applied.

TODO:

nolim1t commented 5 years ago

Could we have the option of an actual full node as well as a pruned full node?

AnotherDroog commented 5 years ago

Could we have the option of an actual full node as well as a pruned full node?

@nolim1t Yes of course, the only change necessary is prune=0 in bitcoin.conf

There could be another compose folder without neutrino, where lnd relies only on bitcoind.

PRs welcome!

AnotherDroog commented 5 years ago
AnotherDroog commented 5 years ago

Expected output:

sudo noma start
✅ media directory exists
✅ noma directory exists
✅ compose directory exists
✅ bitcoind directory exists
✅ bitcoind config file exists
✅ Set rpcauth successfully
✅ lnd directory exists
✅ lnd.conf exists
Creating fullnode_bitcoind_1 ... done
Creating fullnode_lnd_1      ... done
Creating fullnode_invoicer_1 ... done