Hello everyone, I’m new to Lightning Network and I want to learn how to set up a node on a Raspberry Pi.
I’d like to understand better:
- How to start with a Raspberry Pi for an LN node.
- The main risks to consider when running a node.
- Which factors most affect commission earnings (payment traffic, active channels, etc.).
Any advice or experiences you can share would be very helpful. Thanks!
I would not recommend setting up a node on Raspberry Pi anymore. There is something going on which makes initial block download extremely slow on the RPi: #1262279
I am not sure the technical reason for it, but multiple people have confirmed this issue: https://github.com/raspibolt/raspibolt/issues/1482
I concur for a Pi4. Pi5 works better. Thanks for reminding me to spend time on it.
I right now have an Odroid M2 with an 8TB nvme for a total cost of ~500k sats that works really well, but it's hard to secure the OS for it due to the slow maintenance of the custom firmware vs the distro obsolescence cycles, so I'm still not going to recommend it.
Pi4 4MB RAM is what I got, isn't the best but is something to play with. Which OS to install is what currently evaluating.
If you intend to do playing on mainnet, I recommend to not attempt to run
bitcoindon it for now, until either we have been able to locate the regression in tx processing that causes it to grind to a halt, or have verified that running another main chain client . Instead, you can use lnd with neutrino for starters.However, since you're hinting that you want this to be a routing node, I'd suggest not playing on mainnet straight, but instead play on mutinynet or testnet4 for starters, and learn about counterparty force closure, what happens when your power dies, state corruption because pi4 is hell when it comes to write guarantees... and so on.
Maybe one of our resident experts on this, like @justin_shocknet or @Filiprogrammer can chime in though - I'm not an expert on LN deployment at all.
#375096
idk, maybe it's all the FUCKING SPAM?
Of course it is. Except it also fucks up on nonspam consolidation txs. And then, why does a lower spec ARM board with crypto extensions not have issues?
So yes, the spam aggravates the issue and it is messed up. But there's more to it. Just gotta pinpoint it.
The way a guy from Start9 explained it to me was that memory usage increases dramatically at some point as it processes full blocks. And as the Pi starts paging more and more to offload to swap, it gets into paging hell where the throughput of the USB port can't effectively keep up with the traffic being shoveled between swap and memory.
Raspibolt is obsolete, use ramix instead: https://ramix.minibolt.info/
But yes for other arm boards rpi4 is also obsolete for a node.
On the link:
So were you asking for someone to test it?
No, I've been using it without any problems. Of ocurse it's for someone that has a brian and use with experience on linux. I have seen a bug here or there but it was like an error of downloading LND x86_64 instead of arm64. And it's a guide not something you have to follow 100% you can always customize and do whatver you want with it.
I only have a 1TB HDD, and since the Bitcoin blockchain is already close to that size, I’m hesitant to install a full node on it. I also don’t want to buy a new 2TB drive right now, is too expensive.
I came across this post #1265438 about lightning.pub, which uses Neutrino. Has anyone else here tried it?
cmon man, let SS to answer all questions here. He's the expert now.
Look OP, I won't mince words. The Pi is shit. Use it for a different project like network wide ad blocking and buy a real computer.
Something with a Xeon processor (so you can use ECC RAM) with at least 8 cores and at least two m.2 slots (so you can use RAID).
#1242742
@Solomonsatoshi you are the expert, please respond.
@Darthcoin is an NSA troll working to infiltrate and undermine Bitcoin and LN.
He will wank on about BTC/LN tech and systems and claims he 'lives on the Bitcoin Standard' but he does not use Bitcoin here on Stacker News- he uses CC shitcoins because they 'always work'.
Always check the credentials of any advice offered online and beware if the advisor cannot verify they are genuine.
Nobody even knows who @Darthcoin is except his sock puppets and his NSA handler.
you forgot to mention he's also in the Epstein files.
I also eat babies
that's new to me lol
why don't you answer the OP question?
Because you asked and you are an NSA cunt.
You are the expert, please answer OP question.
Side question: is that account a bot, or is it just very automated AI? I’m still new here so I’m not sure how to tell.
lol