Pages:
Author

Topic: The Lightning Network FAQ - page 34. (Read 32053 times)

jr. member
Activity: 37
Merit: 16
August 05, 2021, 11:24:34 PM
Why don't you try to open the channel using the command line? Here's the right command along with all parameters.

Code:
lncli openchannel 0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5 70000 --sat_per_vbyte 1

So - I used this Code to run your command on my Umbrel Node:
Code:
docker exec -i lnd lncli openchannel 0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5 70000 --sat_per_byte 1
(sat_per_vbyte did not seem to exist as parameter)

It gave me this: [lncli] rpc error: code = Unknown desc = peer disconnected

LND Log:

Code:
2021-08-06 03:49:54.363 [INF] SWPR: Manual fee rate input of 250 sat/kw is too low, using 253 sat/kw instead
2021-08-06 03:49:54.363 [INF] FNDG: Initiating fundingRequest(local_amt=0.0007 BTC (subtract_fees=false), push_amt=0 mSAT, chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, peer=0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5, dust_limit=0.00000573 BTC, min_confs=1)
2021-08-06 03:49:54.368 [INF] CHFD: Performing funding tx coin selection using 253 sat/kw as fee rate
2021-08-06 03:49:54.381 [WRN] CHFD: Unable to find funding output for shim intent: unable to create witness script, no funding keys
2021-08-06 03:49:54.413 [INF] FNDG: Target commit tx sat/kw for pendingID(692eecce3a37dcabb2be8370b6aaa58a39739f8b6f3f5685ceddfc70b0a4f376): 43178
2021-08-06 03:49:54.413 [INF] FNDG: Starting funding workflow with fjpmf23cd2c6sqp7e4wzexa6ixkttl3jabivldakwq733tw634ymjbid.onion:9735 for pending_id(692eecce3a37dcabb2be8370b6aaa58a39739f8b6f3f5685ceddfc70b0a4f376), committype=tweakless
2021-08-06 03:49:54.888 [INF] PEER: unable to read message from 0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5@fjpmf23cd2c6sqp7e4wzexa6ixkttl3jabivldakwq733tw634ymjbid.onion:9735: unable to parse message of unknown type:
2021-08-06 03:49:55.099 [INF] PEER: unable to read message from 0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5@fjpmf23cd2c6sqp7e4wzexa6ixkttl3jabivldakwq733tw634ymjbid.onion:9735: EOF
2021-08-06 03:49:55.100 [INF] PEER: disconnecting 0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5@fjpmf23cd2c6sqp7e4wzexa6ixkttl3jabivldakwq733tw634ymjbid.onion:9735, reason: read handler closed
2021-08-06 03:49:55.301 [INF] DISC: Removing GossipSyncer for peer=0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5
2021-08-06 03:49:55.301 [INF] DISC: GossipSyncer(02eb2d3580f4122482a0c9af5aa9d5f9a43574487e72ea5297d26d85de9e029f80): applying gossipFilter(start=2021-08-06 03:49:55.301988561 +0000 UTC m=+1017.171503105, end=2157-09-12 10:18:10.301988561 +0000 UTC)
2021-08-06 03:49:55.302 [INF] HSWC: Removing channel link with ChannelID(aabe578dfee04433ce8b3173f2bbe0f839f78bfabdee954ba6944622a736a28d)
2021-08-06 03:49:55.302 [INF] HSWC: ChannelLink(693925:886:1): stopping
2021-08-06 03:49:55.302 [ERR] RPCS: unable to open channel to NodeKey(0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5): peer disconnected
2021-08-06 03:49:55.302 [ERR] RPCS: [/lnrpc.Lightning/OpenChannel]: peer disconnected
2021-08-06 03:49:55.302 [INF] HSWC: ChannelLink(693925:886:1): exited
2021-08-06 03:49:58.663 [INF] SRVR: Established connection to: 0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5@fjpmf23cd2c6sqp7e4wzexa6ixkttl3jabivldakwq733tw634ymjbid.onion:9735
2021-08-06 03:49:58.663 [INF] SRVR: Finalizing connection to 0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5@fjpmf23cd2c6sqp7e4wzexa6ixkttl3jabivldakwq733tw634ymjbid.onion:9735, inbound=false
2021-08-06 03:49:59.557 [INF] PEER: NodeKey(0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5) loading ChannelPoint(8ca236a7224694a64b95eebdfa8bf739f8e0bbf273318bce3344e0fe8d57beaa:1)
2021-08-06 03:49:59.558 [INF] HSWC: Removing channel link with ChannelID(aabe578dfee04433ce8b3173f2bbe0f839f78bfabdee954ba6944622a736a28d)
2021-08-06 03:49:59.558 [INF] HSWC: ChannelLink(693925:886:1): starting
2021-08-06 03:49:59.558 [INF] HSWC: Trimming open circuits for chan_id=693925:886:1, start_htlc_id=0
2021-08-06 03:49:59.559 [INF] HSWC: Adding live link chan_id=aabe578dfee04433ce8b3173f2bbe0f839f78bfabdee954ba6944622a736a28d, short_chan_id=693925:886:1
2021-08-06 03:49:59.559 [INF] CNCT: Attempting to update ContractSignals for ChannelPoint(8ca236a7224694a64b95eebdfa8bf739f8e0bbf273318bce3344e0fe8d57beaa:1)
2021-08-06 03:49:59.559 [INF] PEER: Negotiated chan series queries with 0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5
2021-08-06 03:49:59.559 [INF] DISC: Creating new GossipSyncer for peer=0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5
2021-08-06 03:49:59.560 [INF] HSWC: ChannelLink(693925:886:1): HTLC manager started, bandwidth=0 mSAT
2021-08-06 03:49:59.560 [INF] HSWC: ChannelLink(693925:886:1): attempting to re-resynchronize
2021-08-06 03:49:59.875 [INF] HSWC: ChannelLink(693925:886:1): received re-establishment message from remote side
2021-08-06 03:50:00.680 [INF] DISC: GossipSyncer(0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5): applying new update horizon: start=2106-02-07 06:28:15 +0000 UTC, end=2242-03-16 12:56:30 +0000 UTC, backlog_size=0
2021-08-06 03:50:00.681 [INF] DISC: Received new remote channel announcement for 693925:886:1

 Huh
