Questions tagged [lightning-network]

A peer-to-peer payment system leveraging unbroadcast pre-signed transactions to track user balances.

126 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
175 views

What are the advantages to attackers of different styles of replacement cycle attacks?

In Antoine Riard's original description of replacement cycle attacks against HTLCs, a replacement cycle looks like this: Bob broadcasts an HTLC-timeout (input A, input B for fees, output X) Mallory ...
David A. Harding's user avatar
5 votes
1 answer
225 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 ...
Rene Pickhardt's user avatar
4 votes
0 answers
156 views

Sign lightning channel creation PSBT with Golang

I'm trying to open a channel on regtest with LND v0.13.0-beta.rc3 using their PSBT workflow to allow for remote signing. I've done the following steps: I create a regtest wallet using the BIP39 ...
SamCymbaluk's user avatar
4 votes
1 answer
570 views

Accepting micropayment donations via Lightning Network - what is the most efficient / recommended architecture?

The difficulty that I am experiencing at the moment - how to accept Lightning Network micropayments donations supporting (shameless plug): https://genesis.re/wiki#Plan_B Zap / Joule: I send on-chain ...
Mars Robertson's user avatar
3 votes
0 answers
301 views

Lightning Network Nodes do not report Bolt9 Features

Looking at the output of the describeGraph command of my node (LND), I have seen that my node detects approximately 19,000 nodes. Of those 19 thousand, 6 thousand do not report any bolt9 feature. lnd@...
polespinasa's user avatar
3 votes
0 answers
34 views

Stuck low-feerate transaction after forced closed channel

Someone cooperatively closed a channel with me, then forced closed it later. It has not confirmed. In fact, it is not even showing up in mempool, which says "waiting for transaction". I'm ...
Ryan's user avatar
  • 31
3 votes
1 answer
62 views

How to make sure the user receives lightning payment?

I am working on a side project to allow users to receive some payments from it. When a user clicks a button to withdraw to a lightning address, my webapp makes a request to the host of that lightning ...
Sergei Basharov's user avatar
3 votes
1 answer
123 views

How to avoid a force closure of a channel in the future

On May 14th our channel with LNBIG-42 was force closed and has only returned to the wallet minus some fees a few days ago. https://mempool.space/tx/...
Orange_Bitcoin's user avatar
3 votes
0 answers
186 views

What does the tlsextraip setting do in LND?

The lnd.conf documentation says: ; Adds an extra ip to the generated certificate. Setting multiple tlsextraip= entries is allowed. ; (old tls files must be deleted if changed) ; tlsextraip= I think ...
Zephyrus's user avatar
  • 772
3 votes
0 answers
143 views

Lightning Network snapshot via lncli describegraph only includes about half the network?

I pulled a snapshot of the Lightning Network via lncli describegraph with my Umbrel node in July 2022. Everything worked fine and I analyzed the snapshot: ~18k nodes ~85k channels ~4k BTC total ...
Mike Nash's user avatar
3 votes
0 answers
52 views

How to calculate the Hashes in Lightning

I was wondering how I calculate the hashes regarding BOLT03 Specification: The Revocation Pubkey is calculated like this: revocationpubkey = revocation_basepoint * SHA256(revocation_basepoint || ...
ziggie's user avatar
  • 51
3 votes
0 answers
114 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 ...
coolshoeshine's user avatar
3 votes
0 answers
32 views

Keys Security Best practices in a Lightning company

"What are some key security practices for running a company that works on Lightning? Risk of someone running away with the funds Alternatives to multi-sig for lightning Resources in the space ...
mick's user avatar
  • 51
3 votes
1 answer
139 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 ...
George's user avatar
  • 31
2 votes
0 answers
31 views

How does Electrum's "send change to lightning" work?

In Electrum, when sending to a non-Lightning ₿ address, I can choose the "send change to lightning" option. How does this work?
Geremia's user avatar
  • 4,596
2 votes
0 answers
16 views

Are there internal 1sat invoices in LND?

Every day I find several (like 3) amount=1 sat invoices in my lnd's listinvoices. These invoices have an empty payment_request, a zero expiry, an empty description_hash etc. Is this kind of a health ...
Rainer Feike's user avatar
2 votes
0 answers
67 views

How can we use OP_CHECKTEMPLATEVERIFY to non-interactively open channels?

In here there is a description of how to create a channel between two parties without interaction from both of them. If my understanding is correct, the transaction responsible for codifying the ...
algo2043's user avatar
2 votes
0 answers
34 views

Balances do not add up to channel capacity

Using LND, I opened a channel with --local_amt=1100000 and --push_amt=500000. I would think that would open a channel with a capacity of 1100000, a local balance of 600000 and a remote balance of ...
Zephyrus's user avatar
  • 772
2 votes
1 answer
83 views

How can I establish a connection with an IPv4 peer when my node has only IPv6?

I have a channel with someone who only has IPv4. I only have IPv6. How can I redirect the port in my LND to accept IPv4?
user209474's user avatar
2 votes
0 answers
173 views

What happens if a Lightning channel close transaction is evicted from the mempool?

I recently had a cooperative close of a Lightning channel and the two Lightning nodes agreed a fee rate of about 1 sat/vbyte for the closing transaction. (This was fine by me; I always like to keep ...
Steve's user avatar
  • 171
2 votes
0 answers
33 views

How would you build a bill splitting app using Lightning? Does one already exist?

How would you build a bill splitting app (20+ people) on Lightning? Does one already exist? Setting up a BTCPay Server shop seems like over engineering. This was asked by fulmolightning on Twitter.
Michael Folkson's user avatar
2 votes
0 answers
40 views

HD wallet usage in Bitcoin & Lightning combined wallets

Is there a best practice / recommendation for a Bitcoin & Lightning combined wallet, regarding the HD wallet used in the Bitcoin wallet and the HD wallet used in the Lightning wallet? no relation,...
OptOut's user avatar
  • 344
2 votes
0 answers
98 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 ...
Rene Pickhardt's user avatar
2 votes
0 answers
194 views

How do I gain access to the on-chain funds with hsm_secret?

I had a Core Lightning node running properly, but it suddenly somehow stopped working. I force-closed the only channel I owned (from my other node), and since I can't start the lightning daemon (with ...
Angelo's user avatar
  • 423
2 votes
0 answers
42 views

Calculation of different Pubkeys in Lightning according to BOLT03

Lightning uses different Pubkeys to gain more privacy and security, I am not sure how they are calculated. In BOLT03 it says: The corresponding private keys can be similarly derived, if the basepoint ...
ziggie's user avatar
  • 51
2 votes
1 answer
38 views

EstimateFee - Invalid Length Destination Key

Background I have setup a regnet test network with two LND nodes. One to send money and the second (lnd2) to generate invoices on. I am writing code to simulate a mobile app. I'm currently trying to ...
btclibertarian's user avatar
2 votes
0 answers
113 views

Could the Lightning Network encounter any problems as a result of Taproot activating?

I was reading this excellent write up from Laolu Osuntokun on how the light client protocol Neutrino encountered a Taproot related issue on testnet. (Taproot is already active on testnet.) Could the ...
Michael Folkson's user avatar
2 votes
0 answers
264 views

Pruned Bitcoind Backend for LND with txindex enabled for version > v0.13.0

I'm looking to prune a bitcoind node that will be used by LND. https://github.com/lightningnetwork/lnd/commit/410b30b9caaf59a78a29d8b924e14395b7daa59d From the LND commit recently by Kixunil. Note ...
Michael Tidwell's user avatar
2 votes
0 answers
65 views

Questions about Lightning Network: Connectivity, Funding, Dealing w\ Bad Counterparties

TLDR Long time buyer, holder, and user of Bitcoin (since 2015). Absolutely zero experience with Lightning Network. I've read some entry-level tutorials but still have basic conceptual questions ...
Saul Goodman's user avatar
2 votes
0 answers
106 views

How do I choose new lightning channels in order to minimize hops when rebalancing?

Currently my fees are quite high when I try to rebalance and I noticed that I can't rebalance some channels from any of my other channels. I have only six or seven channels and would like to expand to ...
schmiddl's user avatar
2 votes
0 answers
115 views

Circular rebalance through 1 of 7 channels always times out

I have the following 8 channels open I am able to do a circular rebalance through the first 6 as expected The bottom 2 channels are to the same node Every time I try to do a circular rebalance (tried ...
orange584's user avatar
2 votes
0 answers
323 views

Lightning Node (MyNode) gone missing. How to recover funds?

I had a RaspPi/MyNode with a few LND channels open. The node has unfortunately gone missing/stolen and I'm trying to figure out the best way to get the funds back. I have access to my seed words for ...
statusquont's user avatar
2 votes
0 answers
99 views

New Node User Opening Channels Through Zap

I recently set up my first node and connected through Zap. I currently have one channel open which is funded on my local side and on the remote side for a small amount. I was told that my node is not ...
dillonhealy's user avatar
2 votes
2 answers
396 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 ...
wtho's user avatar
  • 183
2 votes
0 answers
50 views

What are the pros/cons of preferring sending the latest commitment or the oldest commitment?

Roasbeef mentioned on IRC that the Lightning specification allows a client to either assume that the latest co-signed commitment has been received by the counterparty, or that it hasn't. (as far as I ...
Janus Troelsen's user avatar
2 votes
0 answers
362 views

Error pay invoice. Ran out of routes to try after 2 attempts: see paystatus

I wanted to send some satoshis on testnet lightning network but I got "Ran out of routes to try after 2 attempts: see paystatus" error. I have a channel with 02...48 (1ML.com node ALPHA) and created ...
zono's user avatar
  • 1,935
2 votes
0 answers
107 views

Post SegWit Inclusion, how long until Lightning Network is included in the core?

Introduction - Reason for asking this question With most of the money in the cryptocurrency domain still being utilized in transactions on crypto-exchanges and the numerous hacks that have previously ...
Junaid Shaikh's user avatar
2 votes
0 answers
80 views

How would Bitcoin look like if the primary design goal was to have LN-like payments?

Today (assuming SW), we have Bitcoin, which allows us to build LN using a set of smart constructs such as HTLCs. But this is a result of a work of people trying to figure out how to take what Bitcoin ...
Wapac's user avatar
  • 1,064
1 vote
0 answers
45 views

Closing tx stuck in mempool

I'm running core lightning 23.11. I have a channel closing tx stuck in the mempool: https://mempool.space/tx/9245a9fc09ada2b1709d6f83ed2fa0875c91996a4c81eb6a03e84946f13c1042#flow=&vin=0 How can I ...
Tasos Sidiropoulos's user avatar
1 vote
0 answers
36 views

How to organize a lightning node so that the liquidity is self balancing?

Does anyone here know a method to organize a lightning node so that it becomes self balancing? By self balancing I mean that the liquidity is "mostly" balanced so that transactions flow in ...
Orange_Bitcoin's user avatar
1 vote
0 answers
46 views

Destination in WoS invoice is not WoS node

When I create an invoice in Wallet of Satoshi / Android, and lncli decodepayreq --pay_req=lnbc2 the invoice, there's a destination { "destination": "...
Rainer Feike's user avatar
1 vote
0 answers
39 views

LND per-commitment-secret derivation

For learning purposes I'm trying to recreate all keys in LND channel. I could reproduce MultiSigKey, RevocationBasePoint, PaymentBasePoint, DelayBasePoint, HtlcBasePoint. The workflow to reproduce ...
Pawel's user avatar
  • 91
1 vote
0 answers
31 views

Which are the default features enabled on the main three Lightning Network node implementations (LND, C-Lightning and Eclair)?

Which are the default features enabled on the main three Lightning Network node implementations (LND, C-Lightning and Eclair)? I mean the features shown when you use "describegraph" command.
Mani T's user avatar
  • 187
1 vote
0 answers
23 views

Considerations for moving a lightning node to new hardware?

Lightning nodes get rated. Amongst other factors, uptime is a big one of them. If I want to upgrade to new hardware, what are the steps necessary to do so? Let's for simplicity assume, that I use ...
codepleb's user avatar
  • 189
1 vote
0 answers
57 views

Max amount of peers connections on LND

I'm trying to connect to a long list of peers. I'm running a LND(0.17.0) node. My list has almost 1k peers and I can only connect to 6 of them. Is my node limiting the max connections? If so, is it ...
polespinasa's user avatar
1 vote
0 answers
46 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 ...
Orange_Bitcoin's user avatar
1 vote
0 answers
54 views

Pending open lightning channel

I opened a lightning channel with RTL on my raspiblitz. It took too low fees by default (my fault). So I tried in RTL to pump the TX but this doesn't help. It seems that there was an second TX created ...
Kᴀτᴢ's user avatar
  • 111
1 vote
1 answer
70 views

How to estimate number of transactions on the Lightning Network

I would like to estimate the transaction volume (number of transactions) on Lightning Network. Has anyone done any work towards that? An idea I have is simply look at the reporting nodes out there ...
Albert S's user avatar
  • 1,630
1 vote
1 answer
89 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 ...
Orange_Bitcoin's user avatar
1 vote
1 answer
263 views

Open Channel Transaction without RBF is stuck

An open-channel transaction has too low fees and does not get confirmed. It has opted in to RBF, but there is no change output. So I think it is not possible to use lightning-cli openchannel_bump? Isn'...
timmornYE's user avatar
  • 125