Questions tagged [lightning-routing]

The tag has no usage guidance.

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

For running a lightning node and getting maximum exposure, should I forward port 8333 also (for bitcoin)? Or only 9735 (lightning)?

I've been wondering about this. From what I read, people only open 9735 to run a "successful" node. To me it makes sense not to open bitcoins port, but I could also imagine that some ...
5 votes
1 answer
191 views

How to compute the expected number of sats to arrive in a probabilistic payment flow?

Look at the following network example: Assume S wants to send 3 sats to R. You can further assume that S has enough liquidity in each of its local channels to send up to 3 sats. Also assume the ...
0 votes
1 answer
52 views

Problem calculating routing fees

I'm trying to compute the routing fees for a lightning network payment of 100,000 msats. The route uses the following sequence of channels (CHAN1 is not shown for privacy reasons): CHAN1 (base fee: ...
2 votes
0 answers
26 views

How to implement Just in Time Routing on our lightning node

Can anyone here tell me how to implement "Just in Time Routing" for our lightning node? We are running Umbrel for our node so if this is possible / feasible can it also be automated? Thank ...
1 vote
1 answer
95 views

Force Closure of a channel with LNBig-42:

On May 14th our channel with LNBIG-42 was force closed. Not sure why but it could have been due to their node performing an update on the same day which caused a few other nodes to also have their ...
1 vote
1 answer
56 views

How to attract traffic to a Lightning routing node

We have a lightning node and are searching for some educated advice on how to attract more traffic to our routing node. A short explanation of what we have been experiencing. We have a small node ...
2 votes
2 answers
376 views

How does LND make sure that it does not reuse the same route 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 ...
3 votes
1 answer
136 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 ...
1 vote
0 answers
31 views

What is the most successful method to automate circular rebalancing?

What is the most successful method to automate circular rebalancing? We have tried the Torq and the LNDG app but so far they both do not wotk for us so we are still performing manual circular ...
4 votes
1 answer
85 views

What is "Link-Level Multiplexing"?

In a discussion about private channels, Conner Fromknecht mentioned a concept called Link-Level Multiplexing. What is this and what is it useful for? How does it work?
0 votes
1 answer
85 views

Destination is not reachable directly and all routehints were unusable - how might I remedy that?

After launching lightningd I get following: 2023-07-20T06:54:46.533Z UNUSUAL 038.............................................................8f--connectd: Feature 28 requires feature 20 2023-07-20T06:...
3 votes
1 answer
82 views

How do route hints affect pathfinding?

I understand that route hints can be provided when generating an invoice, but how exactly do wallets use this information to assist in pathfinding? I imagine this can vary slightly between ...
3 votes
1 answer
882 views

What exactly are route hints?

In the documentation for LND's addInvoice rpc call there's a field for something called route_hints which are described as: Route hints that can each be individually used to assist in reaching the ...
2 votes
1 answer
102 views

What cryptographic guarantees apply to non-disjoint paths in basic MPP?

Imagine the following graph in the Lightning Network: B D / \ / \ A C E \ / \ / F G and node A wants to pay node E. A chooses to pay with multi-path-payment composed of the routes: A-&...
2 votes
1 answer
95 views

How does Lightning multipart payments (MPP) protocol define the amounts per part?

From the source code of LND, payments are split in half and retried if no path for the full amount is found: func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi, ...
2 votes
1 answer
236 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 ...
2 votes
1 answer
44 views

Alternative fee functions for the Lightning Network

The current Lightning Network specification allows channel peers to specify a base fee and a proportional fee. In other words, the fee charged is a linear function of the forwarded amount. While that ...
4 votes
1 answer
107 views

Analyze Failed Routing in Core-Lightning

In my node I see many failed Routing Transactions. I did not really find information on how to analyze what went wrong. First I see Failed Transactions Local Failed Transactions - reason always "...
0 votes
0 answers
78 views

Pending Chain Balance -Lightning Wallet:

I appear to have a stuck pending chain balance on my Lightning Node's Lightning Wallet. It has remained a pending chain balance for a very long time can someone please let me know how I can get this ...
1 vote
1 answer
344 views

Reuse of payment hash in Lightning Network

Suppose there exist two such payment transfer request: A transfers 1 msat to R via A->B->C->R and S transfers 5 msat to R via S->B->C->R. Let the two HTLCs be formed across both the paths ...
1 vote
0 answers
52 views

Are payment channel attributes in the Lightning Network always directed?

While learning about payment channels, I understood channel attributes like base fees, proportional fees and maximum HTLC size would be directed, i.e., the attributes from A to B would not necessarily ...
2 votes
1 answer
46 views

Is there any way to stop forwarding payments through my LDK node?

I can't seem to find a config option for discarding all forwards.
0 votes
0 answers
47 views

Failing channel

Suppose I try to send a payment along a route with channels c_1, c_2, ..., c_k. Suppose that the payment fails with error code 204 (WIRE_TEMPORARY_CHANNEL_FAILURE), and the erring channel is c_t. Does ...
1 vote
1 answer
44 views

Lightning routing fees received between 2 channels with 0 feerate?

Something strange just occurred on my LND node, making me think I don't understand something about lightning fees. I have channels to A & B, who only ever asked me to route transactions going to C....
2 votes
1 answer
65 views

Do I get the fees defined on the incoming or outgoing channel when routing a payment?

Say my node (Y) routes a 1000sat payment from A to B and I set the fees on the A-Y channel to 1000ppm and on the Y-B channel to 2000pm. (Zero base fee). How much fees has A to pay me? 1sat or 2sat?
0 votes
1 answer
682 views

unable to route payment to destination: TemporaryChannelFailure

Keep getting this error following attempting to pay an invoice. root@ubuntu-s-1vcpu-2gb-nyc3-01:~# lncli --network=testnet payinvoice ...
0 votes
1 answer
241 views

How to backup seed in lightning and give your channel to watchtower

this is followup on question #85475: I have learned in previous question that there is an automatic refund mechanism in case of force closure of a channel, except for some very rare circumstances. I ...
2 votes
1 answer
71 views

What does the disabled field of the RoutingPolicy object mean in LND?

lnd v0.15.3-beta The documentation for lnrpc.RoutingPolicy shows a boolean field called disabled, but it provides no definition of what that means. Each channel has 2 peers, and each peer in a channel ...
0 votes
0 answers
216 views

Can't make 1 hop lightning payment, no route

I'm trying to send a payment on the Lightning testnet. I'm running 3 nodes on 3 computers on my network. So far I've setup two channels, and sending sats between the channeled nodes has been fine. A &...
6 votes
1 answer
220 views

How can I increase the routing my 'small' lighting node performs?

I know this question has been asked a lot. However I am not able to grasp the correct approach to address this. Let me give you the context: I spun up an LND node to start experimenting and ...
2 votes
1 answer
72 views

Are multipart payments more expensive than normal payments? (Lightning Network)

I was reading the "Mastering The Lightning Network" book when I came across this part about Multipart payments which mean dividing a payment and sending it through multiple paths to increase ...
2 votes
0 answers
96 views

How to measure the drain of a specific Lightning Network Channel that I own?

We have seen that the drain of a lightning network channel can be used to predict the failure rate of payments in this channel which correlates inversely with its reliability. Assume my node M has a ...
0 votes
1 answer
163 views

What are the different kinds of Lightning routing nodes?

I understand that there are end users at the edge of the network (typically with private channels) and routing nodes (with public channels) doing the routing of payments. What are the different kinds ...
9 votes
1 answer
470 views

Can PTLCs and HTLCs be mixed along a route?

When PTLCs get introduced on the Lightning Network, do all hops along a route need to use just one of either HTLCs or PTLCs, or would it be possible to create a route where some nodes use PTLCs and ...
1 vote
2 answers
62 views

Lightning: Keys confusions

I am currently trying to understand the Lightning network using their whitepaper and BOLT#3. However, I have some trouble to understand each public/private keys roles in the processus. From what I ...
8 votes
1 answer
557 views

What does TLV stand for?

I'm reading about the gossip protocol and wanted to know what a TLV is. I can't find what it means anywhere.
1 vote
1 answer
85 views

How to identify probing in the c-lightning implementation of the Lightning Network?

I'm currently looking at output from the c-lightning -listforwards command. A large portion of the payments are classified as local_failed with the failcode "4103 WIRE_TEMPORARY_CHANNEL_FAILURE&...
2 votes
1 answer
367 views

Is it possible to cancel a lightning invoice?

Could the user who generates the invoice not just delete their secret so the payment would not be successful? Maybe there is a more eloquent way that wouldn't result in users funds being stuck for a ...
3 votes
1 answer
161 views

Difference between capacity and max_htlc in Lightning Network?

What is the difference between capacity and max_htlc in the routing of payments in the network?
1 vote
0 answers
65 views

Lightning Network node collusion

I' m learning about Bitcoin and LN enjoying Antonopoulos's excellent "Mastering Bitcoin" book I stumbled upon Figure#7 in Chapter 12 https://github.com/bitcoinbook/bitcoinbook/blob/develop/...
6 votes
1 answer
3k views

How does lnd's autopilot feature work?

Autopilot automatically connects to peers in order to establish a p2p network. I didn't find however a complete explanation of its motivation and logic.
9 votes
2 answers
1k views

What criteria should be taken into account when selecting nodes to create new lightning channels with?

Alex Bosworth recently pointed out: I see people connect to a "well connected" node on LN and by that they mean they connect to a node with lots of channels. The number of channels is actually a ...
3 votes
1 answer
341 views

lnd stoped routing - unable to update fee rate

I used to have about 5 routings per day. Now, since three days I don't have any routing. In my lnd.log I find lines like this: grep ERR lnd.log 2021-09-19 22:40:53.187 [ERR] HSWC: ChannelLink(700510:...
1 vote
1 answer
457 views

Where are my lightning routing fees stored (lnd), when do they get payed out?

I watch my lightning node (lnd) routing some amounts. And with lncli feereport I see some sums, let's say 700 sats for this week. But where are those sats? How can I lookup the accumulated routing ...
1 vote
3 answers
2k views

My lnd node hasn't routed any payments (1 week + since initial setup)

So I finally setup a lightning node (lnd) and according to "feereport" I haven't routed any payments (no fees collected). I have used my node to send payments (yalls, satoshis.place, blockstream...) ...
3 votes
0 answers
106 views

lightning nodes cannot find route

I have two lightning nodes, Bob and Charlie (using bitcoind backend with LND). They both have an open and funded channel with this testnet faucet: https://faucet.lightning.community/ Both nodes have a ...
1 vote
1 answer
409 views

How can I determine the reason for a failed routing on c-lightning

I am running a c-lightning node (v0.8.2). I am routing a payment every few days. However, I realized that dozens of payments every day fail, many of them fail locally (I see the status 'local_failed' ...
0 votes
1 answer
70 views

Is it possible to programmatically or preemptively deny any/all open_channel Lightning messages coming into your node?

If so, that would make it possible for that same node to have 1 very well funded inbound channel with only 1 other node that they also own and price gouge fees to route payment to them through this ...
2 votes
3 answers
149 views

Is there some way to add a third party authorizer to (or by) a lightning network transaction?

I'm not asking for "multisig on the lightning network", but I'm more curious about how one would set up shared control over lightning network transactions in general. Imagine we don't have a ...
3 votes
1 answer
123 views

Would a min_fee setting for Lightning channels make sense?

What is a min_fee? Having a min_fee means changing the fee calculation to max(min_fee, fee_rate * amt), potentially replacing the base_fee. My reasoning behind this is that it prevents 0-fee payments –...