jr. member
Activity: 37
Merit: 16
August 05, 2021, 11:00:00 PM
I don't know if this was already asked (probably), buuut:

Are my LN Wallet & Channels on my Node connected to my btc wallet?

I'm asking because I was wondering what a User should do if his private Key
is leaked or compromised in any way to use an alternate BTC wallet on an
Umbrel Node. For it being a hot wallet it would be plausible to switch it out
once in a while, or am I beeing to paranoid?

Maybe it's just a UI thing and LN is capabale of this, but Umbrel isn't?

In short: My attempt would be to transfer the leftover UTXO's to a new
Private Key / BTC Wallet, but use the old LN Wallet & Channels for it.
legendary
Activity: 1876
Merit: 3131
August 03, 2021, 03:06:02 AM
My btc core seemed to be out of sync for about 11 Hours. I'm at 100% by now again.
Could this be a problem?

I checked my logs and I kept getting the following error.

Code:
02fbb789c95ee3cfd4d5313889070720599d4d4b7a9577e2f01a3042b831c65e01-chan#53: Peer transient failure in CHANNELD_NORMAL: channeld WARNING: Bad tx_signatures [redacted]

Since your node was out of sync, it could not verify if the funding transaction had been confirmed while my node kept sending "funding_locked" message. Everything looks good now. It could also be the reason why you were not able to open a channel to me. You should keep your Bitcoin node synced at all times. If someone broadcasts an outdated commitment transaction, you have limited time to publish a penalty transaction.

I'll try it later again, promised! Don't close your channel Cheesy

Take your time and don't worry about it. I will be fine even if you don't open a channel back to me.
jr. member
Activity: 37
Merit: 16
August 02, 2021, 09:18:28 PM
SSH keeps saying I entered the wrong password  Roll Eyes ... thats why I use GUI at the moment.
"peer disconnected" Is what I get as Error. I already restarted my Node.

My btc core seemed to be out of sync for about 11 Hours. I'm at 100% by now again.
Could this be a problem? Running Umbrel btw. I'll try it later again, promised! Don't close your channel Cheesy
legendary
Activity: 1876
Merit: 3131
August 02, 2021, 07:41:53 PM
I'm trying to open a Channel to your Node right now with 70k Sats. RTL did load indefinitely.
I get a "502 Bad Gateway"-Error. I'll try it again, maybe it's just a small hick-up? Never had this problem, but I
did not open too many channels by now Tongue

Try restarting RTL. I have never had any problems with it, but I am running c-lightning as the backend. Why don't you try to open the channel using the command line? Here's the right command along with all parameters.

Code:
lncli openchannel 0273da0a525390c36857841e208f1d289275c76ebfa7ecfde697c6cbf4f235b4f5 70000 --sat_per_vbyte 1
jr. member
Activity: 37
Merit: 16
August 02, 2021, 07:21:52 PM
Hi,

"You have exceeded the limit of 2 personal messages per day. Buying a Copper membership may increase your limit."

...so I'll write here. I'm trying to open a Channel to your Node right now with 70k Sats. RTL did load indefinitely.
I get a "502 Bad Gateway"-Error. I'll try it again, maybe it's just a small hick-up? Never had this problem, but I
did not open too many channels by now Tongue
 
legendary
Activity: 1876
Merit: 3131
July 31, 2021, 03:21:10 PM
So they are now beginning to push out their hosted "node in a box" solution.
Don't know how much traction it's going to get but it's another way for people to use lightning so unless it's total garbage I see it as a good thing.

Since all the signing is done on user's device, such node will probably not able to route payments. The only advantage over some mobile wallet I can think of is ability to use advanced features like: dual-funding, multifund, keysend payments.
full member
Activity: 330
Merit: 102
July 27, 2021, 04:02:35 AM
There can be an cyber attack if the if the payment channel become crowded and thus participants might not be able to get back their money. These bugs needed to be solved.
legendary
Activity: 3458
Merit: 6231
Crypto Swap Exchange
July 22, 2021, 07:14:26 AM
Just saw this pop up: https://blockstream.com/2021/07/21/nl-greenlight-by-blockstream-lightning-made-easy/
So they are now beginning to push out their hosted "node in a box" solution.
Don't know how much traction it's going to get but it's another way for people to use lightning so unless it's total garbage I see it as a good thing.
If I have a free moment I'll look at it over the weekend. If someone else gets to do it earlier that would be good to Wink

-Dave
legendary
Activity: 1876
Merit: 3131
July 16, 2021, 02:27:42 PM
Just as a thought bubble question - would having two or three 0.001 channels to the one larger node be better or hinder itself Vs one larger 0.003, 0.004, 0.005 channel?  (to my thinking two channels out of three could be unbalanced while one is still freed up for more traffic)

Since the payments can be split across multiple channels, I wouldn't be surprised if a single payment exhausted your liquidity in all three channels at once. I would open more than just one channel to the same node if the funds in my existing channel would be often moved the other side despite high fees. That's the only workaround until splicing-in becomes available.

