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
1 answer
33 views

c-lightning - Failed to replicate query: database disk image is malformed

When I start up lightningd with sudo systemctl start lightningd, no error is returned. When I run sudo journalctl -f -u lightningd, I get this: $ sudo journalctl -f -u lightningd -- Journal begins at ...
  • 383
5 votes
1 answer
253 views

Should I keep my Lightning node data around after decomissioning?

Let's say I have a Lightning node, and want to shut it down. All its channels have been closed, and its onchain wallet has been drained. Is there any reason why I'd want or need to keep some or part ...
3 votes
1 answer
44 views

Why isn't the backed up sqlite3 exactly same as the lightningd.sqlite3?

In the backing up page of C-Lightning, it says: The main and backup files will not be identical at every byte, but they will still contain the same data. Is there any specific reason this happens? ...
  • 383
2 votes
1 answer
110 views

CLN having issues connecting to Tor service

Suddenly started getting this error, where should I look to try and fix it? Tor version 0.4.7.10 Tor compiled with GCC version 12.2.0 and lightning v0.11.2 e: lightning_connectd: Connecting stream ...
3 votes
1 answer
42 views

How do I set the our_to_self_delay parameter?

In Core-Lightning, the default value for our_to_self_delay is set to 600. How do I change this value?
1 vote
1 answer
49 views

best btc node and lightning to run in lubuntu

I run lubuntu in my ~#missing#~. I have made multiple efforts to install umbrel, I tried it but I couldn't install to my external SSD because I run out of space. I used all the possible commands but ...
  • 11
2 votes
1 answer
44 views

Lightning node with two channels to peer not able to select funded channel

Description I have two peers: p1 and p2 running lightning-core p1 opened a channel to p2 and p2 opened another channel to p1. Now p2 has two channels. One with outbound funding and one with 0. Output ...
  • 121
3 votes
2 answers
59 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
15 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 ...
  • 462
1 vote
1 answer
25 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&...
  • 462
1 vote
1 answer
42 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-....
  • 462
0 votes
1 answer
35 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
55 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
198 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
552 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
261 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
44 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
781 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
69 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
172 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
40 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
327 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
58 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
91 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
69 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
2 answers
101 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
120 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
96 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
46 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
149 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
110 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 ...
  • 49
2 votes
1 answer
217 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
122 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
236 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
383 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
80 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
100 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
182 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
55 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
42 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
129 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
231 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
174 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
60 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
89 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
72 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
80 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
158 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
152 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
94 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