Bitcoin Forum
April 28, 2024, 08:16:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 [48] 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 »
  Print  
Author Topic: The Lightning Network FAQ  (Read 32053 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (37 posts by 1+ user deleted.)
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 02, 2021, 12:33:16 AM
 #941

I don't really get your issue about the language/dependencies for c-lightning plugins; just don't use any plugin you don't like? Undecided
The issue is that for my last Lightning project, I needed a HTTPS API, and the one I found for c-lightning was c-lightning-REST, written in NodeJS. Maybe I'll code my own in C, but neever enough time. Argh.  Undecided

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714292180
Hero Member
*
Offline Offline

Posts: 1714292180

View Profile Personal Message (Offline)

Ignore
1714292180
Reply with quote  #2

1714292180
Report to moderator
1714292180
Hero Member
*
Offline Offline

Posts: 1714292180

View Profile Personal Message (Offline)

Ignore
1714292180
Reply with quote  #2

1714292180
Report to moderator
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 02, 2021, 10:22:49 AM
Merited by Rath_ (2), JayJuanGee (1)
 #942

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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
LoyceV
Legendary
*
Online Online

Activity: 3290
Merit: 16561


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
September 02, 2021, 10:39:33 AM
Merited by n0nce (2)
 #943

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
I have no RPi expience, but on my laptop it works well to put blocks on HDD and chainstate on SSD.

Quote
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.
The above adjustment made restarting Bitcoin Core much faster. But it wasn't anywhere close to days, just minutes.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DaveF
Legendary
*
Offline Offline

Activity: 3458
Merit: 6239


Crypto Swap Exchange


View Profile WWW
September 02, 2021, 11:27:07 AM
Merited by LoyceV (4), JayJuanGee (2), ndalliard (1)
 #944

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

I cannot stress this enough, get away from the RPi3 in general at this point to do bitcoin stuff.
It will work, but the RPi4 is just a better unit for not much more money.

Since they say a picture is worth 1000 words and I am too lazy to type, the following image from https://magpi.raspberrypi.org/articles/raspberry-pi-4-vs-raspberry-pi-3b-plus
puts in out there perfectly:



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.
A year / 18 months ago it was a different story. Now, just get the 4 IMO.

-Dave

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 02, 2021, 11:47:32 AM
Merited by JayJuanGee (1)
 #945

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1498
Merit: 7294


Farewell, Leo


View Profile
September 02, 2021, 11:55:40 AM
 #946

All that extra processing power for $20.00 more.
It's not just the processing power. Everything is nowadays written for RPi 4. So with $20 extra, you're also included into implementations of projects that have more support. I could have an issue with my RPi 3, but if you've never used it, you'll just recommend me to buy the latest Pi.

Easier to work with in general, e.g. apt updates take forever on Pis (at least anything up to including 3B+).
Running a full node on a RPi does, indeed, have this downside.  Tongue

I wanted to try some different implementations of Bitcoin node OS, but they'll all take around 2-3 months to complete...

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
DaveF
Legendary
*
Offline Offline

Activity: 3458
Merit: 6239


Crypto Swap Exchange


View Profile WWW
September 02, 2021, 12:13:27 PM
Merited by JayJuanGee (1)
 #947

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)

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.

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.

-Dave


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 02, 2021, 12:40:58 PM
 #948

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)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DaveF
Legendary
*
Offline Offline

Activity: 3458
Merit: 6239


Crypto Swap Exchange


View Profile WWW
September 02, 2021, 01:36:06 PM
Last edit: September 02, 2021, 03:16:46 PM by DaveF
 #949

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 02, 2021, 02:16:15 PM
 #950

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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
September 02, 2021, 11:18:03 PM
Merited by JayJuanGee (1)
 #951

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.
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 03, 2021, 12:04:09 AM
 #952

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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
September 03, 2021, 12:14:22 AM
 #953

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.
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 03, 2021, 08:36:09 AM
 #954

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'.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1498
Merit: 7294


Farewell, Leo


View Profile
September 03, 2021, 11:40:29 AM
Merited by JayJuanGee (1)
 #955

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?

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
September 03, 2021, 04:08:41 PM
Merited by JayJuanGee (1)
 #956

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.
darkv0rt3x
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 657


I rather die on my feet than to live on my knees


View Profile
September 03, 2021, 10:42:05 PM
Last edit: September 03, 2021, 11:18:06 PM by darkv0rt3x
Merited by ABCbits (2), JayJuanGee (1), ndalliard (1)
 #957

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.

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3071



View Profile
September 05, 2021, 02:19:40 PM
 #958

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)

Vires in numeris
DaveF
Legendary
*
Offline Offline

Activity: 3458
Merit: 6239


Crypto Swap Exchange


View Profile WWW
September 05, 2021, 03:46:32 PM
 #959

...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


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 10, 2021, 12:31:51 PM
Merited by JayJuanGee (1)
 #960

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 [48] 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!