Questions tagged [core-lightning]

Core Lightning (formerly c-lightning) is a standard compliant implementation of the Lightning Network protocol. The Lightning Network is a scalability solution for Bitcoin, enabling secure and instant transfer of funds between any two parties for any amount.

Filter by
Sorted by
Tagged with
3 votes
0 answers
31 views

C-Lightning Gossiping and Channel announcements

I am super new to lightning development and just starting to play around with stuff and wanted to execute some circular rebalancing payments, but was confronted with problems coming from the getroute ...
1 vote
1 answer
10 views

CLN listnodes command occasionally returns too many features flags

The BOLT #9 specification shows a 52-bit field that represents various feature flags. That should require no more than 7 bytes, or less. When I run the listnodes command, some of the nodes include ...
  • 161
1 vote
1 answer
23 views

listchannels returns no results from CLN

CLN 0.12.1 My node has been running for hours now. But it doesn't seem to be aware of the network. This is what I get when I try to run listchannels. $ lightning-cli listchannels { "channels&...
  • 161
1 vote
1 answer
23 views

Can CLN be configured to use a bitcoin node running on another machine?

CLN 0.12.1 I have bitcoin core running on one machine (Debian 11) and would like set up CLN (C-Lightning) on another machine (Ubuntu 22.04) on the same network. My first test was to use the --bitcoin-....
  • 161
0 votes
1 answer
32 views

Is it possible to import a LN snapshot into the regtest network (possibly pruned version)?

I am currently writing a bachelor thesis where I plan to conduct some experiments on regtest network to evaluate how effective a particular rebalancing algorithm performs compared to currently used ...
2 votes
2 answers
36 views

How can I reproduce the output of lightning-cli newaddr?

If I do: lightning-cli newaddr I get an on-chain address I can send funds to. How can I see the same address again, if (for example) the terminal gets closed by accident before I've finished with it? ...
  • 149
2 votes
1 answer
139 views

What is the current status of watchtower implementations in October 2022? Are they mature, widely in use?

One way of protecting yourself against losing money as a result of bugs and crashes in your Lightning node implementation software (e.g. the recent LND bug) is to run a watchtower yourself or employ ...
4 votes
1 answer
538 views

What are prerequisites and best online resources to learn everything about Lightning Network

I want to learn Lightning network from basic to Advance from scratch, So what are: 1. Prerequisites to learn lightning network 2. What are best online resources to learn Lightning network from scratch
2 votes
2 answers
179 views

Why does CLN (Core Lightning) sync from Genesis while LND only syncs from the wallet's birthday?

I've installed two major Lightning Network implementations, CLN (formerly c-lightning) and LND, with bitcoind testnet as backchain on the same server. On the first startup I noticed CLN synchronizes ...
0 votes
1 answer
41 views

What command does a c-lightning node run, after did broadcast fundchannel from my side, when they establish a channel with me? Can they be censored?

c-lighning's user has the option of funding a private channel with fundchannel's announce=false flag. The user, such as myself, executes fundchannel and, provided that the fee was sufficient, soon has ...
4 votes
1 answer
501 views

Under what conditions would lightning channels be force closed automatically?

I suspect this depends heavily on the implementation, but maybe someone can shed light on the circumstances that would lead an implementation to force close a channel automatically. A user asked this ...
  • 43
1 vote
1 answer
56 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&...
1 vote
1 answer
119 views

C-lightning configuration to use bitcoin blockchain data from another machine

I currently run a lightning node on umbrel on a raspberry pi. I want to experiment with c-lightning and want to run a new c-lightning node on my ubuntu laptop which utilizes the blockchain data from ...
  • 41
1 vote
0 answers
37 views

Want to run a secondary node on a new machine and want to use the blockchain data of existing node

I run a lightning node (umbrel, raspberry pi). I wanted to build a secondary node(c-lightning) on my laptop (ubuntu), from scratch. I followed some steps from their github but I'm now confused the the ...
  • 41
3 votes
2 answers
288 views

How to open a Taproot channel on c-lightning node?

Will new channels automatically use Taproot now, or is there something to activate in c-lightning to make it use Taproot?
  • 85
1 vote
1 answer
47 views

lightningd wont work: SQLITE version mismatch: compiled 3036000, now 3032003

I installed bitcoind and trying to run lightningd through this guide: https://github.com/ElementsProject/lightning/blob/master/doc/INSTALL.md#to-build-on-macos. I did everything it says. Bitcoin node ...
  • 181
1 vote
1 answer
60 views

c-lightning is working on Rust language bindings. How does this compare to the language bindings work LDK has been doing?

I know LDK (rust-lightning) has been doing a lot of language bindings work to support various languages (C, Go, Java, Swift etc). c-lightning is now working on language bindings itself so you can ...
1 vote
1 answer
52 views

What is the correct syntax when specifying the utxos to be used in c-lightning's `withdraw`?

I tried to withdraw from one utxo with the following command: lightning-cli -k withdraw destination=bc1********** satoshi=******* feerate=normal utxos='["********":"0"]' and I got ...
2 votes
1 answer
84 views

What is the best way to manage a lightning node to develop a paywall app with c-lightning?

I want to develop a lightning powered paywall app with Django on heroku but don't know how to implement lightning part of the application besides using a rpc lightning package which needs a lightning ...
  • 181
2 votes
1 answer
106 views

Will c-lightning's `withdraw destination all` take anything from the channel funds?

Will c-lightning's withdraw destination all take anything from the channel funds? Does the string all that can be used to specify withdrawal of all available funds refer only to onchain funds with &...
4 votes
1 answer
83 views

c-lightning: connectd: Failed to create 2 socket: Address already in use

I am trying to build c-lightning from source and connect to testnet. bitcoind is up and running in testnet already. Running lightningd seems to be working good except for the following log: connectd:...
  • 175
1 vote
1 answer
40 views

What is the maximum byte size or limit of characters in label in lightning-cli invoice? Are UTF-8 characters accepted?

I'm writing a script in C that is mean to make the usage of my c-lightning wallet more convenient. And so I have to specify a limit of characters (l is a variable that stands for label): puts("...
3 votes
1 answer
136 views

What does `-k` stand for in `lightning-cli`?

I find it very convenient, one does not have to worry about the order of arguments, e.g. lightning-cli -k invoice msatoshi=0.001btc label=label1 description="This is a description" expiry=...
3 votes
2 answers
103 views

Getting "Unable to find DB driver for sqlite3" when trying to start c-lightning node

Hey I just started receiving this message for my c-lightning node when try to start it. Unable to find DB driver for sqlite3:///root/.lightning/bitcoin/lightningd.sqlite3 It started happening after I ...
  • 54
2 votes
1 answer
173 views

How do I move my c-lightning node to a different machine without closing my channels?

If I wanted to move my c-lightning node to an other machine, is there a way to do that (and how)? Specifically, without changing my node key or closing my channels? This question was asked by plant-...
2 votes
1 answer
113 views

From a security standpoint, why might a desktop c-lightning user need an additional lightning wallet?

Many c-lightning tutorials on YouTube walk their listeners through the process of setting up a c-lightning node followed by the installation of a wallet like Spark-wallet. I just don't get it why do I ...
3 votes
1 answer
200 views

ONCHAIN channel state in c-lightning

What does "ONCHAIN" mean in c-lightning channel state? I guess means the channel is closed, but how to move those sats, or make them available to use in another channel, and completely ...
  • 85
9 votes
1 answer
364 views

Why doesn't c-lightning allow you to open multiple channels with the same peer?

This question was asked by various individuals on Telegram. The spec (BOLT 2) allows for multiple channels between the same two peers: Note that multiple channels can operate in parallel, as all ...
2 votes
1 answer
68 views

How to enable IPV6 on c-lightning in docker properly?

Helping to run v0.10.1 node for a client, who wants to enable IPV6. Now listconfigs say: "bind-addr": "0.0.0.0:9735" "autolisten": true Reading this: https://lightning....
  • 85
1 vote
0 answers
88 views

Should I use one `hsm_secret` for both the mainnet and the testnet?

When I launch lightningd it generates hsm_secret in ~/.lightning/bitcoin whereas launching lightningd with network=testnet generates hsm_secret in ~/.lightning/testnet. These two files seem to be ...
2 votes
2 answers
155 views

Should you be able to run a mainnet c-lightning node in parallel with a signet c-lightning node? What about an alternative Lightning implementation?

Running mainnet, testnet and signet Bitcoin Core full nodes on the same machine/same VM works fine. Is running say a c-lightning mainnet node in parallel with a c-lightning signet node on the same ...
2 votes
2 answers
48 views

Is it normal or acceptable behavior for a c-lightning plugin not to shut down after lightningd is stopped?

Is it normal if a plugin that I've written doesn't shut down (ie the Python process is still running) after I've called stop_ln (in the startup_regtest, start_ln setup)? Is the plugin opened as a ...
0 votes
1 answer
36 views

Is it possible to configure c-lightning cookie based auth to bitcoind as opposed to rpcuser/rpcpassword?

Is it possible to configure c-lightning cookie based authentication to bitcoind as opposed to rpcuser/rpcpassword? Does lightning.conf read the rpcuser/rpcpassword from bitcoin.conf? This question was ...
3 votes
1 answer
109 views

Is is possible to get routing detail of a payment in c-lightning?

I want to know how my payment was routed, how many hops, nodes and fees etc. So I can prepare my channels better. I see in the listpays, it contains info like bolt11, destination, payment_hash, but ...
  • 31
5 votes
1 answer
223 views

How can I access remote lightningd with pyln-client

I'm looking for a way to do python graph analytics on a local machine that can call a remote lightningd to get up to date nodes and edge data from the lightning node server. How do I need to configure ...
  • 51
6 votes
1 answer
171 views

What is special about blocks 540574 and 564180?

I am running c-lightning with a pruned bitcoind backend. Every day at around the same time, c-lightning asks for a specific block which is already pruned, which looks like this in the logfile (block ...
user avatar
2 votes
0 answers
50 views

How to replace `peer_id` with `alias` in c-lightning?

There are commands like lightning-cli listpeers and lightning-cli listfunds. How do I replace the peer_id in the output of the commands with the alias of the peer? I know about the jq command line ...
user avatar
2 votes
1 answer
67 views

What fee is the starting point of the closing fee negotiation?

When I issue the command lightning-cli listpeers $peerid i get a feerate perkb of 1012 atm. What feerate is this exactly? Is this the feerate which will be proposed by the other peer for a mutual ...
user avatar
1 vote
1 answer
65 views

Is it possible to change `their_to_self_delay` after a channel is open?

Rene said here that a c-lightning node is safe for around 24 hours to be offline (depending on the locktime). This is set with watchtime-blocks in the configuration file of c-ligthning. But this will ...
user avatar
4 votes
1 answer
75 views

How can I decode the feature string of a Lightning node with BOLT #9?

Typing the following command (with a running lightningd): lightning-cli listpeers I get peers which all have a features flag, for example 0252a1. In the manpage lightning-listpeers(7) it says, that ...
user avatar
1 vote
1 answer
137 views

Lightning channel in regtest closed due to update_fee of zero being out of range

I am running a testbed of c-lightning clients running inside Docker containers connected to a bitcoind back-end. I keep running into problems with channels closing because the update_fee is out of ...
  • 285
2 votes
1 answer
125 views

Syntax for c-lightning RPC commands

I am trying to use the getroute command, specified as such: getroute id msatoshi riskfactor [cltv] [fromid] [fuzzpercent] [exclude] [maxhops] Do I need to include all the elements above, or can I ...
  • 21
1 vote
1 answer
86 views

pyln.testing channel's spendable_msatoshi remains 0 in the direction towards the funder, regardless of balance

The python test script below (using the pyln-testing library) opens a channel between l1 and l2, and then the funder (l1) pays half of the channel's capacity to l2. After this payment 'l2' wants to ...
  • 285
2 votes
2 answers
199 views

Delay of a revocable transaction in the Lightning Network

The Lightning Network Whitepaper describes the concept of Revocable Sequence Maturity Contracts (RSMC), which allows a commitment transaction to be revoked during a predefined delay after the channel ...
0 votes
1 answer
60 views

How can I speed up payments to my c-lightning server?

I setup a BTCPayServer on an AWS instance with a pruned bitcoind and c-lightning. I setup an inbound channel from Bitrefill and everything does work but I'm disappointed about the performance. Using a ...
  • 274
1 vote
1 answer
302 views

Different fee rate units - sat/vB, sat perkw, sat perkb

While reading documentation of C-Lightning I found this in section about making onchain transactions with the wallet (funding and withdrawing the wallet): feerate is an optional feerate to use. It ...
  • 175
1 vote
1 answer
57 views

What is lnprototest exactly? Can it be used to test an individual Lightning implementation or just interoperability between implementations?

What is lnprototest exactly? Can it be used to test an individual Lightning implementation or just interoperability between implementations? What does an implementation need to do to use lnprototest?
3 votes
3 answers
1k views

Can a channel be closed while the funding tx is still stuck in the mempool?

I have attempted to open a channel recently, but accidentally set the fee for the funding transaction too low. Now the funding tx has been stuck in the mempool for over a week. Is there some way to ...
1 vote
1 answer
61 views

Pay private bolt11 via sendpay

I need to get fee, before send payment. BOLT11: root@855e20daeae9:/# lightning-cli --testnet decodepay ...
1 vote
1 answer
308 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' ...
  • 11