Pages:
Author

Topic: The Lightning Network node experience (Read 3480 times)

hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
April 21, 2024, 05:54:00 AM
There is a formula that determines the fee that you collect. It's base fee in sats + (amount being forward in sats * PPM/1.000.000), iirc.

An example:

Let's say you have 0 base fee and 300PPM. A 500k sats would get you 0 + (500k * 300/1.000.000) = 150 sats, if I'm not mistaken.

This is correct and I know this formula to calculate what you can collect for routing a payment. What I forgot is which channel fees are applied for above calculation which you can then collect for yourself. Let me try to explain:

  • you have peer1 to which you have channel1 with channel1_fee_settings (base_fee1 and ppm1;
  • you have peer2 to which you have channel2 with channel2_fee_settings (base_fee2 and ppm2;
  • an amount of 500k sats is routed through your node, coming from peer1/channel1 through your node and going out through via channel2/peer2 (assuming channel liquidity and balance is fine to allow the payment routing, of course);

Now which channel_fee_settings are applied to calculate your routing fee, channel1_fee_settings or channel2_fee_settings?

IIRC, it should be channel2_fee_settings, but I'm not sure (definitely not both, that I'm sure of).
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
April 20, 2024, 12:30:26 PM
But can you only edit the channel rates when you rebalance it?
...
I forgot, somewhat embarassing, whose of those two of your channel's base fee and ppm determines your routing fee which you earn.

I hesitated to change my parameters too often because I remember to have read somewhere that too frequent changes somehow degrade the "score" of your node. Maybe my thinking of this scoring is totally inaccurate or plain wrong.

There is a formula that determines the fee that you collect. It's base fee in sats + (amount being forward in sats * PPM/1.000.000), iirc.

An example:

Let's say you have 0 base fee and 300PPM. A 500k sats would get you 0 + (500k * 300/1.000.000) = 150 sats, if I'm not mistaken.
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
April 20, 2024, 12:09:06 PM
But can you only edit the channel rates when you rebalance it?

No, you can edit routing fees for every of your channels at any time (base fee and ppm). You don't have to wait for anything to happen.

I set the base fee for every of my channels to zero as I support the zero-base-fee camp to facilitate easier path-finding for payments. Usually when I adjusted the ppm for routing fees, I waited at minimum one or more days to see an effect of my change. Only if your ppm is way too low you may see quick depletion of your channel to usually one side.
For every payment routing two of your channels are involved, one incoming channel and one outgoing channel. I forgot, somewhat embarassing, whose of those two of your channel's base fee and ppm determines your routing fee which you earn.

I hesitated to change my parameters too often because I remember to have read somewhere that too frequent changes somehow degrade the "score" of your node. Maybe my thinking of this scoring is totally inaccurate or plain wrong.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
April 20, 2024, 10:25:01 AM
This month of April I know I'm not very bad because I am with 3.6k sats of fees! Probably I spent like less than 2k sats in rebalancing!

But can you only edit the channel rates when you rebalance it?
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
April 20, 2024, 09:15:14 AM
I had this question, too, and more. Oktober 2023 wasn't bad either, while seemingly out of nothing March '24 plummets deeply.

There is a simple reason. March was a month that I barely played with my node. I think that is one of the most important reason.

darkv0rt3x said earlier that he doesn't unfortunately keep track of expenses for rebalancing. I would really like to know if there's a correlation between effort to rebalance and if it pays off with more routing fees. And particularly if you don't have to spend more for rebalancing as you get in return for collecting routing fees, obviously.

I think there are 2 important reasons to make smaller nodes be able to route a bit more. Play a lot with fees, at least daily, and if it gets your node more active, rebalancing. And by rebalancing I don't mean put all your channels 50/50 (in/out) liquidity. I'll explain more in the next quote.


Another of my personal details of interest is change in number of channels and channel size. Has there been any substantial changes which resulted in the increase of routing fees?

To complete the reply to the above quote and also this quote, my experience is not highly conclusive but I have the idea that if you spend some time thinking in ways of theoretically widespread your node in terms of connections, it may pay off.
I cannot talk too much about the size of the channels because I don't have that big channels. the biggest channel I have open right now by me is 2.5M sats. I had one of 3M sats in the past but I closed it.
But one thing I tried recently was to talk to a good peer owner I have and ask him what are his best peers. He gave me a list of a few of his best peers and I chose one of them (not the biggest not the smallest, some peer in the middle), went to amboss.space and looked to the channels of that peer and searched for one peer that didn't have any channels to the peer I was talking to and opened a channel to that peer. It payed off because I could route 2M sats of payments in like a week. Problem was that I had the fees too low and I end up paying more for rebalancing than what I got in fees.

Not sure I was clear about the above explanation but I'll try this way.

My peer is A. So, I talked to the peer with which I have the best routing channels. This peer is peer B. I asked peer B what are his best peers in terms of routing to him (peer B). I told me that peers C to, let's say H, are his best peers.
I looked to the size of this list of peers and chose one that was not too big nor too small. Too big peers like ACINQ or WoS or so, tend to deplete our channels too quickly and too expensive to rebalance. So I went to a mid sized one. LEt's say peer F.
Then, I went to Amboss.space and looked to the channels of peer F and searched of a peer within peer's F peers that didn't have any channel to peer B and opened a channel to that peer! What I wanted to do was to make my node to be a bridge between peer B and peer F which has a "connection/channel" to one of best peer B peers. Hope you got the idea!

However, I would completely understand if darkv0rt3x prefers not to make such details public.

No problem, peers are public once you have their Pub Key.


Meanwhile, in late 2023 I closed my few own managed channels of my RaspiBlitz LND node. For some time my channels served me the purpose I opened them for. I had some personal usage and I wanted to experiment a little and see if and how I could manage coin flow for rebalancing purposes. It didn't work out well enough. I'm sure it were too few channels, too small size of channels and with too few channel partners you would have to be exceptionally lucky to have chosen channel partners that could provide you lots of routing opportunities. I knew I couldn't expect any good traffic despite my own transfer needs.

My node pub key is 03fef777d58a529df02a3fb267690e0c9033767b555cc1c63844bb2d3498789f91. You can take a look at Amboss.space and have an idea of the size of my channels and node. It's a small node. In total, I have around 0.34BTC in + out liquidity. My outbound is only around 9M sats. Inbound 25M sats.


I take the learning experience with me which I don't want to miss. I'm sure I still don't understand quite some settings, especially to enhance and support coin flow in desirable direction for as cheap as possible channel rebalancing. (My experience with circular payments was almost always a too expensive one, compared to return of interest through subsequent routing.)

I think that's common with smaller nodes. I'm there too, but it's not a fortune that we can lose in terms of routing fees versus rebalancing spendings. And with some luck you may even get on green.
Comercial noeds, let's call them that way, is probably way easier to get good income from routing and from the services they provide themselves.

My experiment had limits and I didn't want to lock more than a few million sats of liquidity for it. I don't complain...

Yeah, understandable. I have my node since around 2019. In Amboss.space, the oldest channel doesn't reflect my node's age because my oldest channel was with Boltz but due to some issues (probably stuck HTLCs in flight) that cannel was force-closed long ago. In fact, I have had like 3 of 4 channels with Boltz that were force-closed due to stuck HTLCs or HTLCs not resolved in due time!
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
April 20, 2024, 08:46:33 AM
Long time no posting here, but here it goes:

You had excellent movement in January and February, compared to other months.
Did you find any explanation for this, or was it just a coincidence?

I didn't do anything special other than closing and opening new channels and also playing with fees. But I also don't keep track of how many sats I spend in rebalancing. If I'm on the green, it's just barelly because rebalancing is expensive and you only get the feeling of how much you should set your fees for the green after you know how much you spend in rebalancing. Meaning that for instance, if I open a channel with 2M sats and those sats "travel" to the other peer, I know how many sats I earn with the channel but I only know if those sats are enough after I know how much I spent in rebalancing. So, this is always a not very fair game, at least for smaller nodes like mine.

A few weeks ago I opened a 2M sats channel with some peer. Most of that outbound liquidity travelled to the other peer in a couple of days. I didn't check how much I earned in fees but yesterday I pushed 200k sats to this channel again (from one other channel) and I know I spent 121 sats. I raised the fees a bit to 0 sats base fee and 390 ppm (or something like that) .Those 200k sats already moved again to the other peer and I only earned aroun 76 sats. So, I know, I lost  a bit. Now, I've raised the ppm a bit further to 420 ppm and will try to rebalance again! I know I'll be on the red but, it's a long learning/playing proccess!

This month of April I know I'm not very bad because I am with 3.6k sats of fees! Probably I spent like less than 2k sats in rebalancing!
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
April 20, 2024, 07:12:54 AM
Kind of a necro bump but wondering if anyone else running a node is getting 1 sat transactions with messages attached to them?
Yes, it's due to Satogram, a kind-of ad broadcaster that reaches nearly the entire lightning network.

Yes, it is well-documented elsewhere how I've been getting these too.

Or am I missing something else as to how people are doing it?
They don't need an invoice to send you satoshi. Anyone can send you satoshi over lightning by just having your node ID and keysend. If you're running LND, you can disable receiving that way with "accept-amp=false".

I wouldn't do it, if I were you. Just like email spam, but you're getting paid.  Wink

Getting paid $0.00064 per ad on a not-so-recurring basis when you only get 3 or 4 of these per month literally does not even make a penny at these prices. I might as well just run with accept-amp=false because I would not take any email spam in my inbox even if I was somehow paid a tiny amount to leave it there.

By the way, what does the amp even stand for?
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
April 20, 2024, 06:35:20 AM
I had this question, too, and more. Oktober 2023 wasn't bad either, while seemingly out of nothing March '24 plummets deeply.

darkv0rt3x said earlier that he doesn't unfortunately keep track of expenses for rebalancing. I would really like to know if there's a correlation between effort to rebalance and if it pays off with more routing fees. And particularly if you don't have to spend more for rebalancing as you get in return for collecting routing fees, obviously.

Another of my personal details of interest is change in number of channels and channel size. Has there been any substantial changes which resulted in the increase of routing fees?

However, I would completely understand if darkv0rt3x prefers not to make such details public.


Meanwhile, in late 2023 I closed my few own managed channels of my RaspiBlitz LND node. For some time my channels served me the purpose I opened them for. I had some personal usage and I wanted to experiment a little and see if and how I could manage coin flow for rebalancing purposes. It didn't work out well enough. I'm sure it were too few channels, too small size of channels and with too few channel partners you would have to be exceptionally lucky to have chosen channel partners that could provide you lots of routing opportunities. I knew I couldn't expect any good traffic despite my own transfer needs.

I take the learning experience with me which I don't want to miss. I'm sure I still don't understand quite some settings, especially to enhance and support coin flow in desirable direction for as cheap as possible channel rebalancing. (My experience with circular payments was almost always a too expensive one, compared to return of interest through subsequent routing.)

My experiment had limits and I didn't want to lock more than a few million sats of liquidity for it. I don't complain...
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
April 19, 2024, 01:30:31 PM
Long time no posting here, but here it goes:

You had excellent movement in January and February, compared to other months.
Did you find any explanation for this, or was it just a coincidence?
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
April 19, 2024, 05:32:06 AM
Long time no posting here, but here it goes:

October 2023


November 2023


December 2023


January 2024


February 2024


March
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
April 18, 2024, 10:30:45 AM
Kind of a necro bump but wondering if anyone else running a node is getting 1 sat transactions with messages attached to them?
Yes, it's due to Satogram, a kind-of ad broadcaster that reaches nearly the entire lightning network.

Or am I missing something else as to how people are doing it?
They don't need an invoice to send you satoshi. Anyone can send you satoshi over lightning by just having your node ID and keysend. If you're running LND, you can disable receiving that way with "accept-amp=false".

I wouldn't do it, if I were you. Just like email spam, but you're getting paid.  Wink

I *thought* "accept-amp=false" was the default. Which was why I figured it came from the invoice.

From: https://docs.lightning.engineering/lightning-network-tools/lnd/optimal-configuration-of-a-routing-node

Quote
Communication

Node runners may notify each other of issues they see when opening channels or forwarding payments. To be able to receive keysend messages, the following must be set.

accept-keysend=true # (default: false)
accept-amp=true # (default: false)

I do not have an easy way to dig into that node at the moment.
Will have to check when I get home.

Not a big deal, but that was why I was running with the invoice theory.

-Dave

legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 18, 2024, 09:55:01 AM
Kind of a necro bump but wondering if anyone else running a node is getting 1 sat transactions with messages attached to them?
Yes, it's due to Satogram, a kind-of ad broadcaster that reaches nearly the entire lightning network.

Or am I missing something else as to how people are doing it?
They don't need an invoice to send you satoshi. Anyone can send you satoshi over lightning by just having your node ID and keysend. If you're running LND, you can disable receiving that way with "accept-amp=false".

I wouldn't do it, if I were you. Just like email spam, but you're getting paid.  Wink
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
April 18, 2024, 09:28:17 AM
Kind of a necro bump but wondering if anyone else running a node is getting 1 sat transactions with messages attached to them?









I am guessing they are scraping websites and looking for payment requests because it started when I posted this about 1 month ago in another thread:



...

This is a repayment for 0 sats TO ME you should be able to add whatever amount you want:



If you can't scan the QR:

Code:
lnbc1pj7a6s4pp5s9yuq6tz05324wha0lnx8rn8hx3kk7gdxafmvv73ctc2al8xjjxqdqv23jhxapqxysqcqzzsxqyjw5qsp5gnqsgxpkqqwkl4mgtkvj3qjxyujlfs8aysz23dgsdypjnjza7srs9qyyssq7acrduv9duynhahph2k3cremcjrucf6mr7mkq4p9m7hjpcnfwavs4l59g09rjz778s2f04lcwknq6h9mp8fzs5fnv8fvye4jwmcrdcspl9cl7f

This is a repayment of 200 sats:




Code:
lnbc2u1pj7a6kcpp5qyl3gm9fnfqj4wuc2ep09u7v32af9vw32k9z0vsgyrr8nreyq4sqdquxgcrqgzng92zq5n9wpshjmt9de6qcqzzsxqyjw5qsp5gp5fhuexjgusvjyf792pewzkv8hyf907wfek4kpt3p9xza9mqh8q9qyyssqmdhmvttgzkjkdxjwa6kr7kfmce7c54f9x7ps0lvpx2ewljzc4g0r3us03srv02nmamxuzr0ytvqep5d8fudj85swfue8lzhvry5d2jqq9pu3nh
...



Or am I missing something else as to how people are doing it?

-Dave
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
October 09, 2023, 03:49:04 PM
From a quick look at the project website, it seemed to me that they don't have any version for Windows. Or am I mistaken?
Yes, it is compiled in Linux. So, get yourself a WSL if your machine runs on Windows: https://learn.microsoft.com/en-us/windows/wsl/install. I don't believe there's any way to run that software in Windows elsewhere, probably only with lightning Electrum?

I want to try to avoid using this solution. I'll try to look for something that works on Windows. There must be something.
In fact, I already did some brief research, and it seemed to me that there was something.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
October 09, 2023, 01:27:46 PM
From a quick look at the project website, it seemed to me that they don't have any version for Windows. Or am I mistaken?
Yes, it is compiled in Linux. So, get yourself a WSL if your machine runs on Windows: https://learn.microsoft.com/en-us/windows/wsl/install. I don't believe there's any way to run that software in Windows elsewhere, probably only with lightning Electrum?

A Lightning node is a hot wallet. I don't think it's the wisest decission to run it on Windows, a platform that is likely the main target for all sorts of malware, mainly due to its large user base and market share.
Linux is pretty much everywhere nowadays, so that isn't the reason. Windows are just known to suffer from more vulnerabilities than Linux, probably because they are closed-source since their launch.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
October 08, 2023, 05:54:45 PM
...

From a quick look at the project website, it seemed to me that they don't have any version for Windows. Or am I mistaken?

Your citation from darkv0rt3x speaks of multiple software: CLN, RTL and LND. To which of those three are you asking for a Windows version?


I was thinking about CLN.
But, I will analyze the other options, which have a Windows version. If there isn't, no problem...
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
October 08, 2023, 12:18:07 PM
...

From a quick look at the project website, it seemed to me that they don't have any version for Windows. Or am I mistaken?

Your citation from darkv0rt3x speaks of multiple software: CLN, RTL and LND. To which of those three are you asking for a Windows version?

A Lightning node is a hot wallet. I don't think it's the wisest decission to run it on Windows, a platform that is likely the main target for all sorts of malware, mainly due to its large user base and market share.

Maybe you didn't mean the Lightning node, we can't know, you weren't specific enough.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
October 07, 2023, 04:54:50 PM
I am running Core Lightning implementation of the Lightning Network and those pictures are from a fron-end for the node which is called RTL or Ride The Lightning.
I never tried LND which is another LN implementation and I don't want. I'm very happy with Core Lightning aka CLN.

From a quick look at the project website, it seemed to me that they don't have any version for Windows. Or am I mistaken?
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
October 07, 2023, 01:28:30 PM
Another month, another improvement. But I also paid quite a few sats in rebalancing. Probably it was almost the same as I got from forwarding payments! Never tracked how much I spent in fees for rebalancing channels!

What program are you using to do this monitoring?
Or better yet, what program are you using to run the LN node?

I am running Core Lightning implementation of the Lightning Network and those pictures are from a fron-end for the node which is called RTL or Ride The Lightning.
I never tried LND which is another LN implementation and I don't want. I'm very happy with Core Lightning aka CLN.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
October 07, 2023, 12:00:40 PM
Another month, another improvement. But I also paid quite a few sats in rebalancing. Probably it was almost the same as I got from forwarding payments! Never tracked how much I spent in fees for rebalancing channels!

What program are you using to do this monitoring?
Or better yet, what program are you using to run the LN node?
Pages:
Jump to: