Bitcoin Forum
April 24, 2024, 01:40:10 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 32046 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.)
Wind_FURY
Legendary
*
Offline Offline

Activity: 2898
Merit: 1817



View Profile
September 11, 2021, 10:48:10 AM
Merited by JayJuanGee (1)
 #961

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

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
1713922810
Hero Member
*
Offline Offline

Posts: 1713922810

View Profile Personal Message (Offline)

Ignore
1713922810
Reply with quote  #2

1713922810
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713922810
Hero Member
*
Offline Offline

Posts: 1713922810

View Profile Personal Message (Offline)

Ignore
1713922810
Reply with quote  #2

1713922810
Report to moderator
1713922810
Hero Member
*
Offline Offline

Posts: 1713922810

View Profile Personal Message (Offline)

Ignore
1713922810
Reply with quote  #2

1713922810
Report to moderator
1713922810
Hero Member
*
Offline Offline

Posts: 1713922810

View Profile Personal Message (Offline)

Ignore
1713922810
Reply with quote  #2

1713922810
Report to moderator
DaveF
Legendary
*
Offline Offline

Activity: 3458
Merit: 6234


Crypto Swap Exchange


View Profile WWW
September 11, 2021, 11:51:22 AM
Merited by JayJuanGee (1), Wind_FURY (1), ABCbits (1), n0nce (1)
 #962

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

█▀▀▀











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











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

Activity: 1204
Merit: 655


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


View Profile
September 12, 2021, 09:10:13 PM
Merited by JayJuanGee (1)
 #963



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

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 12, 2021, 09:20:55 PM
 #964

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

█▀▀▀











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











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

Activity: 3458
Merit: 6234


Crypto Swap Exchange


View Profile WWW
September 12, 2021, 09:26:00 PM
Merited by JayJuanGee (1)
 #965

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

█▀▀▀











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











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

Activity: 1204
Merit: 655


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


View Profile
September 12, 2021, 09:45:15 PM
 #966

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.

Bitcoin is energy. Bitcoin is freedom
I rather die on my feet than living on my knees!
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 12, 2021, 09:54:29 PM
 #967

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.

█▀▀▀











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











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

Activity: 3458
Merit: 6234


Crypto Swap Exchange


View Profile WWW
September 13, 2021, 11:26:28 AM
 #968

But i wonder how reliable is the "one-click Tor" feature? Would it work automatically if Tor is also censored? It's not easy task to find bridge (which isn't blocked) or create your own bridge.

At least for raspiblitz there are no 'quick' options to change. If TOR is censored by your ISP / government you would have to change the settings manually in the TOR configs.

I can't check on mynode at the moment since I reformatted it to try Umbrel yesterday and had a few issues so I stopped trying. I'll try again next weekend unless I have some slow time during the week.

-Dave

█▀▀▀











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











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

Activity: 3458
Merit: 6234


Crypto Swap Exchange


View Profile WWW
September 13, 2021, 11:57:34 AM
Merited by JayJuanGee (2), ABCbits (2)
 #969

One more question, if you check Tor config, are there any warning that you shouldn't edit it by yourself or the change might be overwritten by raspiblitz? I know few Tor tools which suddenly change your configuration which might broke other tool.

If you were on clearnet it goes and changes the bitcoin.conf and all the other apps you have installed to use TOR.
If you un-check it, it puts the configs back to the way they were.
If you check it again, it's back to the stock TOR config.

As far I can tell with over a year of use it never touches the configs again. The configs are not even on the SD card but on the HDD, so when you upgrade they are the way you left them.

But you are probably better off asking on their github for more info: https://github.com/rootzoll/raspiblitz/issues

-Dave


█▀▀▀











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











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

Activity: 1204
Merit: 655


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


View Profile
September 17, 2021, 09:42:25 PM
 #970

Hello.

What are your thoughts about triangles and other geometries between LN channels?

I have the idea that these kind of closed loops of channels are bad for the network, because it's like if you are putting the entire network out of that loop. So, wouldn't it be more reasonable to spread the most possible our connections instead of creating those closed loops between channels?

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

Activity: 3878
Merit: 1193


View Profile
September 18, 2021, 07:08:36 AM
Merited by LoyceV (4), JayJuanGee (1), ABCbits (1), Pmalek (1)
 #971

Hello.

What are your thoughts about triangles and other geometries between LN channels?

I have the idea that these kind of closed loops of channels are bad for the network, because it's like if you are putting the entire network out of that loop. So, wouldn't it be more reasonable to spread the most possible our connections instead of creating those closed loops between channels?

A newly-opened channel only has outbound liquidity. Loops give all nodes both inbound and outbound liquidity without creating redundant channels. It might even assist in rebalancing.

Buy & Hold
darkv0rt3x
Hero Member
*****
Offline Offline

Activity: 1204
Merit: 655


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


View Profile
September 20, 2021, 10:35:34 PM
 #972

Hello.

What are your thoughts about triangles and other geometries between LN channels?

I have the idea that these kind of closed loops of channels are bad for the network, because it's like if you are putting the entire network out of that loop. So, wouldn't it be more reasonable to spread the most possible our connections instead of creating those closed loops between channels?

A newly-opened channel only has outbound liquidity. Loops give all nodes both inbound and outbound liquidity without creating redundant channels. It might even assist in rebalancing.

Not 100% true now.

(I speak for myself) - With C-lightning you can open a channel that is balanced right from the start if you use liquidity ads, which were recently introduced.

They give you inbound and outbound capacity but in separate channels. I think it's always better to have balanced channels. I mean, it's better to have good balance per channel than just globally, which is what you might get from rings!

And what you mean by "redundant channels"??

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

Activity: 3878
Merit: 1193


View Profile
September 21, 2021, 05:44:03 AM
 #973

They give you inbound and outbound capacity but in separate channels.

Yeah, that's redundant. It is better to have 1 big channel than 2 redundant small channels.

I mean, it's better to have good balance per channel than just globally, which is what you might get from rings!

True, rings start out unbalanced and need manual balancing. Dual-funded channels would be ideal.

Buy & Hold
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 22, 2021, 12:58:37 AM
 #974

Hello.

What are your thoughts about triangles and other geometries between LN channels?

I have the idea that these kind of closed loops of channels are bad for the network, because it's like if you are putting the entire network out of that loop. So, wouldn't it be more reasonable to spread the most possible our connections instead of creating those closed loops between channels?
Sure, if you only have one channel and that channel is part of a LN ring, the rest of the network is out of this loop.

But nobody does this. As soon as you have multiple of these rings, everyone in one of these 2 rings can reach everyone in the other ring, since you run the node that ties them together. Of course this gets even better as soon as every participant has multiple rings or triangles and connections to hubs and other participants.

In general, a mix of hub, ring, triangle, individual connections is what I personally use Wink

It's true that when creating rings the channels are single-funded and your 'balanced liquidity' is only 'globally'. It shouldn't be an issue with low per-hop fees, but if you want, you can balance a ring once it's completed.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
ndalliard
Full Member
***
Offline Offline

Activity: 154
Merit: 177



View Profile
September 22, 2021, 07:26:07 AM
 #975

It's true that when creating rings the channels are single-funded and your 'balanced liquidity' is only 'globally'. It shouldn't be an issue with low per-hop fees, but if you want, you can balance a ring once it's completed.
i did once a triangle and we set the fees to zero after every channel was open an balanced the triangle so that everyone had a 50/50 channel. after that we set our fees at whatever we wanted
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5814


not your keys, not your coins!


View Profile WWW
September 22, 2021, 03:11:42 PM
 #976

It's true that when creating rings the channels are single-funded and your 'balanced liquidity' is only 'globally'. It shouldn't be an issue with low per-hop fees, but if you want, you can balance a ring once it's completed.
i did once a triangle and we set the fees to zero after every channel was open an balanced the triangle so that everyone had a 50/50 channel. after that we set our fees at whatever we wanted
Yup, I briefly mentioned this possibility:
Quote
if you want, you can balance a ring once it's completed.

█▀▀▀











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











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

Activity: 1204
Merit: 655


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


View Profile
September 22, 2021, 08:49:34 PM
Merited by JayJuanGee (2), BlackHatCoiner (1)
 #977

Oh, ok, good idea, actually. To set the fees to 0 and then, balance the channels and lastly set the fees again!

I'll see if my ring can/want to do that. I just created a ring with 2 other people.



Anyways, for the ones interested, Andreas M. Antonopoulos (@aantonop), Olaoluwa Osuntokun (@roasbeef), Rene Pickhardt (@renepickhardt), colaborated in another great work for the Lightning Network community. An online book. Check it here:

https://github.com/lnbook/lnbook

Hope this is useful to as many of us as possible!
Thanks to their great work.

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

Activity: 1604
Merit: 1564


精神分析的爸


View Profile
September 23, 2021, 11:11:04 AM
Merited by JayJuanGee (3)
 #978

I am posting this reply here, it was Rath_'s reply to my post in the bitcoind, c-lightning and RTL on centos 7 (walktrough) thread and he rightly suggested to come here with my questions.

If anybody has any reading pointers on how fees work in lightning, what good settings are etc.

There are no good settings. If you open a channel between two large nodes then you will probably not route any payments unless you set your fees to zero. You have to experiment with your fee settings. I opened a large channel to Bitfinex and a small one to Nicehash. Even though my fees in that channel (Bitfinex) were high (1 sat base fee; 95 ppm), I routed quite a few payments. The largest one was ~950k satoshi and I earned ~91.5 sat in routing fees just for that single transaction. After some time I had to lower my fees since no one wanted to send their payment through that channel.

Are you familiar with the way the fees are calculated or do you need an explanation?

No, to be honest I do not seem to understand the fee system fully yet. I have a solid understanding of how the fees work on-chain but not in lightning. From what I've seen there is a base fee and a percentage of the amount to be sent?

Also, I would be interested what the settings of "urgent", "normal", "slow" etc. mean when setting up a new channel, I guess urgent translates to high fees, but I am not sure yet.

Honestly, I would not use RTL to open and close channels. I overpaid a few times because of it. Also, you can open multiple channels in a single transaction via a command line! This way you can save a ton on money on the transaction fees.

Good point, I guess that's because RTL sets the on-chain fee for the funding transaction high enough to get into the next block at anytime and by doing it manually you can use 1-2sat/byte and just wait some time.

Are people setting their fees on a per-channel basis or globally?

Most people set their fees on a per-channel basis. If you are running a small node then you will very likely change them often. There is a plugin which automatically adjusts the fees for each channel but I am not sure how well it works.

Oh plugins, that's one open construction site I still have  Cheesy Didn't really work out yet, there are a few I would like to use, like the sqlite3 duplication and ev. autopilot but I can't get them to run yet. But I understand the general idea is not to care about the defaults, but fine-tune each channel so that it starts routing payments.
What are some ballpark figures for like dirt-cheap but not free and what are some upper bounds before it becomes criminal price gouging (yeah I understand, the network just routes around expensive nodes, but you should get the idea what I try to ask for)?

By the way, are you interested in opening a dual-funded channel at some point? It is still an experimental feature but I have successfully opened this type of channel with two other bitcointalk members. Here's my node for reference. Also, you might find The Lightning Network FAQ useful. Most of the LN related discussion is held there.

I am all in, just need some time to get more experience in operation of my node before I waste your time. I will happily get back to you by PM in the next days. I still need to finalize the setup in terms of DR plan / backup / resilience. I'll still need some assistance in creating this via rpc interface.

Thanks for the advice to move my questions to here, which I did.
I should have posted my questions here in the first place as you suggested, I only wanted to let mocacinno know how much his walkthrough helped me.

Rath_ (OP)
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
September 23, 2021, 12:12:54 PM
Merited by ABCbits (2), JayJuanGee (1), psycodad (1)
 #979

No, to be honest I do not seem to understand the fee system fully yet. I have a solid understanding of how the fees work on-chain but not in lightning. From what I've seen there is a base fee and a percentage of the amount to be sent?

Yes, you can set two parameters for each channel: base fee and fee rate (also known as PPM - pay-per-millionth). The fee formula looks like this:

base_fee + (forwarded_amount * fee_rate/1000000)

When you route a payment, you receive some coins in one channel and you spend coins from your other channel. You don't charge someone twice for your service. The fee paid by the payer is calculated based on the fee settings of the channel which forwards the payment to the next node.

Didn't really work out yet, there are a few I would like to use, like the sqlite3 duplication and ev. autopilot but I can't get them to run yet

I am not sure how well c-lightning's autopilot works. I believe that LND's autopilot opens channels mostly to large nodes. That's not really what you want if you want to maximize your routing earnings. Looking for good peers can take a lot of time, but it's kind of fun.

What are some ballpark figures for like dirt-cheap but not free and what are some upper bounds before it becomes criminal price gouging (yeah I understand, the network just routes around expensive nodes, but you should get the idea what I try to ask for)?

That's a tough question. I wouldn't open a channel to someone who charges more than 100 PPM in most of their channels.
psycodad
Legendary
*
Offline Offline

Activity: 1604
Merit: 1564


精神分析的爸


View Profile
September 23, 2021, 12:43:39 PM
 #980

Thank you for your reply and explanations so far.


Yes, you can set two parameters for each channel: base fee and fee rate (also known as PPM - pay-per-millionth). The fee formula looks like this:

base_fee + (forwarded_amount * fee_rate/1000000)

When you route a payment, you receive some coins in one channel and you spend coins from your other channel. You don't charge someone twice for your service. The fee paid by the payer is calculated based on the fee settings of the channel which forwards the payment to the next node.

Thanks a lot for that, I think I got it now how fees are set.
What I am still unclear is how the fee collection works, are you saying that if Alice pays to Bob over nodes X, Y and Z, X charges a fee to Alice and pays from that Y fees, who in turn pays Z fees?
Like in:
Alice - [X] - [Y] - [Z] - Bob
So fees have to be Xfee > Yfee > Zfee, otherwise somebody is going to make a loss?
Or if I am for example X, would I calculate Y's fees and add it ontop of mine and charge the sum to Alice, like in calculating total cost of a specific route?

Sorry for the stupid question, I just read https://medium.com/suredbits/lightning-101-lightning-network-fees-86abbbc17024 and I am none the wiser still.
EDIT: Just found this one, and it says Alice pays the sum of all fees to X, X pays Y and Z fees to Y etc.


I am not sure how well c-lightning's autopilot works. I believe that LND's autopilot opens channels mostly to large nodes. That's not really what you want if you want to maximize your routing earnings. Looking for good peers can take a lot of time, but it's kind of fun.

Yeah I started to figure that negotiating channels with peers is going to be the fun part, almost like negotiating peerings in the old internet days. I was interested in the autopilot to a) get a grip on how plugins work in c-lightning and b) to see what it would do in dry-run. But I am all game for the social fun part of establishing channels  Grin


What are some ballpark figures for like dirt-cheap but not free and what are some upper bounds before it becomes criminal price gouging (yeah I understand, the network just routes around expensive nodes, but you should get the idea what I try to ask for)?

That's a tough question. I wouldn't open a channel to someone who charges more than 100 PPM in most of their channels.

That's something to start off from, thanks a lot.
And for the base fee, free/0?


Also I am wondering about tor vs. clear-net nodes, is it possible to "dual-host" a node on tor AND clear-net at the same time or do I have to stick with one or the other?


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!