7
I am running lightning with the LND implementation and a full node. Nevertheless, I heard that it is possible to use Lighting in pruned mode.
How is this possible?
- I read in the LND install documentation that you need the -txindex flag:
In order to run lnd with a bitcoind back-end, the bitcoind instance must be configured with --txindex just like btcd above.
- In the Wikipage of Bitcoin it says for pruned mode:
This mode is incompatible with -txindex
I also read here and here the same arguments.
Is this outdated or is it not possible to use prune mode in lightning?
I've not tried it, but what happens when I start a lightning node in pruned mode in practice? – dvg – 2019-01-13T18:36:28.570
The lightning node will not be able to query bitcoind for transactions (by txid). – James C. – 2019-01-13T19:38:46.410
When would I get aware of this? – dvg – 2019-01-13T19:54:18.470
I dont know, the lnd node will through an error, I dont know exactly how the error msg will look like. – James C. – 2019-01-13T20:13:34.827
Ok, thx for response! – dvg – 2019-01-13T20:41:00.423
I keep getting conflicting information about this topic. Here it says that LND will just be slower, but it will still work: https://medium.com/lightning-power-users/284bd5034340 Which one is true?
– Dmitry Laptev – 2019-01-23T12:44:44.183I researched the issue a bit more. The answer from James C. is correct when working with older versions of Bitcoin Core. 0.16 supports txindex in pruned mode. – Dmitry Laptev – 2019-01-25T09:39:09.187