( It'd probably be more likely BTC 0.0011 per channel to enable 0.001 to be sent in one piece - per channel and the other 0.0001 to cover opening/closing fees...)

You could save a ton of money on the fees by opening multiple channels in a single transaction.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
July 16, 2021, 09:12:33 AM
@Timelord2067: many different small channels makes it much more work to balance all of them. Even worse: opening that many channels probably costs more in fees than making only on-chain transactions.
legendary
Activity: 3626
Merit: 2209
💲🏎️💨🚓
July 16, 2021, 08:59:02 AM
"If someone gifted me BTC 10.0 (  Grin ) I probably would open a thousand channels with BTC 0.001 capacity."  ( It'd probably be more likely BTC 0.0011 per channel to enable 0.001 to be sent in one piece - per channel and the other 0.0001 to cover opening/closing fees...)

In my opinion, 0.001 BTC per channel is too little. You would quickly run into liquidity problems and most of your channels would be unbalanced. Still, that's a better strategy than none! It might actually work to some extent.

Basically, I'd be looking at cornering a portion of the low end $1 - ~$30 transactions - I'd cover all gaming sites, low cash payment sites such as coffee or snack foods and would tap into nodes with about 20 - 50 open channels.  Let even smaller operators with less than twenty channels connect to those smaller nodes then my BTC 10.0 block would be like a cross-city expressway.




Just as a thought bubble question - would having two or three 0.001 channels to the one larger node be better or hinder itself Vs one larger 0.003, 0.004, 0.005 channel?  (to my thinking two channels out of three could be unbalanced while one is still freed up for more traffic)

legendary
Activity: 1876
Merit: 3131
July 14, 2021, 03:01:20 AM
It goes without saying if bitcoin were to become worth $1M, or even $100k, then it might be very tempting to cash that amount out and install a much small amount in its place.

By the time that happens, splicing-out will have been already implemented. It will allow them to remove some coins from that channel without closing it.

With BTC 10 I'd probably go the other way and open 1,000 channels worth BTC 0.001 each.  That would enable me to  have a much wider spread of nodes / regional access than just sending coins backwards and forwards to just one other node.

In my opinion, 0.001 BTC per channel is too little. You would quickly run into liquidity problems and most of your channels would be unbalanced. Still, that's a better strategy than none! It might actually work to some extent.

Which node do they connect to?

It's a channel between ACINQ and OpenNode.com

If you have at least two channels with a lot of capacity, you potentially can charge higher fees because some transactions would need to be routed through your node, and you would potentially have a higher volume of transactions route via your node for similar reasons.

Your connectivity is far more important if you want to route a higher volume of transactions. I have a fairly large channel to Bitfinex (0.05 BTC) and a small one to Nicehash (0.01 BTC). Apparently, I am providing the shortest and the cheapest route for both directions as my Nicehash channel keeps being exhausted all the time at either of the sides. My Bitfinex channel remains balanced since it's much bigger.

To my knowledge, it is not possible to route a portion of a payment through a channel. So if you have channels with BTC 0.001 of capacity on each side, you would be unable to handle any transactions above this amount.

Payments can be split into many small chunks and sent through different routes. See Atomic Multi-Path Payments.
copper member
Activity: 1610
Merit: 1898
Amazon Prime Member #7
July 14, 2021, 02:15:17 AM
With BTC 10 I'd probably go the other way and open 1,000 channels worth BTC 0.001 each.  That would enable me to  have a much wider spread of nodes / regional access than just sending coins backwards and forwards to just one other node.
If you have at least two channels with a lot of capacity, you potentially can charge higher fees because some transactions would need to be routed through your node, and you would potentially have a higher volume of transactions route via your node for similar reasons.

To my knowledge, it is not possible to route a portion of a payment through a channel. So if you have channels with BTC 0.001 of capacity on each side, you would be unable to handle any transactions above this amount.
legendary
Activity: 3626
Merit: 2209
💲🏎️💨🚓
July 14, 2021, 01:46:42 AM
i just saw, that some days ago acinq and opennode opened the biggest channel until today with 10 btc capacity

It goes without saying if bitcoin were to become worth $1M, or even $100k, then it might be very tempting to cash that amount out and install a much small amount in its place.

With BTC 10 I'd probably go the other way and open 1,000 channels worth BTC 0.001 each.  That would enable me to  have a much wider spread of nodes / regional access than just sending coins backwards and forwards to just one other node.

Which node do they connect to?
full member
Activity: 154
Merit: 177
July 13, 2021, 12:56:02 PM
@Rath: did you ever write in the forum about the topic lnd vs c-lightning and why you made the switch from one to the other? might be interesting for others (it was for me) - we need that lightning network subforum. can i do anything to make that happen?

We discussed it in this topic. Check out this post first and then take a look at the 39th page. As for the subforum, there is nothing we can do beside waiting and talking about Lightning as usual.

thanks, i am reading the whole thread right now (over the next few days probably  Roll Eyes)

i just saw, that some days ago acinq and opennode opened the biggest channel until today with 10 btc capacity
legendary
Activity: 1876
Merit: 3131
July 13, 2021, 02:55:23 AM
@Rath: did you ever write in the forum about the topic lnd vs c-lightning and why you made the switch from one to the other? might be interesting for others (it was for me) - we need that lightning network subforum. can i do anything to make that happen?

We discussed it in this topic. Check out this post first and then take a look at the 39th page. As for the subforum, there is nothing we can do beside waiting and talking about Lightning as usual.
full member
Activity: 154
Merit: 177
July 13, 2021, 02:47:31 AM
I'm not even sure if triangles are actually good for the network. It's like we are isolating all other peers in the network out of our tiny triangle. I think it's better to try to open channels to anyone that is not connected to any of our peers, exactly to avoid triangles and loops between just a couple of users.
I think this is like if we stitch together 2 arms of an octopus. If we do that, then we have 2 less arms to grab another octopus 2 arms.

you are probably right, i think i got carried away with the new "hip" thing to do on lightning...  Roll Eyes

@Rath: did you ever write in the forum about the topic lnd vs c-lightning and why you made the switch from one to the other? might be interesting for others (it was for me) - we need that lightning network subforum. can i do anything to make that happen?
hero member
Activity: 1176
Merit: 647
I rather die on my feet than to live on my knees
July 12, 2021, 06:10:47 PM
nice one - do you run by any chance behind tor and could try to connect to my node?
Code:
lightning-cli connect 025b5150c66f3ea41367829f6e4639c772fe4c7939b71933802233493e6e972a8e
Yesterday, I asked darkv0rt3x to try connecting to your node and it worked.

awesome thank you guys - do you know, is he only behind tor?

Another dual-funded channel here! Smiley
As you can all see, it's not that difficult. Who will be the third bitcointalk member to open a dual-funded channel with me? Cool

If any of you were thinking about setting up a Lightning node, now might be the right time. Transaction fees have been extremely low for the past few days.

i was just thinking we could also do triangles (or some more obscene geometric formations) in the future - or are they absolete with dual-funded channels?

I'm not even sure if triangles are actually good for the network. It's like we are isolating all other peers in the network out of our tiny triangle. I think it's better to try to open channels to anyone that is not connected to any of our peers, exactly to avoid triangles and loops between just a couple of users.
I think this is like if we stitch together 2 arms of an octopus. If we do that, then we have 2 less arms to grab another octopus 2 arms.
legendary
Activity: 1876
Merit: 3131
July 12, 2021, 06:00:14 PM
How would a direct channel be like? I take the example of using the same node (Bob) to simplify. Isn't that a direct channel?

Your example looks like this: Alice 0.1 BTC <---> Bob 0 BTC, Bob 0 BTC <---> Charlie 0.1 BTC

Alice has a direct channel with Bob and so does Charlie. Alice and Charlie are connected indirectly through Bob. Oh, and you have to specify how many coins Bob has on his side of the channel with Charlie. If he has less than 0.02 BTC then he can't route Alice's payment.

A new output? Doesn't it update the balance of the initial commitment transaction?

A commitment transaction can have up to four different types of outputs: local balance, remote balance, offered HTLCs and received HTLCs. The last two cannot be added to or subtracted from either side's balance because otherwise it would not be possible to enforce the condition which I mentioned in my previous post.

What's more, each party has a different commitment transaction reflecting the same state of the channel because one party offers an HTLC and the other receives it. Also, the asymmetry enables penalties if an old state of the channel is broadcast.

HTLC outputs in commitment transactions actually include an absolute timelock (a specific blockheight) as well as a relative timelock. I won't explain it right now. It would probably confuse you even more.

For allowing Alice to make the commitment transaction? Could you explain why Bob would need that?

Bob forwards Alice's payment (HTLC) to Charlie. Bob needs to make sure that he will get his money back if Charlie does not reveal the payment pre-image. Alice also signs a new commitment transaction with Bob for the same reason.

I may haven't understood the entire post, but what I did got is that the “locktime” of the closing transaction takes place once it's mined. I'd really want to have an explanation of the reason in which two on-chain transactions are required instead of one.

It's because of the relative timelock. You can't reliably tell when a transaction enters the mempool. If you used an absolute timelock, you would have to update the commitment transaction every time a new block is mined. Instead, a relative timelock is included in the output of the commitment transaction which reflects your balance in the channel. It can be spent either using your private key after the timelock has expired or immediately using yours and other party's revocation key for that particular transaction. You need the second transaction to move those coins to your wallet.
Pages:
Jump to: