Bitcoin Forum
November 18, 2024, 08:40:25 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lightning Node Help  (Read 291 times)
Peloponnesian (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 9


View Profile
April 24, 2019, 05:11:46 AM
Merited by OgNasty (1), LoyceV (1), LeGaulois (1)
 #1

Hello,

I am trying to sync up a lightning node (as per https://medium.com/lightning-power-users/windows-macos-lightning-network-284bd5034340) but not sure I have the hardware that will allow it to work.

I found this computer in a dumpster, rebuilt it, and added a few parts. It's running an old xeon processor (2.67 GHz), 12 GB of DDR3 RAM, an 80GB SSD, 500GB HDD (64MB Cache). My internet is 100 up/down.

I've been syncing for about 24 hours at this point and the ETA shows 12 hours remaining, with 77.48% done. It seems to have slowed down significantly in the past few hours. I just replaced the HDD last night (realized during previous sync attempt it was done for).

Has anyone gone through this process before with a similar (garbage) PC? Also trying to get Lightning Labs new desktop wallet up and running on my laptop. Very into this stuff. Any insight is appreciated.

Thanks.
Pmalek
Legendary
*
Offline Offline

Activity: 2954
Merit: 7563


Playgram - The Telegram Casino


View Profile
April 24, 2019, 08:18:42 AM
 #2

I do remember reading somewhere that a dual core processor (or better) is recommended - no idea where I read it though. You need a minimum of 2GB of RAM and probably around 300 GB of free disk space for all the downloads.

▄▄███████▄▄███████
▄███████████████▄▄▄▄▄
▄████████████████████▀░
▄█████████████████████▄░
▄█████████▀▀████████████▄
██████████████▀▀█████████
████████████████████████
██████████████▄▄█████████
▀█████████▄▄████████████▀
▀█████████████████████▀░
▀████████████████████▄░
▀███████████████▀▀▀▀▀
▀▀███████▀▀███████

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 
Playgram.io
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▄▄▄░░
▀▄







▄▀
▀▀▀░░
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
██████▄▄███████▄▄████████
███▄███████████████▄░░▀█▀
███████████░█████████░░
░█████▀██▄▄░▄▄██▀█████░
█████▄░▄███▄███▄░▄█████
███████████████████████
███████████████████████
██░▄▄▄░██░▄▄▄░██░▄▄▄░██
██░░░░██░░░░██░░░░████
██░░░░██░░░░██░░░░████
██▄▄▄▄▄██▄▄▄▄▄██▄▄▄▄▄████
███████████████████████
███████████████████████
 
PLAY NOW

on Telegram
[/
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3139



View Profile
April 24, 2019, 08:28:14 AM
Merited by LoyceV (1)
 #3

It seems to have slowed down significantly in the past few hours. I just replaced the HDD last night (realized during previous sync attempt it was done for).

There is nothing to worry about. The synchronization always slows down when it gets closer to 100%. In my case, it took 3 days even though my CPU is not bad and I have a decent Internet connection (250mbp/s).

Has anyone gone through this process before with a similar (garbage) PC?

I helped @Zand_ with setting up his Bitcoin and Lightning Network nodes on a Raspberry Pi which is inferior to your PC. If you need any help with LND, feel free to post your questions in this section. I will try to answer them.
lijian2019
Copper Member
Jr. Member
*
Offline Offline

Activity: 445
Merit: 4


View Profile
April 24, 2019, 10:01:53 AM
 #4

Trying lightning contacts I think ordinary computers will meet the update synchronization conditions. I found some old hardware to assemble a CPU (Intel) Intel (R) Core (TM) i5-3470 CPU @ 3.20 GHz.

CPU core number 4, CPU default frequency 3200 Mhz, ASUS B75M-A motherboard, memory 8GB, 500G SSD solid-state SSD hard disk, Internet 100 or so, SSD hard disk solid-state like this thing. I appreciate the pressure-free speed of reading and writing.

Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3080



View Profile
April 24, 2019, 12:25:54 PM
Merited by Jet Cash (2), LoyceV (1), ABCbits (1)
 #5

1. set dbcache to 6 or 8 GB (assuming you're running your OS directly, not in a VM. reduce that if you're using a VM)
2. set blocksdir to a directory on your HDD
3. set datadir to a directory on your SDD

put a text file bitcoin.conf in datadir, put those settings as lines in bitcoin.conf (default datadir is different depending on OS)

that will speed up the syncing

Vires in numeris
Peloponnesian (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 9


View Profile
April 24, 2019, 01:56:07 PM
 #6

1. set dbcache to 6 or 8 GB (assuming you're running your OS directly, not in a VM. reduce that if you're using a VM)
2. set blocksdir to a directory on your HDD
3. set datadir to a directory on your SDD

put a text file bitcoin.conf in datadir, put those settings as lines in bitcoin.conf (default datadir is different depending on OS)

that will speed up the syncing


Thanks guys. ^ Do I do this through the Bitcoin Console? apologies... very new to this.
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3139



View Profile
April 24, 2019, 04:00:22 PM
 #7

Thanks guys. ^ Do I do this through the Bitcoin Console? apologies... very new to this.

If you are running a Linux based OS then it will be fairly easily. Add the following lines to the command which launches Bitcoin Core.

-datadir=<SSD> -dbcache=<megabytes>

Changing blocks directory is a little bit more tricky. Keep chainstate folder on the HDD and move the other data folders to your SSD. While being in the data directory on the SSD, run ln -s /path/to/chainstate
Peloponnesian (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 9


View Profile
April 24, 2019, 04:03:12 PM
 #8

And if running Windows?
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3139



View Profile
April 24, 2019, 04:19:12 PM
 #9

And if running Windows?

Right-click your Bitcoin Core shortcut and select Properties. Add the lines which I wrote in my previous post after bitcoin-qt.exe. Make sure that there is space between .exe and dash. I have no idea how to link chainstate, though. I am not sure if a normal folder shortcut will do the trick.
ABCbits
Legendary
*
Offline Offline

Activity: 3066
Merit: 8092


Crypto Swap Exchange


View Profile
April 24, 2019, 05:27:23 PM
Merited by Rath_ (1), Peloponnesian (1)
 #10

I have no idea how to link chainstate, though. I am not sure if a normal folder shortcut will do the trick.

On windows, you can use mklink command. Example

Code:
mklink /D <source> <destination>
Code:
mklink /D d:\current\bitcoin\directory\chainstate c:\path\to\chainstate

There's extensive guide to split Bitcoin Core file at https://en.bitcoin.it/wiki/Splitting_the_data_directory

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Peloponnesian (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 9


View Profile
April 25, 2019, 05:52:05 AM
 #11

Thanks for the help guys. At 97.45% - hopefully it finishes tonight.

Look forward to learning lots on this forum!
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3080



View Profile
April 25, 2019, 07:30:48 AM
Merited by Jet Cash (2)
 #12

-datadir=<SSD> -dbcache=<megabytes>

Changing blocks directory is a little bit more tricky. Keep chainstate folder on the HDD and move the other data folders to your SSD. While being in the data directory on the SSD, run ln -s /path/to/chainstate

no no no

the other way round!

chainstate (i.e. datadir) goes on your small + fast disk (SSD)
blocks goes on your large + slow disk (mechanical HDD)


chainstate is the UTXO set, which is changing very rapidly during sync. An SSD does that job much better than a mechanical disk

Vires in numeris
Peloponnesian (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 9


View Profile
April 25, 2019, 08:34:43 PM
 #13

So, woke up this morning to 100% synced, but the little dot on the BTC symbol was still red. The console said “out of memory”.  I closed the program and re-opened, and it has been re-syncing ever since. Now back to 90% or so with 5 hrs left Sad

What is supposed to happen when it’s done? I thought that the little dot should have turned green? Once that happened I was going to install the Jewel chrome plugin and continue the instructions from the medium post.

Any thoughts/help appreciated.
Peloponnesian (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 9


View Profile
April 26, 2019, 03:39:36 PM
Merited by Jet Cash (2), ABCbits (1), o_e_l_e_o (1)
 #14

SUCCESS! Thanks everyone here for your help. If I need to close this thread or mark it in some way let me know. Here’s what I did if anyone else runs into this problem:

1.) Closed Node Launcher (was showing 100% synced but didn’t have little green dot beside BTC in tray)
2.) Installed BItcoin core and let it sync overnight (was done the next morning)
3.) Closed Bitcoin core and opened the Node Launcher
4.) Synced in about half hour, and got little green dot next to BTC in tray

Now in the process of setting up the node and opening some channels. Woo!
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3080



View Profile
April 27, 2019, 08:40:17 AM
 #15

1.) Closed Node Launcher (was showing 100% synced but didn’t have little green dot beside BTC in tray)
...
3.) Closed Bitcoin core and opened the Node Launcher

what's node launcher ? Huh

Vires in numeris
Peloponnesian (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 9


View Profile
April 27, 2019, 06:42:51 PM
 #16

https://github.com/lightning-power-users/node-launcher/releases

Not sure what i'm supposed to be calling it haha. I guess really it's just bitcoin core that i'm opening? with an attachment of some sort for lightning?
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3139



View Profile
April 27, 2019, 07:04:46 PM
 #17

Not sure what i'm supposed to be calling it haha. I guess really it's just bitcoin core that i'm opening? with an attachment of some sort for lightning?

Yeah. This app is said to make it easier to deploy Bitcoin Core and LND (Lightning Network node software). I would prefer do it on my own rather than use such software (even if it's open-source).
Pages: [1]
  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!