1
Most lightning implementations I came across don't officially support pruned full node.
- Why is pruned mode implementation a challenge?
- What risk am I taking when I run lnd with pruned bitcoind?
1
Most lightning implementations I came across don't officially support pruned full node.
-1
Pruned nodes don't have the ability to make a full index of all transactions in the chain, which makes implementation of tools like Lightning difficult or impossible. There's no risk particularly, a pruned node has the same security properties as a normal one, it just doesn't have historical transaction data necessarily.
1There is no reason that lightning should need access to a non-pruned node, and AFAIK c-lightning doesn't. Regardless, any requirement for non-pruning is an implementation specific limitation. – G. Maxwell – 2018-12-22T02:27:37.803
"Notice that currently pruned nodes are not supported and may result in lightningd being unable to synchronize with the blockchain." from c-lightning README. – sanket1729 – 2018-12-22T02:58:13.063
I was to mark this as accepted, but this has a downvote; I will wait for corrections. – sanket1729 – 2018-12-22T04:35:07.947
c-lightning technically works with pruned nodes, the problem however is that if the node prunes the blocks before c-lightning was able to process them (for example by letting
bitcoindrun andlightningdis off for a long time), then c-lightning will not be able to catch up with the blockchain. If you can ensure that c-lightning is also running together withbitcoind, I see no problem with it and we have a number of users that are running it like this – cdecker – 2018-12-22T11:44:59.910The support mentioned in the readme is just to say that we don't want masses of people spamming the issue tracker with pruned node issues :-) – cdecker – 2018-12-22T11:45:33.683
@cdecker are you saying that
bitcoindhas to be unpruned when first startinglightningd(i.e., bringing a lightning node online for the first time) and only then canbitcoindbe told to prune? – jhfrontz – 2019-01-10T21:59:36.737Not exactly,
lightningdwill start syncing at the height thatbitcoindis at the time of the first start (it'll not go back to the genesis block). It is only problematic ifbitcoindis also syncing (since it'll outrunlightningdwhich will eventually end up in the pruned section of the blockchain) or irlightningdis offline whilebitcoindis making progress (also leavinglightningdin the pruned section and unable to catch up). – cdecker – 2019-01-11T10:05:05.360