Questions tagged [lightning-network]

Proposed payment system leveraging payment channels which allow re-negotiation of balances that finally get executed on the Bitcoin blockchain.

Filter by
Sorted by
Tagged with
0
votes
2answers
18 views

Exact syntax for lightning-cli txprepare

I have tried many different forms but I cannot prepare a transaction with lightning-cli txprepare from the Linux prompt. lightning-cli txprepare [{\"bc1qvzr0mwps952d0cdmchyd2pe5rlee5tfces5dzf\":\"all\...
0
votes
1answer
23 views

Lightning Network LND - Retrieve payment by hash

How do I get an outgoing Payment by paymentHash using LND REST API? I know that GET /v1/payments returns all payments, but I would like to get one in particular, not all as there may be thousands. ...
3
votes
3answers
103 views

Adversarial Question: Why not fork LND Loop and provide the service freely/cheaply?

Adversarial Question: Now that LND Loop is paid product, what stops someone from forking the software and selling the product themselves, or integrating it freely? The only reason I can think of is ...
1
vote
1answer
47 views

When will my Lightning channel be closed?

I have a force closed channel from lnbig.com and it has been pending in closing state for over 2 weeks (42600+ blocks). When might it be closed so I can request a new one? What are the default/...
2
votes
0answers
24 views

How private is Strike by Zap? [closed]

I am asking myself how much information can Strike theoretically collect on its users? Does Lightning have any benefits in this case? https://medium.com/@JimmyMow/announcing-strike-by-zap-4f578c7c8984
5
votes
2answers
64 views

Can failed Transactions figure out which Channel is exhausted?

According to information in this LND PR the sender of an TemporaryChannelFailure can be determined: In many cases it is impossible for the sender to determine which of the two nodes in a pair is ...
3
votes
2answers
570 views

What happens with the bitcoin locked in the payment channel if both sides lose the backup?

If none of the sides closes the channel, is the coin locked up forever?
0
votes
1answer
50 views

What is the 'tlv_payload' in lnd route?

When creating a custom route, if you use the queryroutes from lnd it sometimes with tlv_payload set to either True or False. How does the node figure whether to set this flag? I cant seem to find ...
3
votes
3answers
95 views

how are lightning network payments instant and secure at the same time?

I have a question regarding lightning network. It's a bit of a long question so please bear with me. If have 1 bitcoin in my wallet and buy an item costing that amount from a shop. I leave the shop ...
2
votes
1answer
33 views

What additional considerations are there for dual-funded payment channels?

Naively, it seems like a dual-funded channel should not be much more complicated than a single funded channel; You'd just have an extra input from Bob and it would be reflected in the balances of the ...
0
votes
1answer
43 views

c-lightning missing outputs

A few days ago I did a submarine swap in order to rebalance a channel of mine. I opted to be refunded on-chain using a brand-new address generated with c-lightning newaddr command. I used the p2sh ...
1
vote
1answer
25 views

Are both CSV and nLocktime unnecessary in Eltoo?

The Eltoo paper says "Notice that we could use nSequence for this purpose, but due to the interplay with OP_CSV we opted to use nLocktime". Now that Lau showed CSV not to be necessary, does that mean ...
2
votes
1answer
28 views

What happens if the commitment tx fee is too low?

How often are commitment tx fees negotiated? Is it every time a payment is made and a new commitment transaction is formed? What about if there are no payments but both nodes see that the on chain ...
0
votes
2answers
22 views

How to get the capacity of remote channel in Eclair?

I want to query an Eclair node for properties of a channel which I'm not a party of. Obviously, this information is in the local view of the network graph and is used for routing. However, the API ...
4
votes
2answers
194 views

Lightning Node High Availability/High Throughput

Are there any resources/best practises on running a highly available/high throughput lightning node? If my lightning service where to take off, should I be running multiple lightning nodes or a single ...
4
votes
1answer
309 views

In LN, how could a payer prove to 3rd party that he indeedly made a payment to the payee?

For regular on-chain payments, a txid can prove at least a transferring of value indeedly happened, at a specific time, despite that it may be totally irrelevant. For example, a malicious user can ...
0
votes
1answer
29 views

Lnd - how to open a double-funded channel

I know about lncli openchannel, however this means I will open a (bidirectional) channel with my peer, but initially just my side will have some balance. Let's say I agree with a collegue running ...
2
votes
2answers
66 views

Lightning - why are commitment transactions supposed to use different keys

In the paper BIP32 and deterministic key derivation are mentioned. But why given that two peers directly exchange messages (i.e., there is no need to obscure anything)? Alice always exchanges state ...
0
votes
1answer
18 views

How to obtain your nodeID (QR code) in eclair-mobile?

I want someone to open a direct (no hops between us) channel to me in lightning (she will be the funder, I'll be the fundee). How can I get the QR code of my node in my eclair wallet to show to the ...
1
vote
2answers
61 views

Can someone explain how an HTLC is redeemed?

I'm looking at Bolt 3 in the Lightning rfc. My question is about how a HTLC is redeemed. Example HTLC script for reference: # To remote node with revocation key OP_DUP OP_HASH160 <RIPEMD160(SHA256(...
2
votes
1answer
48 views

Eltoo channel - can opening be off-chain

In Eltoo the set-up phase is similar to Lightning. You fund a n-of-n multisig (usually 2-of-2). Of course you don't want to publish this until you have a bail-out possibility - called "settlement ...
2
votes
2answers
117 views

What is the rationale for the Lightning network's path length limit (20 hops)?

A sender in the Lightning network can choose a path with up to 20 intermediaries (BOLT4). Tor is another network that uses onion routing for anonymity. However, in Tor all paths have 3 intermediaries,...
2
votes
1answer
22 views

Does node order have meaning in a JSON describing the Lightning network graph?

LN clients can export their view of the network as a JSON file. For instance, in a file obtained from LND, a channel (edge) is described by this structure: { "channel_id": "555479871492063233", ...
2
votes
1answer
74 views

Lost funds on my lightning node?

I've been using lightning network daemon (LND). In an effort to have a balanced node with somewhat equal amounts on both side of my channels, I've sometimes opened channels with the command lncli ...
0
votes
1answer
47 views

Help signing a P2WSH Multisig

I'm trying to construct a transaction in regtest mode that spends from a P2WSH 2-of-2 multisig. Here is the funding transaction for 5 btc. It also contains a change output for 5 btc. ...
0
votes
0answers
34 views

Creating bech32 address on bitcoin core automatically generate another address on lightning network

my lightning network backend is bitcoind. Interesting when I execute getnewaddress label bech32 another bech32 address is automatically generated. I found it because at the lightning network console ...
2
votes
1answer
43 views

“private” agreement between two c-lightning nodes on channel closure fee

When i was at LNConf, one of the devs of c-lightning (IIRC) told me that there is a custom, manual way to agree between two nodes on channel closing fees. Can anyone elaborate how this is possible? I ...
3
votes
2answers
114 views

Will a channel be automatically closed if there's a expiring HTLC that doesn't have its own output in the commitment transaction?

When routed Lightning payments are smaller than some amount they don't get their own HTLC output in the commitment transaction. Instead the funds reserved to it are directed to transaction fees. When ...
2
votes
1answer
23 views

How and When are lightning channels disabled?

On the testnet and some mainnet there are channels which are disabled, so if you try to route a payment through them it failed with this as an error message. Reading through the RPC commands, it seems ...
2
votes
1answer
53 views

lightning network bitcoin howto install

Hello fellow bitcoiners, I would like to install lightning over Bitcoin core - I already have a full node. But every guide I follow ends up with a broken build or some issue preventing to finish the ...
0
votes
1answer
37 views

Bidirectional channel opening in c-lightning

With the current version of c-lightning is it possible to open a bidirectional channel funded by both parties? I managed to open a channel with fundchannel command, but that seems to be a ...
2
votes
1answer
63 views

How does the 'queryroutes' function in lightning's LND calculate the route fees?

I am testing my own routing implementation and for some weird reason a handful of channels reject my payment stating InsufficientFee. The scenario is A -c1-> B -c2-> C whereby Node A is ...
0
votes
1answer
26 views

Doubt on lightning channel opening

It's 5 days since I opened my first (and unique, for now) lightning channel. Unfortunately it seems that only me have funded the channel while the counterparty didn't, so the channel it's actually a ...
2
votes
2answers
163 views

Throughput of Lightning Network

Is there any reliable source of information regarding the estimation of the number of payments that occur in Lightning Network every day? If the total number is impossible to estimate are there any ...
2
votes
1answer
89 views

In Lightning commitment transactions, what do the upper 8 bits of sequence and locktime represent?

In Bolt 3 of the Lightning Network specs, for commitment transactions it states: locktime: upper 8 bits are 0x20, lower 24 bits are the lower 24 bits of the obscured commitment number. ...
1
vote
2answers
50 views

Could someone provide an example of a tx spending from an input with a relative LockTime?

I want to see an example of a raw transaction which spends from an input which has a relative LockTime applied to it. An example would be a transaction from a Lightning payment channel in which a user ...
3
votes
2answers
100 views

What is the difference between listpeers vs listnodes commands?

In c-lightning implementation, what is the difference between the listpeers and listnodes commands of lightning-cli?
2
votes
1answer
32 views

Would a dual-funded channel be a single UTXO?

Would a dual-funded channel be a single tx? The peers would cooperatively create a single tx with at least 1 input each. Is this correctly understood?
0
votes
1answer
60 views

How to securely update and verify C-Lightning release?

Recently, a new version (v0.7.3) of C-Lightning was released. The GitHub page has detailed instructions on how to build the software from source, but does not provide much details as to how to update ...
1
vote
0answers
39 views

How can I check my transaction signature is correct?

I have tried recreating the exact transaction from "Appendix B: Funding Transaction Test Vectors" from BOLT 3 from the Lightning RFCs. My transaction looks exactly the same when parsed, except my ...
1
vote
1answer
70 views

If a user recovered data directory of LN node software with an old backup, what would happen? Would cooperative channel closing be possible?

As far as I know, the "Data Loss Protection" feature would just request the counterparty to unilaterally close the channel. I wonder if mutual closing is still possible, with old channel states? By ...
1
vote
1answer
48 views

lightning node data visibility on explorers

I'm trying to set my first c-lightning node with docker-compose using image from https://hub.docker.com/r/elementsproject/lightningd. currently, my node can connect and open channel with other nodes (...
0
votes
1answer
50 views

Is there a limit to the TLV size?

I hear that a TLV field was recently added to the payment format. This will allow the sender to attach a message to the recipient in the payment package. How much data can be included in the TLV field?...
1
vote
1answer
47 views

Why do we need revocation in both the offered/received HTLC outputs and HTLC timeout/success outputs?

The witness script for the output in the HTLC success/timeout transaction is: OP_IF # Penalty transaction <revocationpubkey> OP_ELSE `to_self_delay` OP_CHECKSEQUENCEVERIFY ...
2
votes
1answer
58 views

Multisig refund transaction flaw in Lightning Network talk

I was watching Tadje Dryja's talk at SF Bitcoin Devs conference on transaction malleability, which formed part of the basis behind the Lightning Network. At 17'45", I saw this example. Prior to ...
2
votes
1answer
56 views

Possible race condition(double spend) on HTLC-Timeout in the lightning network?

From the offered HTLC Outputs, # To remote node with revocation key OP_DUP OP_HASH160 <RIPEMD160(SHA256(revocationpubkey))> OP_EQUAL OP_IF OP_CHECKSIG OP_ELSE <remote_htlcpubkey> ...
2
votes
2answers
222 views

How can someone lose funds in Lightning Network?

In Bitcoin once you own a private key associated with an address that had bitcoins on it, your funds are theoretically safe for ever. But on the Lightning Network, I see that once you send bitcoin to ...
7
votes
1answer
295 views

What are the downsides of Hodl Invoices?

As far as I understand hodl invoices enable some interesting use cases. However, I heard that they can be detrimental to the network. Is that correct and in what way? Additionally, at a talk at the ...
2
votes
1answer
49 views

How does lnd make sure it does not reuse the same route twice for a retry after the first payment failed?

Suppose LND node A wants to send a payment to another node D. The pathfind algorithm based on Dijkstra found a route through B and C and initiates the payment. It fails, as B -> C does not have ...
1
vote
0answers
55 views

Bitcoin Lightning Network

I created a channel in lightning network, did the payment and the channel balance of the receiver got updated. But after closing the channel , the wallet balance of the receiver is not getting updated ...

1 2 3 4 5 12