Pages:
Author

Topic: Lightning Network Observer - page 32. (Read 13809 times)

hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
June 14, 2022, 07:00:04 PM
I was able to restore the database so I must have had the right hsm_secret ?  I guess I have to wait now for the node to finish syncing to see if we have the keys to anything...  Or maybe the node is just working?  That would be odd.

My understanding is the sqlite database backup would not restore with the wrong hsm_secret.
I'm not 100% sure as I haven't yet had to restore a node myself, so I can't comment on that for sure but I'd tend to agree with your assessment.

The HARDEST POT to watch boil:


What is this UI, by the way? I've never seen it myself so far.

I put a LOT more work, time and value into LND.  Through the last 7 months I have run the CL node, I am feeling a LITTLE like it is a more well rounded smartly designed product.
Interesting! I have very limited experience with LND, but the theory of using the backup plugin and restoring a backup with is indeed pretty straight forward. I'm looking forward to seeing how it turns out in practice!
Did you set it up to save the backups on an external drive?

Like shown here?
[5] Initial channel state backup
Code:
cd ~/plugins
backup/backup-cli init --lightning-dir /home/bitcoin/.lightning/bitcoin/ file:///mnt/share/lnbackup/backup.bkp
legendary
Activity: 3766
Merit: 5146
Note the unconventional cAPITALIZATION!
June 14, 2022, 06:50:30 PM
I want to add this.

I have only run LND and CL nodes.

I put a LOT more work, time and value into LND.  Through the last 7 months I have run the CL node, I am feeling a LITTLE like it is a more well rounded smartly designed product.

The plugin architecture is a major strength.

I put WAY MORE work into securing backups for the LND node... but when the rubber hit the road?  It is shaping up to look like the CL node will fair better.  And that is with truly reckless behaviour on my part.  In retrospect I was not careful at ALL about how I performed the setup and maintenance.  I think the reason for this was I intended for the thing to be an experiment with a few 100k sats on it just to say I was running it.  And I ended up putting nearly the same amount on ~13 channels with it as >40 on the LND node.

I am no genius when it comes to this stuff... as can be seen by my most recent issues... but perhaps hast gives me the credit to say CL is the more idiot proof as well...  In fact, if I keep running a node after this ordeal I might just stick with the Blockstream build...

All that said, I have recovered nothing yet. LOL.  I reserve the right to take it all back.  I might think just the opposite in the end.
legendary
Activity: 3766
Merit: 5146
Note the unconventional cAPITALIZATION!
June 14, 2022, 01:46:06 PM
Update to my drama:

I was able to restore the database so I must have had the right hsm_secret ?  I guess I have to wait now for the node to finish syncing to see if we have the keys to anything...  Or maybe the node is just working?  That would be odd.

My understanding is the sqlite database backup would not restore with the wrong hsm_secret.

Anyway... the CL node might actually SURVIVE this torture.  Not 100% sure about the LND node.  At the same time I still feel like I have a long way to go.  All the TOR addresses look different now, and I have no idea what the node ID(s) is.  As long as I have the keys to force closed channels...

The HARDEST POT to watch boil:

hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
June 13, 2022, 05:27:29 PM
To be honest, I also trust my channel partners (a few of you are right here) and am entirely comfortable with them force closing the channels as they see fit.  I also realize I am vulnerable now, and those partners could decide to broadcast a channel state I may not be able to argue with.  I am hoping they will not.
It's not even necessarily about their honesty; it's that you're at risk of accidentally cheating. And force closing may also happen without their notice since there are certain automatic timeouts, so don't be mad if someone happens to force close your channel. They probably didn't do it manually / on purpose. Wink And as I pointed out, force closes will be better / safer for you (at the cost of some mining fees) since you won't be able to 'accidentally cheat' by publishing old channel states when attempting recovery.

But honestly my main hope is I can still produce the private keys to the addresses the close transactions will send my funds to.
Don't you have the hsm_secret? If so, your on-chain addresses are safe, no worries!

One nice bit of info for our CL friends here... if you ever get in trouble this is what the respiblitz devs are suggesting.  I assume if you are using the backup plugin the sequence would be similar.

https://gist.github.com/openoms/3516cd8f393d69d52f858c3d47c9e469
Yeah it looks like this caters exactly to users of Core Lightning's backup plugin!



Is there an IOS app that can use Lightening Network? I know of CashApp. Any others?
I'd recommend actual non-custodial node applications.
[1] https://breez.technology/
[2] https://phoenix.acinq.co/
[3] https://muun.com/
newbie
Activity: 7
Merit: 0
June 13, 2022, 01:27:53 PM
Is there an IOS app that can use Lightening Network? I know of CashApp. Any others?
legendary
Activity: 3766
Merit: 5146
Note the unconventional cAPITALIZATION!
June 13, 2022, 01:07:30 PM
One nice bit of info for our CL friends here... if you ever get in trouble this is what the respiblitz devs are suggesting.  I assume if you are using the backup plugin the sequence would be similar.

https://gist.github.com/openoms/3516cd8f393d69d52f858c3d47c9e469
legendary
Activity: 3948
Merit: 3191
Leave no FUD unchallenged
June 13, 2022, 12:41:22 PM
LN Finally crossed the  4,000 BTC threshold for the first time.

for the first time.. (treat next sentence as humour)
so you are predicting it will DROP and it might hit 4000  a second time, seems your not confident in future growth

Total capacity is something that will fluctuate naturally.  But the overall trend is clearly upwards.

Perhaps you could do with a little less confidence and a little more modesty, given how completely and utterly wrong you are half the time you say anything.  You act like a know-it-all but you're mostly just an obnoxious windbag with a petty grudge.  Current capacity is currently 4012 BTC, but there's nothing written in stone which says it'll never drop below 4000 again. 
legendary
Activity: 3766
Merit: 5146
Note the unconventional cAPITALIZATION!
June 13, 2022, 06:57:34 AM
~
Yuck! Good luck with the recoveries!
As for LND, I have no idea; for Core Lightning did you use its backup plugin? If not, I'd prefer to prevent running the risk of losing one (or more) channel's full balance and rather ask counterparties to force close them (or wait until that happens). If you are 100% certain that the backup doesn't differ from the latest channel state, you can restore it safely and prevent any losses. But honestly at current mempool sizes, force closing channels isn't too expensive and it's the safer route, in my opinion.

I am not 100% certain as to the integrity of my CL backups.  I have them.  I have the hsm_secret and a database backup.  But I will need to finish with the LND recovery first.  And that will require the node be brought back up.  Looks like that will be end of the week.



To be honest, I also trust my channel partners (a few of you are right here) and am entirely comfortable with them force closing the channels as they see fit.  I also realize I am vulnerable now, and those partners could decide to broadcast a channel state I may not be able to argue with.  I am hoping they will not.  But honestly my main hope is I can still produce the private keys to the addresses the close transactions will send my funds to.

We will see.

And I see the logic you are saying about the channels being force closed before I try my backup.  I really only have three risks right now.

1.  I have the wrong hsm_secret  (no idea)
2.  The backup script, which runs at shutdown, was not able to do so in a way the completed the database backup. (No way to tell if it is good until I get far enough that it is decrypted by the hsm_secret, I presume)
3.  My channel partners decide to take advantage of me.
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
June 12, 2022, 06:38:30 PM
~
Yuck! Good luck with the recoveries!
As for LND, I have no idea; for Core Lightning did you use its backup plugin? If not, I'd prefer to prevent running the risk of losing one (or more) channel's full balance and rather ask counterparties to force close them (or wait until that happens). If you are 100% certain that the backup doesn't differ from the latest channel state, you can restore it safely and prevent any losses. But honestly at current mempool sizes, force closing channels isn't too expensive and it's the safer route, in my opinion.
legendary
Activity: 3766
Merit: 5146
Note the unconventional cAPITALIZATION!
June 12, 2022, 03:51:07 PM
Ugh... massive hardware failure.  Two nodes down.  Might need a little advice and moral support for what to do...

Going to try to recover the LND channels first.



LOL.

LND:
Seed words (verified them by checking the zpub with an azeed tool)
Static Channel Backups, including a recent one since the last change

I am assuming with this set of things I will see the blockchain download (gonna take a moment) and then all my channels will attempt to close, and hopefully funds start to make their way back on chain.

CL:
Have seed words, and hsm_secret (99% sure these are the right ones)
Have a very recent lightningd.sqlite3.backup file from right before the drive died.

Just hoping with the above nothing is incorrect, and I am not sure what recovery looks like on this node.

I will do the LND node first... and then the CL node.

If I have channel(s) with you, PLEASE do not force close them yet.  Some folks think if the channel DB is good, and the hsm_secret is right I might be able to bring the CL node back up.  I doubt this, but time will tell...

*sigh*
legendary
Activity: 2268
Merit: 16328
Fully fledged Merit Cycler - Golden Feather 22-23
June 11, 2022, 12:15:15 AM
LN Finally crossed the  4,000 BTC threshold for the first time.

for the first time.. (treat next sentence as humour)
so you are predicting it will DROP and it might hit 4000  a second time, seems your not confident in future growth

When I checked the news and opened 1ml.con myself, the capacity was actually below 4,000. It was at 3,999.53.
So yeah, I am not certain of future growth, extrapolating is going to zero, or it will cross 4,000 again (multiple times).
Treat the previous sentence as humor.
legendary
Activity: 4410
Merit: 4766
June 10, 2022, 07:07:33 PM
LN Finally crossed the  4,000 BTC threshold for the first time.

for the first time.. (treat next sentence as humour)
so you are predicting it will DROP and it might hit 4000  a second time, seems your not confident in future growth
legendary
Activity: 2268
Merit: 16328
Fully fledged Merit Cycler - Golden Feather 22-23
June 10, 2022, 06:26:55 PM
LN Finally crossed the  4,000 BTC threshold for the first time.



Lately, the growth has been slow, but steady.
People are starting to get the details of the implementation, rather than raw growth metrics.
Anecdotal evidence tells me channel size comes second to channels management (liquidity balances , routing fees etc).

hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
June 05, 2022, 09:07:28 AM
I believe that we have only started to scratch the surface with "what Lightning is". It might not be merely for cheap/fast payments as originally advertised. Bitcoin was first conceptualized to be a "Peer-to-Peer Electronic Cash System" too, but obviously it has become much more as we started going deeper in understanding of what it can truly be.

Shower thought, NO KYC exchanges built on Lightning, with NO KYC as the value proposition. Is this possible?
Do you mean crypto exchanges or fiat on-/off-ramps?
The latter is happening with Bisq (hopefully soon)!


AGD
legendary
Activity: 2070
Merit: 1164
Keeper of the Private Key
June 05, 2022, 02:28:19 AM
FEES AND CHANNEL BALANCE... thoughts and questions!

Hello lightning observer!!!

OK.  It's time for a post in here, isn't it?

I have some questions that some of you galaxy brains might be able to answer.  I have been running an LND node since 2019 (not counting the one I had in 2018 that I killed), and only recently added a CLN node about 6 months ago.  My questions have to do with both, but the LND node sees much more traffic with between 200-2000 transactions routed a day generally.  

I have 4 channel state scenarios I see.  But only want to really consider the LAST one.
  • Some channels seem to want to almost auto balance themselves.  In this case I assume my channel partner is a little OCD and is doing that.  I have tried some of that myself, but it does not suit my personality really.  I am more interested in using passive techniques to balance my channels more organically.
  • A few channels seem to slosh back and forth entirely.  I have some fairly large (~0.16BTC) channels with the exchanges that have come on board, Bitfinex, Kraken. And these channels like to slosh back and forth wildly.  Makes sense.  Someone wants to deposit $3k worth of bitcoin on Kraken?  Well my channel can handle that, and then same with withdrawals.
  • Some of my channels just don't do much.  I assume these are nodes with low traffic and low use.  I have begun to close these to instead open channels with folks that fall into the other three categories.  Waste of time, these.
  • Then there is my fourth type I would like your help with!  There are the channekls that see great deals of action in ONE DIRECTION, then stop.  In general, I open a channel to an channel partner, and the all the liquidity rushes over to one side then just stops.  Boom.  Done.  It can go either way, but generally it goes to their side.

I see two ways to deal with these:

1.  Once the liquidity is over to their side, then just close the channel, and open a new one.  Lather, Rinse, Repeat.
2.  Coax the liquidity back over to the dry side of the channel.
(3. Well I could also just leave it alone and end up with a channel that is effectively #3 up there.  And that is pretty much what has been happening.)

So.  The easy solution is to close and reopen the channel.  I have even notice that certain commercial LSPs you open channels to, once the liquidity has all rushed over to the other side then slam the channel closed themselves.  Wham, bam, thank you mam.  And actually, I plan to start setting those channels back up with a fee structure that will make more sats than it costs to open and close the channel, and start being that kind of liquidity... In fact these sorts of things may be the most profitable of all.  

But my bias is to basically run as much liquidity as I can without losing money.  So I am glad to charge NO FERES AT ALL if I can figure out how to keep the liquidity moving back and forth...  

So that's the question.  What strategy would you guys use to, once all the liquidity has flowed to one side, coax it back over to the other?  In fact some of my channels with various bitcointalk forum users are the main ones that work this way... I honestly do not need to make any money off a channel we share.  I just want to help make the LN be a success.  I would even consider closing and reopening the channel over and over... but in that case I would probably want to make a couple thousand sats on the the life of the channel to make that worth doing...  So I am more interested in sustaining open channels without closing at all (which, frankly is the point right?)

Hope you are all well!

Any ideas?

PS.  I forgot to mention one thing.  I am biased towards ZERO FEES.  Like I said I just want the damn lightning network to actually succeed.  But I do not want to LOSE money.  So though I prefer very low fees, I do not mind tweaking them for the sake of accomplishing the ability to keep a channel open definitely... The incentives for running a lightning node are actually somewhat elegant the more I think about them!







Problem with open/drain liq/close/reopen is, that you lose inbound, so your entire node will be unbalanced until up to a point where you have no inbound left and your node`s routing capability is dead. To keep it balanced I prefer rebalancing nodes, like bfx or even loop. As long as the rebalancing fee is less than my earnings I would prefer this strategy to keep the channels open and my whole node balanced as much as possible.
legendary
Activity: 2898
Merit: 1823
June 03, 2022, 12:06:27 AM
What if NO KYC services built directly on top were the value proposition of Lightning? Many people in the community don't like KYC, no? Would that help onboard more users?

Absolutely. For me, Lightning is about cheap and fast payments as well as privacy. It's definitely possible that you also have legal advantages when building something fully off-chain instead of using on-chain payments, but I'm not sure about that.

In general, it's been proven that crypto-only casinos are easier to run long-term and I believe it's actually the standard model today. I may be wrong, though, since I'm not a big betting man.


I believe that we have only started to scratch the surface with "what Lightning is". It might not be merely for cheap/fast payments as originally advertised. Bitcoin was first conceptualized to be a "Peer-to-Peer Electronic Cash System" too, but obviously it has become much more as we started going deeper in understanding of what it can truly be.

Shower thought, NO KYC exchanges built on Lightning, with NO KYC as the value proposition. Is this possible?
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
June 02, 2022, 02:41:33 PM
I don't see why it shouldn't work; every move could be encoded in a mSat-amount payment - unlike smart contracts on Ethereum for instance, more or less activity in a channel doesn't put more strain on the network (channel / blockchain respectively), so you can absolutely use payment channels for high-frequency 'data transfers'. The utility or need for it, can be questioned, but it's fun from a technological perspective.

I guess the rub would be failed payment.  So if the site required you to open and fund a channel?  Then I think it would work well, but that's not going to be what most users do.  On the other hand if people using hosted wallets wanted to play then things like WoS would usually be reliable, AND most likely have that channel open too.
Definitely, good point - I was speaking from the assumption of having an open channel with them directly, pushing sats back and forth within a single channel. Of course as node operators we know in the current state the network doesn't always guarantee reachability, so using it as the base for the actual game moves might be a bad idea as of right now.

That said... I think it makes the most sense to have a "deposit" like payment to be made with a withdrawal when you actually take the chips off the table.
Yes, the traditional 'deposit > play > withdraw' scheme will be the most reliable, but definitely not as cool as actually sliding the chips over mid-game.
legendary
Activity: 3766
Merit: 5146
Note the unconventional cAPITALIZATION!
June 02, 2022, 01:50:32 PM

I don't see why it shouldn't work; every move could be encoded in a mSat-amount payment - unlike smart contracts on Ethereum for instance, more or less activity in a channel doesn't put more strain on the network (channel / blockchain respectively), so you can absolutely use payment channels for high-frequency 'data transfers'. The utility or need for it, can be questioned, but it's fun from a technological perspective.

I guess the rub would be failed payment.  So if the site required you to open and fund a channel?  Then I think it would work well, but that's not going to be what most users do.  On the other hand if people using hosted wallets wanted to play then things like WoS would usually be reliable, AND most likely have that channel open too.

But wouldn't that be a trip to have the chips, when they are slid over to you be actually money in your pocket so to speak?

That said... I think it makes the most sense to have a "deposit" like payment to be made with a withdrawal when you actually take the chips off the table.  Thereby avoiding people going south etc.

Anyway... some day
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
June 02, 2022, 01:12:09 PM
What if NO KYC services built directly on top were the value proposition of Lightning? Many people in the community don't like KYC, no? Would that help onboard more users?
Absolutely. For me, Lightning is about cheap and fast payments as well as privacy. It's definitely possible that you also have legal advantages when building something fully off-chain instead of using on-chain payments, but I'm not sure about that.
In general, it's been proven that crypto-only casinos are easier to run long-term and I believe it's actually the standard model today. I may be wrong, though, since I'm not a big betting man.

One of my first channels I ever opened was to them! Wink  I don't play much just because I am not a great fan of -EV games...  But it's fun to dump a few sats at it from time to time.  But it is STILL open and has routed afew million SATS.  Not my busiest channel, but been up since 11/2019!
This sounds great; I'll open one with them as well, then! I meant to try their platform anyway, ever since I saw it in Breez's 'apps' section.

I was thinking a poker game that is 100% lightning would be cool...  My original thought was all the hands would literally pay out to lightning addresses each time.  But I suppose that would never be foolproof.  Someone DID make one that works in a more standard fashion. 

https://lightning-poker.com/
I don't see why it shouldn't work; every move could be encoded in a mSat-amount payment - unlike smart contracts on Ethereum for instance, more or less activity in a channel doesn't put more strain on the network (channel / blockchain respectively), so you can absolutely use payment channels for high-frequency 'data transfers'. The utility or need for it, can be questioned, but it's fun from a technological perspective.
legendary
Activity: 3766
Merit: 5146
Note the unconventional cAPITALIZATION!
June 02, 2022, 07:41:22 AM
Shower thought. I saw this roulette game built on top of Lightning, https://lightning-roulette.com/

NO KYC, No registration required, No privacy-leak risks. It's just the casino, you, and the Lightning Network. It's like DirectBet, but off-chain. What if NO KYC services built directly on top were the value proposition of Lightning? Many people in the community don't like KYC, no? Would that help onboard more users?

One of my first channels I ever opened was to them! Wink  I don't play much just because I am not a great fan of -EV games...  But it's fun to dump a few sats at it from time to time.  But it is STILL open and has routed afew million SATS.  Not my busiest channel, but been up since 11/2019!

And yes.  If the lightning network can work, I believe we will see non-KYC types of services a major driver.

Well would ya look at that?!?  I am having dinner tonight!


I was thinking a poker game that is 100% lightning would be cool...  My original thought was all the hands would literally pay out to lightning addresses each time.  But I suppose that would never be foolproof.  Someone DID make one that works in a more standard fashion. 

https://lightning-poker.com/

Pages:
Jump to: