Pages:
Author

Topic: The Lightning Network FAQ - page 12. (Read 33222 times)

legendary
Activity: 2212
Merit: 7064
September 01, 2022, 01:05:33 PM
Mempool website added beta support for Lightning Network and you can find there lot's of useful information and pie charts.
First thing you see is that most LN clear nodes are running on Cloud servers (Google cloud, Amazon cloud, Data Web Global Group, Digital Ocean, Hetzner, etc).
However, around %80 of LN nodes are not shown here because they run on TOR, but 70% of liquidity and capacity is still coming from four biggest cloud servers with clear nodes.
Clearnet capacity is 4,187 BTC; Tor capacity is 367.76 BTC; and rest of capacity is from unknown.
This is clear centralization and I really don't understand what's the problem of running your node on raspberry pi or old laptop/computer... probably it's more convenient and cheaper to use someone else computer  Tongue

What do you think about this?


https://mempool.space/lightning


https://mempool.space/graphs/lightning/nodes-per-isp

PS
I heard that Hetzner recently released some announcement saying that using their cloud for any cryptocurrency related services is against their terms, and they will have to ban that soon.
Same thing could happen with all other cloud providers at some point.
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
August 27, 2022, 04:35:48 PM
c-lightning v0.12.0 was released a couple of days ago. Static channel backup is now available! Keep in mind that it should be your last resort. If your peers refuse to cooperate or go offline permanently, you might not be able to recover your coins. Using the backup plugin should be your main strategy as it is more reliable and lets you keep your channels operational after successful recovery.
What about using the built-in channel state backup functionality since v0.10.2 instead of the backup plugin?
It is easier to set up and only downside is no PostgreSQL backend support.

Code:
wallet=sqlite3:///home/bitcoin/.lightning/bitcoin/lightningd.sqlite3:/mnt/share/lnbackup/lightningd.sqlite3
legendary
Activity: 1876
Merit: 3132
August 26, 2022, 02:02:34 PM
c-lightning v0.12.0 was released a couple of days ago. Static channel backup is now available! Keep in mind that it should be your last resort. If your peers refuse to cooperate or go offline permanently, you might not be able to recover your coins. Using the backup plugin should be your main strategy as it is more reliable and lets you keep your channels operational after successful recovery.
legendary
Activity: 3836
Merit: 10832
Self-Custody is a right. Say no to"Non-custodial"
August 20, 2022, 04:47:29 AM
-snip
Hopefully some members who are more experienced with lighting network can have some back and forth with you in this thread to verify that your proclaimed activities are legitimate..

Unfortunately, that post is a copy/paste. Here's the original post made by a different member who also answered our questions.

Whoops... I feel like such a dumbie..

I hit the report Abul basar 365 for plagiarism button, since we know that it is just wrong to copy and paste and to present the content of others (in this case, TheJuice) as if it were your own.. but also he should not be able to benefit from his having had received merits for that post in terms of going back to bounty hunting or for whatever other reasons he might have had for faking his situation.

Thanks for pointing that out Rath_...
legendary
Activity: 1876
Merit: 3132
August 20, 2022, 04:37:06 AM
-snip
Hopefully some members who are more experienced with lighting network can have some back and forth with you in this thread to verify that your proclaimed activities are legitimate..

Unfortunately, that post is a copy/paste. Here's the original post made by a different member who also answered our questions.
legendary
Activity: 3836
Merit: 10832
Self-Custody is a right. Say no to"Non-custodial"
August 20, 2022, 01:25:46 AM
I've been meaning to do a larger write up of my experience once I hit 1M sats in fees.

I run the node Prince, https://1ml.com/node/02644f80b5d32ed9a9888690571159692a17d7ead7db2df5124a8e2a72a8447d30

I am currently ranked 8th on the BOS rankings (https://fulmo.org/bos-score.html) and 12th on lightning terminal rankings. I have 8-9 BTC on my node with about 110 channels (I have more incoming that outcoming liquidity, so that 8BTC is not my investment).

Top line numbers: Over the past 5 months have routed over 6700 payments worth over 1.7 billion sats earning me about 900k sats in routing fees; I've spent about 100k sats in on-chain fees and rebalancing fees. For those doing the math, that comes out to about 0.5% APR on my locked-up capital. Although my volume is steadily increasing and I may be able to get closer to 1% in the next year.

I have everything automated including fees and re-balancing.
-- I use lnd-charge for fees: https://github.com/accumulator/charge-lnd
-- I use c-otto's script for automatic re-balancing: https://c-otto.de/

Happy to answer more questions -- oh, and feel free to open a channel to me. The best way to get started is to open liquidity triangles with people (ie A->B; B->C; C->A). Happy to be a part of a couple here if there is interest. I do require a minimum of 5M sats for any incoming channels.

Nice first post in this thread Abul basar 365.  Hopefully some members who are more experienced with lighting network can have some back and forth with you in this thread to verify that your proclaimed activities are legitimate..   Just based on your having had provided links and made a decent write up, I was going to send more smerits, but then I saw that your first several posts on the forum relate to bounty hunting and I am disinclined to send smerits to members who are heavily involved in bounty hunting activities unless they also provide good substantively helpful posts in other parts of the forum.. so hopefully you will continue to contribute in order that some of the members here can have some interactions back and forth with you and I would like to see you verified that your bitcoin related activities are legit and the information that you are providing is helpful to other members.  

I would appreciate if any forum member experienced with lightning network matters could vet the information provided by Abul basar 365.

By the way, in regards to the BOS ranking score, I am not clear about how to read that.  It appears to me that the first 12 nodes are tied for 1st, or am I reading that wrong?  I do understand that the scoring and the rankings will regularly change, yet I cannot see where you got 8th out of 12?  Another thing, I suppose you could say would be that you are 12th, or you could say that you are merely amongst a group of 12 other nodes that are tied for 1st (with the same "highest" score)?... Something is confusing to me about how to characterize/describe the BOS ranking location and how you mentioned 8th from that?
full member
Activity: 226
Merit: 163
August 18, 2022, 05:59:48 AM
Today capacity
4570 BTC

https://1ml.com/
legendary
Activity: 2044
Merit: 1055
August 11, 2022, 02:32:17 AM
Today’s LightningNetwork⚡️capacity in Bitcoin (August 10, 2022)

hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
August 10, 2022, 06:24:43 PM
In this case I didn't want to send any payment, only to test the routing algorithm to see if it would "naturally" select the loop we have!
About the documentation, yeah, you're right! I read it, but somehow I overlooked that part where it says the default was "this node"!
Okay well, yes, for testing what routes it would 'naturally' take, getroute is exactly what you want to use.
Unfortunately, I don't think you can force a 'next hop' - but maybe Rath_ knows more about this.

I think there is a way, with Core Lightning, to build (maybe) a json array with the peers you want to use but seems that you also have to include other info about the peer in that json array so that it work. But I'm not even sure what would be the command to use to accomplish this. Maybe keysend or sendpay. Didn't look to the docs, tbh!
You can give a json array with the whole path to the two *send* commands; at least, I checked for sendpay.
But can you give an array with a few peers (or one) you absolutely want to use, and let it build a path from there? I don't think that's possible.

There are routing hints, but that's something else entirely; it's part of the invoice and helps the sender find a route. It could be abused for your use-case though, if you were to create an invoice from another node that includes all (or some) of the nodes on your loop as routing hints.
hero member
Activity: 1260
Merit: 675
I rather die on my feet than to live on my knees
August 10, 2022, 06:01:51 PM
In this case I didn't want to send any payment, only to test the routing algorithm to see if it would "naturally" select the loop we have!
About the documentation, yeah, you're right! I read it, but somehow I overlooked that part where it says the default was "this node"!
Okay well, yes, for testing what routes it would 'naturally' take, getroute is exactly what you want to use.
Unfortunately, I don't think you can force a 'next hop' - but maybe Rath_ knows more about this.

I think there is a way, with Core Lightning, to build (maybe) a json array with the peers you want to use but seems that you also have to include other info about the peer in that json array so that it work. But I'm not even sure what would be the command to use to accomplish this. Maybe keysend or sendpay. Didn't look to the docs, tbh!
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
August 09, 2022, 06:52:43 PM
In this case I didn't want to send any payment, only to test the routing algorithm to see if it would "naturally" select the loop we have!
About the documentation, yeah, you're right! I read it, but somehow I overlooked that part where it says the default was "this node"!
Okay well, yes, for testing what routes it would 'naturally' take, getroute is exactly what you want to use.
Unfortunately, I don't think you can force a 'next hop' - but maybe Rath_ knows more about this.
hero member
Activity: 1260
Merit: 675
I rather die on my feet than to live on my knees
August 07, 2022, 02:41:21 PM
Let's call nodes A, B, C, D and E, where D is my node. So, my goal would be to get a route from D -> E -> A -> B -> C. This loop was opened with 1million sats.
So, I used the following command to try to get the route:
Code:
lightning-cli -k getroute id=node_C fromid=node_E msatoshi=700000000msat riskfactor=0
Usually such circles are used for rebalancing your own node, so you send a payment from your node D to yourself, again D, AFAIR.

But anyway just to find a route to a certain destination within the circle it doesn't matter, what I don't understand is why you use fromid=node_E and not node_D, as you want your own node as origin of the payment.

That was a question I was asking myself. I don't know if the command itself already considers my node as the source node or not. I mean, I assume it does, because otherwise it wouldn't make sense to try to get a route, running the command in my node but asking to get a route starting from some other node. Maybe I'm missing some scenario, but yeah, I assumed the command considers my node as the starting point! That's why I used fromid to try to force the route through the node I have a channel to, in this loop! Otherwise, any other node could be selected and the chance of using the loop I'm in, would be probably greatly reduced!
Your question is answered quickly by the documentation.. Wink

fromid is the node to start the route from: default is this node.



In theory, using the normal sendpay command, you can pass a route argument instead of having it find a route automatically using getroute.
https://lightning.readthedocs.io/lightning-sendpay.7.html?highlight=sendpay

You would probably need to generate a route using getroute and then modify it manually, before passing it to sendpay.
On success, an object containing route is returned. It is an array of objects, where each object contains:
  • id (pubkey): The node at the end of this hop
  • channel (short_channel_id): The channel joining these nodes
  • direction (u32): 0 if this channel is traversed from lesser to greater id, otherwise 1
  • amount_msat (msat): The amount expected by the node at the end of this hop
  • delay (u32): The total CLTV expected by the node at the end of this hop
  • style (string): The features understood by the destination node (always “tlv”)

In this case I didn't want to send any payment, only to test the routing algorithm to see if it would "naturally" select the loop we have!
About the ocumentatiom, yeah, you're right! I read it, but somehow I overlooked that part where it says the default was "this node"!
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
August 07, 2022, 10:45:19 AM
Let's call nodes A, B, C, D and E, where D is my node. So, my goal would be to get a route from D -> E -> A -> B -> C. This loop was opened with 1million sats.
So, I used the following command to try to get the route:
Code:
lightning-cli -k getroute id=node_C fromid=node_E msatoshi=700000000msat riskfactor=0
Usually such circles are used for rebalancing your own node, so you send a payment from your node D to yourself, again D, AFAIR.

But anyway just to find a route to a certain destination within the circle it doesn't matter, what I don't understand is why you use fromid=node_E and not node_D, as you want your own node as origin of the payment.

That was a question I was asking myself. I don't know if the command itself already considers my node as the source node or not. I mean, I assume it does, because otherwise it wouldn't make sense to try to get a route, running the command in my node but asking to get a route starting from some other node. Maybe I'm missing some scenario, but yeah, I assumed the command considers my node as the starting point! That's why I used fromid to try to force the route through the node I have a channel to, in this loop! Otherwise, any other node could be selected and the chance of using the loop I'm in, would be probably greatly reduced!
Your question is answered quickly by the documentation.. Wink

fromid is the node to start the route from: default is this node.



In theory, using the normal sendpay command, you can pass a route argument instead of having it find a route automatically using getroute.
https://lightning.readthedocs.io/lightning-sendpay.7.html?highlight=sendpay

You would probably need to generate a route using getroute and then modify it manually, before passing it to sendpay.
On success, an object containing route is returned. It is an array of objects, where each object contains:
  • id (pubkey): The node at the end of this hop
  • channel (short_channel_id): The channel joining these nodes
  • direction (u32): 0 if this channel is traversed from lesser to greater id, otherwise 1
  • amount_msat (msat): The amount expected by the node at the end of this hop
  • delay (u32): The total CLTV expected by the node at the end of this hop
  • style (string): The features understood by the destination node (always “tlv”)
hero member
Activity: 1260
Merit: 675
I rather die on my feet than to live on my knees
August 07, 2022, 09:45:13 AM
Let's call nodes A, B, C, D and E, where D is my node. So, my goal would be to get a route from D -> E -> A -> B -> C. This loop was opened with 1million sats.
So, I used the following command to try to get the route:
Code:
lightning-cli -k getroute id=node_C fromid=node_E msatoshi=700000000msat riskfactor=0
Usually such circles are used for rebalancing your own node, so you send a payment from your node D to yourself, again D, AFAIR.

But anyway just to find a route to a certain destination within the circle it doesn't matter, what I don't understand is why you use fromid=node_E and not node_D, as you want your own node as origin of the payment.

That was a question I was asking myself. I don't know if the command itself already considers my node as the source node or not. I mean, I assume it does, because otherwise it wouldn't make sense to try to get a route, running the command in my node but asking to get a route starting from some other node. Maybe I'm missing some scenario, but yeah, I assumed the command considers my node as the starting point! That's why I used fromid to try to force the route through the node I have a channel to, in this loop! Otherwise, any other node could be selected and the chance of using the loop I'm in, would be probably greatly reduced!
hero member
Activity: 714
Merit: 1010
Crypto Swap Exchange
August 04, 2022, 04:19:28 AM
Let's call nodes A, B, C, D and E, where D is my node. So, my goal would be to get a route from D -> E -> A -> B -> C. This loop was opened with 1million sats.
So, I used the following command to try to get the route:
Code:
lightning-cli -k getroute id=node_C fromid=node_E msatoshi=700000000msat riskfactor=0
Usually such circles are used for rebalancing your own node, so you send a payment from your node D to yourself, again D, AFAIR.

But anyway just to find a route to a certain destination within the circle it doesn't matter, what I don't understand is why you use fromid=node_E and not node_D, as you want your own node as origin of the payment.
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
August 03, 2022, 07:07:15 PM
US dollars or Stablesats are apparently coming to Lightning Network via Galoy Inc that created LN wallet used in El Salvador Bitcoin Beach project.
[~snip~]
I replied to this news in the Lightning Network observer. I'm not thrilled, either..

As the article states, if a lot of people buy e.g. 1BTC worth of stablesats and Bitcoin loses half its value, the company will have to give each such user 1BTC, and the users would be able to cash out 2BTC, right?
In a longer bear market, it will absolutely wreck the company if they don't have enough reserves.

Seeing that they are looking for money in the single-digit-millions-range, it doesn't appear to me that they have sufficient reserves.
Maybe they are working with centralized exchanges in a way that is often suspected already to be happening: those 1BTC I mentioned earlier, will be 'printed' out of thin air at the exchange, in hope that not all users withdraw to non-custodial wallets at the same time.

I'd personally steer clear from something like this.



[~snip~]
You guys have any thoughts on this or want to make a similar experience and share results?
Like, I have a loop and its route is not found/selected to route any payments! This is kinda disappointing!
I'm sorry; I don't have a loop right now to try with. Indeed it sounds pretty disappointing. Have you tried 'forcing' it over less hops? It's possible that your directly connected node E is fine, but that the next hop has trash liquidity. Or the one after that. Maybe try routing through just E or just D -> E -> A. Add hops until it no longer works.
legendary
Activity: 2212
Merit: 7064
August 03, 2022, 04:05:39 PM
US dollars or Stablesats are apparently coming to Lightning Network via Galoy Inc that created LN wallet used in El Salvador Bitcoin Beach project.
This means that we could hold, send and receive USD (backed by Bitcoin) along with Bitcoin in out wallets and use it for everyday payments.
There is no USD token like in the case of Tether, USDC and other stable coins, it's just bitcoin stabilized into dollar balance using inverse perpetual swaps.

First problem I see here is that centralized exchange OKX will be used for derivatives contracts used to hedge Bitcoin.
This means that funds could be frozen, and you are not really in custody of your coins in the moment when trade happens.
Second biggest risk is auto-deleveraging that could result in liquidations in volatile market conditions.

Short video explanation how Stablesats works:
https://www.youtube.com/watch?v=FGO4dbwMYwg

I am not really thrilled with this news, and I think Bitcoin will outlive US dollar and other fiat currencies that are going down the hill with inflation.
Maybe this could be used as a tool in some cases, and fees are lowest compared to all other alternatives, but I would be very careful using it with LN.



Sources with more information:
https://galoy.io/announcing-stablesats-bringing-usd-to-the-lightning-network/
https://stablesats.com/
hero member
Activity: 1260
Merit: 675
I rather die on my feet than to live on my knees
August 03, 2022, 01:12:07 PM
So, while @BlackHatCoiner doesn't come back, I'll take the discussion somewhere else.

Today I wanted to test a loop I have with 4 other nodes, a so called pentagon. 4 + me.

So, with my LN node, I used getroute to see if I could get a route only using the peers of this pentagon, by sending a payment and providing the starting node as an extra parameter and kinda force the route to use the most possible peers in this pentagon, ideally all of them (I think there are at least 2 peers with other channels to other peers of this pentagon which could possibly shorten the number of hops used).

Let's call nodes A, B, C, D and E, where D is my node. So, my goal would be to get a route from D -> E -> A -> B -> C. This loop was opened with 1million sats.
So, I used the following command to try to get the route:

Code:
lightning-cli -k getroute id=node_C fromid=node_E msatoshi=700000000msat riskfactor=0

The result was:
Code:
{
   "route": []
}

I tried to lower the amount in 100k sats steps down to 100k sats, and also tried 500 sats, 100 sats, 1 sat, and they all returned empty route arrays.
I also tried to raise the max hops number up to 5000 just for the sake of confirmation (default is 20 hops according to docs) but still no route!
If I don't specify the fromid parameter, I can find routes but none are my loop peers!
I'm not sure I can conclude that node E is a bad routing node because it is quite a big node and with many channels!

You guys have any thoughts on this or want to make a similar experience and share results?
Like, I have a loop and its route is not found/selected to route any payments! This is kinda disappointing!


hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
August 02, 2022, 09:56:08 AM
~snip~
Let's take a step back: are you sure that the restore of hsm_secret worked out?

You could compare hashes of the hsm_secret you had backed up and the one that is running on your node right now just to make sure.
The Core Lightning backup guide explains a few steps that you could potentially have missed and that might have caused the file not to be picked up (e.g. due to wrong permissions).
https://lightning.readthedocs.io/BACKUP.html#backing-up-your-c-lightning-node

Code:
sha256sum -b /home/bitcoin/.lightning/bitcoin/hsm_secret
sha256sum -b /home/bitcoin/hsm_backup/hsm_secret

Something like this and compare the two.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
August 02, 2022, 06:10:03 AM
Still nothing?
Yep.

Your other (working) node initiated the force close and already received its part of the channel balance on-chain, confirmed?
Yes. I've received the force-closing channel's funds from my main node, and so have from my mobile's node. It's just that I can't access them. Here's the multi-sig address to see yourself, no privacy concern: bc1q8lyz0239h864putwe9ue9zug75tmvg5mx8ug7uctxkyfe4jv2fgskrflw8.

As you can see, I've spent the 150,000 sats, since they've returned to my main node's wallet, but the other 149,695 remain untouched.



I made the question in stackexchange: https://bitcoin.stackexchange.com/questions/114709/how-do-i-gain-access-to-the-on-chain-funds-with-hsm-secret
Pages:
Jump to: