1

I am in the process of setting up lnd on a separate computer.

The computer has less than 200GB available and the actual blockchain is more than 220GB, so I am gonna need to use pruned mode.

What I want is to download only the part of the blockchain after the introduction of the lightning network, so begining in march 2018 ( yes it is a bad idea )

Which bitcoin client is able to do that and how do I need to configure it for this procedure?

1
  • Hi Saxtheowl, I tried to touch up this question, but it is not clear to me what you meant with "and began the download of the chain starting from march 2018 as required by lnd". I assume you meant to ask how you can set up a Lightning node that requires less than 200 GB of disk space. Could you please edit your question to clarify?
    – Murch
    Jun 23, 2021 at 17:53

2 Answers 2

1

The keyword you are probably looking for is neutrino as explained in the article by lightning labs.

From the conclusion of the article I quote:

We’re excited to have released the first implementation of BIP 157/158-compliant Neutrino clients in lnd 0.5 and in the Lightning App alpha. While these initial releases are for testnet, mainnet Neutrino is in progress as well. Note also that Neutrino serving support has been added to btcd, and support for BIP 158 has been merged into bitcoind (Bitcoin Core). [...] While support for BIP 158 has been merged into bitcoind, support for BIP 157 has not yet been merged, so Neutrino filters can’t yet be served by bitcoind full nodes.

So I guess that currently you will need to run btcd together with lnd. The configuration can probably taken from the README of https://github.com/lightninglabs/lightning-app

3

I am gonna need to use prude mod and began the download of the chain starting from march 2018 as recquired by lnd,

my question is which bitcoin client is able to do that and how to configure it for this procedure ?

I don’t believe any client can do this: how will your node know if a UTXO from before March 2018 was valid if it hast verified the full history of the chain?

When a node is bootstrapped, it will work through the blockchain’s history to build a UTXO set. Without being able to build and verify this UTXO set from scratch, there is no way to know that a UTXO is valid (without trusting someone else). For example, if someone opened a channel with your node, by consuming a UTXO from 2017, how would your node be able to determine the validity of that UTXO?

Even for a neutrino-serving node like btcd, the node still needs to have verified the entire history, in order to serve the LN node valid data.

3
  • Maybe that should be a different question but I guess the same holds true for accumulators like utreexo? Jul 13, 2019 at 19:48
  • @RenePickhardt Good question. I’ve seen a few proposals for ways to add UTXO commitments to Bitcoin, and I believe they could provide a mechanism for achieving what OP desires (though they are not yet implemented at this point, and there are some security implications: instead of just trusting the math and code your node is running to do these checks, you must trust others (in aggregate) to do them, and you must trust the method of aggregation (more math, more code) to be secure as well).
    – chytrik
    Jul 13, 2019 at 20:01
  • decided to extract the discussion to a separate question for better indexability: bitcoin.stackexchange.com/questions/89023/… Jul 13, 2019 at 21:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.