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
2
votes
1answer
24 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
32 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
12 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
35 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
22 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
28 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
21 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
147 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
79 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
41 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 ...
2
votes
2answers
81 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
24 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
36 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
37 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
56 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
42 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
41 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
31 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
48 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
50 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> ...
1
vote
2answers
154 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 ...
6
votes
1answer
275 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
32 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
52 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
vote
1answer
32 views

How much time does it take for a Lightning node to forward an HTLC?

How much time passes between the moment an intermediary node receives an HTLC and the moment it forwards if to the next hop? At least what order of magnitude is it? Is it comparable with network-...
2
votes
1answer
124 views

Can BitML encode Lightning?

I have been reading the BitML paper. The language compiles to another language (Balzac [which in turn compiles to Bitcoin Script]), which can do relative and absolute timelocks. Balzac can also do ...
0
votes
1answer
21 views

Sweep all functionality for a Bitcoin Lightning private key using mobile, desktop, or cli wallet?

Bitcoin wallets have a sweep all function to transfer all coins from one private key to another. Is there such a feature in a bitcoin lightning wallet where you can sweep all coins from a lightning ...
1
vote
1answer
48 views

What does a Bitcoin lightning private key look like?

I know bitcoin private keys start with a 5... But how does a lightning bitcoin private key look like? Say I wanted to printed it out as a paper wallet.
7
votes
1answer
552 views

How many paths are tried on average before a payment succeeds in Lightning?

In Lightning, the sender can never be sure that a multi-hop payment will go through, as intermediary nodes don't announce the distribution of funds in their channels (only the total capacity). Is ...
1
vote
1answer
77 views

What happens if R is not revealed by one of Lightning Network nodes? (Payment cancelation)

Let's say we have route of 3 hops A -> B -> C -> D (A pays D). And in the middle of payment (revealing secret R stage) node C disappear from network. In this case B will be not able to finalise ...
0
votes
1answer
31 views

How can I generate preimage for lightning network invoice? Should I?

I'm developing API library for LND REST API. Method POST /v1/invoices requires r_preimage parameter. Should I generate it or LND can do it itself if I'll not specify it? If I should do that - how to ...
2
votes
1answer
36 views

Python implementation for LND path finding algorithm

The most common Lightning nodes use GO, C or Scala for their implementation. Is there any publicly available Python implementation for the path finding algorithm any of the most known clients use (LND,...
3
votes
1answer
35 views

Finding paths NOT originating from you with lnd

I'm interested in finding paths from senders whose node you don't run to potential receivers. According to https://api.lightning.community/?python#queryroutes , you can do that by specifying the ...
3
votes
2answers
34 views

What defines the standard Bitcoin transaction size? [duplicate]

The Lightning Network specifications limit the number of (unsettled) HTLCs in a channel to 483 at each side (maximum 967 total). The rationale behind this is that the penalty transaction must be under ...
3
votes
1answer
187 views

How does Lightning Network over TOR work?

I'm interested to understand in detail how the lightning network works over Tor. Implementations like lnd, c-lightning etc. offer an extension which allow running TOR with Lightning. I would like to ...
1
vote
1answer
35 views

From LND Bitcoin Wallet to Bitcoin Wallet

Let's say I have some Sats on Zap Desktop wallet. Is it possible to transfer the Sats out of the Zap Desktop Wallet to for example MyCelium?
2
votes
2answers
73 views

Is it possible to watch the chain to count the number of Lightning channels? [duplicate]

I know it's possible to get number of public Lightning channels from Lightning Network gossip and some implementations offer network graph and it can be queried. But it's not possible to see private ...
4
votes
1answer
161 views

How fast can a LN payment be over TOR?

I wonder how fast a LN payment can be over TOR if all possible optimizations have been implemented?
1
vote
2answers
252 views

What are Zombie Channels?

In the Lightning Network, what is the definition of a zombie channel? Can they clearly be identified or is it more of a undefined term that is used for channels that are assumed to be obsolete?
4
votes
0answers
47 views

Can ECDH peers waste each other's time at will?

Peter Dettman notes that ECDH peers can waste each other's time at will. What does he mean? Can this be weaponized against Lightning nodes?
2
votes
1answer
93 views

Networking & Lightning Network

So I have a question regarding network connectivity within LN nodes. Scenario #1: I have public lightning network node. it has real public IP address (let's say 123.123.123.123), which one is ...
0
votes
3answers
51 views

Can Initial Channel Balances be figured out from the Funding Transaction?

The Initial Funding Transaction happens in Bitcoin and is linked to the Lightning Network. Can an adversary figure out the initial channel balances by identifying the according Bitcoin Funding ...
2
votes
2answers
67 views

How can I interact with Eclair from Python?

I want to write some scripts for experiments with Lightning. Python is the language I'm most comfortable with. From the three major implementations, LND has python-grpc and c-lightning has pylightning,...
1
vote
3answers
79 views

Running into ELIFECYCLE error while trying to install filebazaar

Trying to install filebazaar on Ubuntu 18.04 and getting an error on the canvas module... anyone familiar with this issue? I've been all over node-canvas's github issues (such as this one where I left ...
1
vote
1answer
62 views

BOLT 11 - Why is the description field limited to 639 bytes?

Why is the description field in a Lightning Network invoice limited to 639 bytes? https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md#tagged-fields https://github....
1
vote
1answer
59 views

Possible to run a Lightning node on same computer as Bitcoin Core node?

I have a Windows 10 laptop that is running a full Bitcoin node using Bitcoin Core. Is it possible to also run a Lightning node on the same laptop simultaneously with the Bitcoin node?
2
votes
1answer
78 views

How to capture c-lightining logs?

Where does c-lightning save its debug.log file? I know you can run the lightning daemon with --log-level=debug and access the logs in the terminal. But, I run my node on a remote server and I access ...
0
votes
1answer
33 views

What is the difference between reliance on miners on Drivechains and Lightning?

It's commonly said that the Drivechains proposal gives much power to miners and that they can steal money from these drivechains, but I keep thinking that if what they can do is to vote on which ...
2
votes
1answer
30 views

Generating Lightning invoice with an optional parameter

I have a question on the command invoice with the optional parameter. I don't understand how to create the invoice with the optional parameter. The c-lighitning documentations do not have an example ...
3
votes
1answer
50 views

What is the definition of an inactive channel?

On the Lightning Network, after how much time since the last received channel update is a channel considered inactive?