Pages:
Author

Topic: The Lightning Network FAQ - page 32. (Read 33677 times)

hero member
Activity: 924
Merit: 5950
not your keys, not your coins!
September 12, 2021, 04:54:29 PM
These are not PC towers or even micro towers. These are very tiny cases with a RPi4 (or rock 64 in this case) and the m.2 drive. There is almost no airflow so you do have to make sure there is enough to keep everything happy. Even a couple of watts in a tight space can get very hot very quickly if there is no air movement.
That's good to keep in mind! I haven't tried yet with a good passive heatsink and no airflow, to be honest, maybe that's indeed not enough.
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
September 12, 2021, 04:45:15 PM
Trying to program a small chip to control the NVME M.2 drive temperature, conenct the fan to it and then screw the fun as close as possible to the NVME drive chips. It will also use a thermal resistor to read temps and the fan will change rpms accordingly!
Wait, since when is SSD temperature such a big concern? And since when does a LN node have so much disk I/O going on that it would get super hot?
I run 2 NVMe SSDs in a tower of mine with just simple passive heatsinks on them and they run just fine.
Just a heads up that you might be overengineering here! Wink

You're right. I forgot to mention. The temps goes higher only during IBD, when I eventually have to do it. Other than that, it runs smoothly with no major temperature issues.

Trying to program a small chip to control the NVME M.2 drive temperature, conenct the fan to it and then screw the fun as close as possible to the NVME drive chips. It will also use a thermal resistor to read temps and the fan will change rpms accordingly!
Wait, since when is SSD temperature such a big concern? And since when does a LN node have so much disk I/O going on that it would get super hot?
I run 2 NVMe SSDs in a tower of mine with just simple passive heatsinks on them and they run just fine.
Just a heads up that you might be overengineering here! Wink

These are not PC towers or even micro towers. These are very tiny cases with a RPi4 (or rock 64 in this case) and the m.2 drive. There is almost no airflow so you do have to make sure there is enough to keep everything happy. Even a couple of watts in a tight space can get very hot very quickly if there is no air movement.

-Dave

Yeah that is a fact too. My RockPro64 chip is running a medium heat sink from Pine store, a small PC RAM fan (Revoltec brand). And it probably didn't even need, but it's always good. The NVME drive don't even have a heatsink, so, there's where my concern with temps come.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
September 12, 2021, 04:26:00 PM
Trying to program a small chip to control the NVME M.2 drive temperature, conenct the fan to it and then screw the fun as close as possible to the NVME drive chips. It will also use a thermal resistor to read temps and the fan will change rpms accordingly!
Wait, since when is SSD temperature such a big concern? And since when does a LN node have so much disk I/O going on that it would get super hot?
I run 2 NVMe SSDs in a tower of mine with just simple passive heatsinks on them and they run just fine.
Just a heads up that you might be overengineering here! Wink

These are not PC towers or even micro towers. These are very tiny cases with a RPi4 (or rock 64 in this case) and the m.2 drive. There is almost no airflow so you do have to make sure there is enough to keep everything happy. Even a couple of watts in a tight space can get very hot very quickly if there is no air movement.

-Dave
hero member
Activity: 924
Merit: 5950
not your keys, not your coins!
September 12, 2021, 04:20:55 PM
Trying to program a small chip to control the NVME M.2 drive temperature, conenct the fan to it and then screw the fun as close as possible to the NVME drive chips. It will also use a thermal resistor to read temps and the fan will change rpms accordingly!
Wait, since when is SSD temperature such a big concern? And since when does a LN node have so much disk I/O going on that it would get super hot?
I run 2 NVMe SSDs in a tower of mine with just simple passive heatsinks on them and they run just fine.
Just a heads up that you might be overengineering here! Wink
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
September 12, 2021, 04:10:13 PM


...Let me tell you about another great solution. And if you're willing to spend a bit more and use an NVME M.2 drive, consider a RockPro64 SBC. It's way faster than Raspi4 and it supports the mentioned superfast drives....

Did you find / do you have a nice case that supports that card?
Everything I have seen is either big and expensive or looks like cheap plastic.


I did my own. It's not ready yet because something got in the way in the meantime. But I bought a board of acrylic, took some measures (quite some trial and error, tbh, :p) and cut it, glued it with specific glue for acrylic, used some plastic bolts and threads to place the board on top of them, and I'm now (this is the part that is stalled due to some life issues) trying to program a small chip to control the NVME M.2 drive temperature, conenct the fan to it and then screw the fun as close as possible to the NVME drive chips. It will also use a thermal resistor to read temps and the fan will change rpms accordingly!

The ones I saw (cases) in the official site are too big, metal and expensive, for my taste. And don't even remember if I could mod them to reuse the old fans I had here!
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
September 11, 2021, 06:51:22 AM
Hey, just want to plonk a link to this topic here for anyone interested in running a LN node in the USA:
Devastating "Infrastructure" bill in US - contact your representatives

Apparently they want to treat node operators as brokers due to 'facilitating transactions'.
Maybe worth following if you're located there.. Smiley


Kohas787 will be so happy that he can start spam-calling the nearest FBI office, and report that his neighbor is running a Lightning node from the basement, earning $5.00 in routing fees per week.

If only somene wrote a guide in how to run a Lightning node over the TOR network, https://stopanddecrypt.medium.com/running-bitcoin-lightning-nodes-over-the-tor-network-2021-edition-489180297d5 Cool

And for those who are using a 'node in a box'

If you are using a Raspiblitz to run over tor it's s single click and a reboot.
For mynode it's insert $99 and click a and reboot as it's a premium feature
Umbrel also can use TOR, not sure of how to configure it. Setting up an umbel box is on the to-do list.

So if you are a bit twitchy about setting up / running a linux box you can still run it all on TOR thanks to the work of the people who made these devices.

-Dave
legendary
Activity: 2898
Merit: 1823
September 11, 2021, 05:48:10 AM
Hey, just want to plonk a link to this topic here for anyone interested in running a LN node in the USA:
Devastating "Infrastructure" bill in US - contact your representatives

Apparently they want to treat node operators as brokers due to 'facilitating transactions'.
Maybe worth following if you're located there.. Smiley


Kohas787 will be so happy that he can start spam-calling the nearest FBI office, and report that his neighbor is running a Lightning node from the basement, earning $5.00 in routing fees per week.

If only somene wrote a guide in how to run a Lightning node over the TOR network, https://stopanddecrypt.medium.com/running-bitcoin-lightning-nodes-over-the-tor-network-2021-edition-489180297d5 Cool
hero member
Activity: 924
Merit: 5950
not your keys, not your coins!
September 10, 2021, 07:31:51 AM
Hey, just want to plonk a link to this topic here for anyone interested in running a LN node in the USA:
Devastating "Infrastructure" bill in US - contact your representatives

Apparently they want to treat node operators as brokers due to 'facilitating transactions'.
Maybe worth following if you're located there.. Smiley
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
September 05, 2021, 10:46:32 AM
...I also used that case (without the m.2 slot) for my build. Nevertheless, the Pi was getting quite hot very often despite the built-in fan and included thermal pads. Also, the fan is a little bit noisy above 50% of its maximum speed. I eventually moved my node from the Pi to a normal server....

Both of mine are running cool and the fan barely be heard. But, that's just my units.

...Let me tell you about another great solution. And if you're willing to spend a bit more and use an NVME M.2 drive, consider a RockPro64 SBC. It's way faster than Raspi4 and it supports the mentioned superfast drives....

Did you find / do you have a nice case that supports that card?
Everything I have seen is either big and expensive or looks like cheap plastic.

...note that the Pi CPU can be underclocked in /boot/config.txt.... somewhere, somehow Cheesy ...

There is a line
#arm_freq= 700
With the above line commented out max by default is 1400, so if you uncomment it and put in a number lower then 1400 is will never go above that.

-Dave

legendary
Activity: 3430
Merit: 3083
September 05, 2021, 09:19:40 AM
the Pi was getting quite hot very often despite the built-in fan and included thermal pads. Also, the fan is a little bit noisy above 50% of its maximum speed. I eventually moved my node from the Pi to a normal server.

note that the Pi CPU can be underclocked in /boot/config.txt.... somewhere, somehow Cheesy


Anyway, I don't want anything else other than my RockPro64 board (raw Debian in it), and I install solely what I want, the way I want and when I want. Full control... Period!

you can get even more control using open source BIOS, which became available for the RockPro64 recently (check coreboot.org)
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
September 03, 2021, 05:42:05 PM
Do I have to run a full Bitcoin node?

No, LND supports neutrino; c-lightning allows using a pruned node. Eclair users are out of luck. Mobile clients obviously do not need you to run a Bitcoin node.
I have no idea if this was discussed yet since this thread is damn long, but I would like to mention that I tried c-lightning with a pruned node, since it was mentioned everywhere that it should be possible, then ran into issues. When asking in the community, I was told that indeed those issues were due to me running Bitcoin Core pruned, so I had to go back to square 1 and restart Bitcoin Core in non-pruned mode.

Also PSA for newbies: Raspberry Pi Model 3B+ with a (fast) USB 3.0 HDD takes literal weeks to sync and verify the whole blockchain. Either have a real desktop (maybe also laptop with enough umph) Linux PC with which you can do the initial sync, then plug the drive into the Pi. Or use an SSD. Just wanting to prevent tons of headache Cheesy

Especially since in case of an issue with the HDD (give it external power!!), when Bitcoin Core has to restart, it has to re-verify a ton of blocks which can easily add a day or two for each crash that you experience.

About the underline statement, yes there are some issues but there is a solution. I can't tell it because I'm also not aware how to work around it, but I know it is possible. The c-lightning telegram channel is one of the best places to ask how to run a pruned bitcoin node and c-lightning. Sooner or later you'll get the solution.


All that extra processing power for $20.00 more.
I know that due to the current shortages prices are all over the place, but you can still here in the US get a 4 with 4GB for $50 delivered give or take a few dollars.
Wow, I knew that each consecutive Pi added a bit more power, but never checked the numbers, and indeed the jump from 3 to 4 is insane!
I always had the issue though, that I bought a Raspberry Pi shortly before the new one came out, so I'm stuck with a 3B+ for almost as long as the model 4 exists.. Ugh. Now I don't want to make the same mistake again and buy a model 4 now if maybe next month a 5 comes out lol.

Anyway, my Bitcoin stuff just runs on an older Intel platform, which is probably still faster than a Pi model 4 (though of course much higher power consumption) and I already had it, so it was 'free'. Also easier to work with in general, e.g. apt updates take forever on Pis (at least anything up to including 3B+).

A Pi is though much more compact and easier to tuck away, I was thinking of still getting a model 4 with the Argon One m.2 case (https://thepihut.com/products/argon-one-m-2-raspberry-pi-4-case). However, I'm hopefully getting my Futurebit Apollo soon whose SBC should have even more power than a Raspi, and will try to install Lightning onto that. Would also be a nice compact solution and having a compact full node with LN and a hashboard would be really sick, let's see how it will work out Grin

Let me tell you about another great solution. And if you're willing to spend a bit more and use an NVME M.2 drive, consider a RockPro64 SBC. It's way faster than Raspi4 and it supports the mentioned superfast drives. The downside is one 4Gb of memory, even so, it's way better than Raspi4.

@BlackHatCoiner, this is towards you too. Smiley



My experience with my RockPro64 + Samsung NVME M.2 (128Gb) + 1Tb external drive (Western Digital), I don't complain about any fan noise. I am using an old PC RAM fan and a heat dissipator. During the hashing of the entire blockchain, what heat up the most was in fact the NVME drive. The heat sink did it's job along with the small fan.

In my point of view, LND pros is just the fact that you can open a channel towards someone that already opened a channel towards you, but C-Lightning have more pros. Lighter, less resources hungry, more configurable, and yes, the fact that you can write a plugin in pretty much any language, is a must! This is a door wide open for any dev to contribute. I'm amazed how it is not yet filled with people building plugins.

Anyway, I don't want anything else other than my RockPro64 board (raw Debian in it), and I install solely what I want, the way I want and when I want. Full control... Period!


PS:
Actually, there is a plugin to deal with C-Lightning + Bitcoin pruned node. Check here.
legendary
Activity: 1876
Merit: 3139
September 03, 2021, 11:08:41 AM
Interesting - since it was mentioned in this thread that lnd pulls way more on the resources than c-lightning, maybe it's worth a try with c-lightning?

Sure, you can give it a try. Although, you will have to install everything manually rather than use some out-of-the-box solution.

How long did it take to sync your full node?

I copied the block data from my computer. I didn't want to waste time so I started the sync while I was waiting for all parts to arrive.

How long was it taking to sync the ElectrumX before you give up?

Somewhere around one week. The sync was not even halfway through. It took less than a week on different hardware. See this topic.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
September 03, 2021, 06:40:29 AM
I also tried running ElectrumX on the Pi but I couldn't stand the noise of the fan which started kicking in even more frequently. The initial sync was taking so long that I eventually gave up.
C'mon no!

I'm waiting to finish the syncing of my node so I can install ElectrumX on it. I gave up on the node OSes, as I want to do it all from linux, command line by line. I was also facing issues with the outgoing connections; sometimes I hadn't even one node connected which was so annoying. Tried umbrel & myNode which left me unsatisfied. I am now trying Raspibolt which is better. (Due to the running from a linux OS)

I remember reading that it took you a lot of time in the past, but forgot how much exactly, so here're my questions for you since we have the same hardware;

  • How long did it take to sync your full node?
  • How long was it taking to sync the ElectrumX before you give up?
hero member
Activity: 924
Merit: 5950
not your keys, not your coins!
September 03, 2021, 03:36:09 AM
That's good to know. So it was hot with c-lightning or lnd?

I was running LND on the Pi. I don't think it matters; It would have been hot with c-lightning as well. I don't remember how much CPU LND was using on average. I believe that bitcoind was stressing it the most.
Interesting - since it was mentioned in this thread that lnd pulls way more on the resources than c-lightning, maybe it's worth a try with c-lightning?

I also tried running ElectrumX on the Pi but I couldn't stand the noise of the fan which started kicking in even more frequently. The initial sync was taking so long that I eventually gave up.
Oh damn. Yeah I'm not kidding when I say with a Pi (model 3 though) it took me weeks for the IBD! Grin

With all these issues, I'm wondering why even so many people bother with SBCs then. I mean for nodes. They're great to put on / in a robot or other embedded environment, but a new Pi Model 4 with 8GB RAM and 1TB SSD + case and PSU runs about 200 bucks from the top of my head.

You should easily be able to get a used laptop or Intel NUC with 8GB RAM, 1TB SSD and much more power (and thus quieter at the same load) for ~200.
It's also cleaner than a RPi with external drive dangling around and you get a screen and keyboard 'for free' Wink

I personally use an old laptop with broken keyboard and partially broken screen, but it was free (someone wanted to throw it away) and runs very nicely after I reapplied thermal paste, installed a fresh Debian OS + installed a larger HDD. I also modded the fan to run off a 5V rail at continuous speed instead of ramping up and down all the time. The nice thing is the battery is still good for a bunch of time, so I can unplug it to move it around and when the power cuts out it remains up. Built-in 'UPS'.
legendary
Activity: 1876
Merit: 3139
September 02, 2021, 07:14:22 PM
That's good to know. So it was hot with c-lightning or lnd?

I was running LND on the Pi. I don't think it matters; It would have been hot with c-lightning as well. I don't remember how much CPU LND was using on average. I believe that bitcoind was stressing it the most.

And did you then use an external SSD or how did you manage the storage?

I bought a 1 TB Sandisk Extreme USB SSD. I am still using it in my current build (I didn't want to spend any extra money on another internal drive) and it seems to be working as well as other SATA SSDs.

I also tried running ElectrumX on the Pi but I couldn't stand the noise of the fan which started kicking in even more frequently. The initial sync was taking so long that I eventually gave up.
hero member
Activity: 924
Merit: 5950
not your keys, not your coins!
September 02, 2021, 07:04:09 PM
Hey LN friends, I'm a c-lightning user for around half a year now, and I'm seriously debating about switching to lnd instead. What do you guys think is the cleaner solution? And what is the more commonly used implementation here?

I have been using c-lightning for quite some time now and I am really satisfied with it. I am not a developer, though. All I care about is stability and some useful features. I really like that you can easily open multiple channels via a single command (unlike LND which I believe requires user to construct a transaction manually using PSBTs). We have been also experimenting with dual-funding here.
Oh, now that you mention channel opening: an issue that has been very annoying for me a few times already, is that I can't have multiple channels with another peer. I'm sure it's more clean and more c-style to have 1 larger channel instead of 2 small channels, but there are situations where you'd rather add another channel instead of closing and re-opening for example. No idea why exactly it's not possible in c-lightning, but annoying from a day-to-day user perspective imho.

I also used that case (without the m.2 slot) for my build. Nevertheless, the Pi was getting quite hot very often despite the built-in fan and included thermal pads. Also, the fan is a little bit noisy above 50% of its maximum speed. I eventually moved my node from the Pi to a normal server.
That's good to know. So it was hot with c-lightning or lnd? And did you then use an external SSD or how did you manage the storage?

[...] but I would like to mention that I tried c-lightning with a pruned node, since it was mentioned everywhere that it should be possible, then ran into issues. When asking in the community, I was told that indeed those issues were due to me running Bitcoin Core pruned, so I had to go back to square 1 and restart Bitcoin Core in non-pruned mode.

Thanks! As you already know, I am working on the update of the first post. I will make sure to include this piece of information.
Yup, thanks for including that info! Will probably be the first big "LN FAQ" that actually tells people to "just get a larger drive" XD Since it's honestly a pain with pruned, and maybe worked in the past or something but tons of users run into issues with it lately.
legendary
Activity: 1876
Merit: 3139
September 02, 2021, 06:18:03 PM
Hey LN friends, I'm a c-lightning user for around half a year now, and I'm seriously debating about switching to lnd instead. What do you guys think is the cleaner solution? And what is the more commonly used implementation here?

I have been using c-lightning for quite some time now and I am really satisfied with it. I am not a developer, though. All I care about is stability and some useful features. I really like that you can easily open multiple channels via a single command (unlike LND which I believe requires user to construct a transaction manually using PSBTs). We have been also experimenting with dual-funding here.

I ran into some problems with macaroons while using LND. It's been a long time ago so I can't give you the exact details.

A Pi is though much more compact and easier to tuck away, I was thinking of still getting a model 4 with the Argon One m.2 case (https://thepihut.com/products/argon-one-m-2-raspberry-pi-4-case).

I also used that case (without the m.2 slot) for my build. Nevertheless, the Pi was getting quite hot very often despite the built-in fan and included thermal pads. Also, the fan is a little bit noisy above 50% of its maximum speed. I eventually moved my node from the Pi to a normal server.

[...] but I would like to mention that I tried c-lightning with a pruned node, since it was mentioned everywhere that it should be possible, then ran into issues. When asking in the community, I was told that indeed those issues were due to me running Bitcoin Core pruned, so I had to go back to square 1 and restart Bitcoin Core in non-pruned mode.

Thanks! As you already know, I am working on the update of the first post. I will make sure to include this piece of information.
hero member
Activity: 924
Merit: 5950
not your keys, not your coins!
September 02, 2021, 09:16:15 AM
So far so good, I have been so busy at the office beyond the initial install and adding some BTC and opening some channels I have not done a lot of testing.
I have used RPi and raspiblitz before so other then the case / drive type change it's all the same so I don't think there will be any issues.
Alright, sounds good! Then maybe I'll buy a Pi 4, SSD etc. as well and build one more node, eh, every additional node helps! Cheesy

Q: I updated the system and now my Apollo won't boot
A: DO NOT UPDATE THE OS THROUGH THE SYSTEM UPDATE PROMPTS Even though the Apollo is a full linux desktop, its still an embedded system with multiple system level changes to make it work with our proprietary hardware attached to it. If you do a system level OS update these will be whipped and you will end up with a bricked system, requiring a full SD card reflash using the stock image. Any system/kernel level updates will issue here with updated SD card images.

The problem is that they may or may not rely on some package that is different then what you need for what you want. Update the wrong thing and.....
Although they do say you can install other packages and even encourage it. It still worries me that if what I need to run has a dependency that is slightly newer / older then what is on the unit it can cause an issue.
They say it's only system level changes but still would rather not have to worry about it. That's just me you may have more free time to shrug it off and start fresh.

-Dave
Oh damn, thanks for digging that out for me, must have missed it. I was also under the impression that they encourage to 'use it for more than just full node + miner' but then maybe better not to touch it, indeed.
One idea might be to run lnd within a Docker container. That shouldn't affect the Apollo since it's kind of capsuled in its container, I guess - finally a scenario where Docker might actually make sense. Let's see... Not sure yet.
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
September 02, 2021, 08:36:06 AM
A Pi is though much more compact and easier to tuck away, I was thinking of still getting a model 4 with the Argon One m.2 case (https://thepihut.com/products/argon-one-m-2-raspberry-pi-4-case). However, I'm hopefully getting my Futurebit Apollo soon whose SBC should have even more power than a Raspi, and will try to install Lightning onto that. Would also be a nice compact solution and having a compact full node with LN and a hashboard would be really sick, let's see how it will work out Grin

I have a Argon One m.2 sitting on my desk running a node in a box (raspiblitz)
That's good to know! With RPi 4, correct? How was the experience so far?

So far so good, I have been so busy at the office beyond the initial install and adding some BTC and opening some channels I have not done a lot of testing.
I have used RPi and raspiblitz before so other then the case / drive type change it's all the same so I don't think there will be any issues.




The Apollo is good, but keep in mind that it's a custom build, so unless something has changed in the last few weeks, you can't just update it, you have to wait for futurebit to release an OS / whatever update. And it's only a 512 GB drive so not a lot of room there for other stuff once you have the full node running.

Q: I updated the system and now my Apollo won't boot
A: DO NOT UPDATE THE OS THROUGH THE SYSTEM UPDATE PROMPTS Even though the Apollo is a full linux desktop, its still an embedded system with multiple system level changes to make it work with our proprietary hardware attached to it. If you do a system level OS update these will be whipped and you will end up with a bricked system, requiring a full SD card reflash using the stock image. Any system/kernel level updates will issue here with updated SD card images.

The problem is that they may or may not rely on some package that is different then what you need for what you want. Update the wrong thing and.....
Although they do say you can install other packages and even encourage it. It still worries me that if what I need to run has a dependency that is slightly newer / older then what is on the unit it can cause an issue.
They say it's only system level changes but still would rather not have to worry about it. That's just me you may have more free time to shrug it off and start fresh.

-Dave
hero member
Activity: 924
Merit: 5950
not your keys, not your coins!
September 02, 2021, 07:40:58 AM
A Pi is though much more compact and easier to tuck away, I was thinking of still getting a model 4 with the Argon One m.2 case (https://thepihut.com/products/argon-one-m-2-raspberry-pi-4-case). However, I'm hopefully getting my Futurebit Apollo soon whose SBC should have even more power than a Raspi, and will try to install Lightning onto that. Would also be a nice compact solution and having a compact full node with LN and a hashboard would be really sick, let's see how it will work out Grin

I have a Argon One m.2 sitting on my desk running a node in a box (raspiblitz)
That's good to know! With RPi 4, correct? How was the experience so far?

The Apollo is good, but keep in mind that it's a custom build, so unless something has changed in the last few weeks, you can't just update it, you have to wait for futurebit to release an OS / whatever update. And it's only a 512 GB drive so not a lot of room there for other stuff once you have the full node running.
What do you mean? I mean the SBC is some Orange Pi or one of those 'Raspberry clones' that have more power, but still a regular old ARM mini SBC. How would it prevent me from SSH'ing into it and installing c-lightning for example?
I know, 512GB is quite limited, worst case I'd in the future replace the SSD, it's a normal m.2 (NVMe afaik).

Remember that the m.2 for the argon is SATA NOT NVMe for the m.2 slot so you have a much smaller choice of what drives you can use. AND the ssd m.2 are getting harder to find.
Yup, I'm aware of that, but worst case I could take out an m.2 SATA SSD from my workstation and replace it with something better (should probably do that anyway Wink)
Pages:
Jump to: