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
23 views

Open Anchor Output channels on CoreLightning

I want to open a channel from my CoreLightning node to my LND node, and I want that channel to use anchor outputs to be used for the channel closing later on. How can I enforce my CoreLightning node ...
Dalit Sairio's user avatar
1 vote
0 answers
28 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
  • 169
1 vote
1 answer
53 views

How to send an on-chain transaction from CLN?

CLN 23.02.2 I'm trying to send an on-chain transaction from a CLN node. It requires two calls from the command line client, one to txprepare and the other to txsend. But I can't get txprepare to work. ...
Zephyrus's user avatar
  • 658
0 votes
1 answer
40 views

Is it possible to setup Lightning Network Nostr tipping using Bolt12 offers?

I see that NIP-57 references / depends on the LNURL specification, which references LUD-06 and LUD-16. As someone still rather new to all the various specifications, can somebody explain to me in ...
Aaron's user avatar
  • 1
2 votes
1 answer
67 views

How can I recover a Core Lightning node as safely as possible if the backups might be out of date?

Suppose my Core Lightning node has suffered a catastrophic failure. I have a copy of the HSM secret. I also have copies of the emergency.recover file and the backup file maintained by the backup ...
Steve's user avatar
  • 171
3 votes
1 answer
59 views

Unilateral closing transaction for channel stuck in mempool

I've now had an unilateral closing of a channel stuck in the mempool for over two months. I want to transfer the unconfirmed sum to another wallet, so I want to create a new transaction which also is ...
Gimberg's user avatar
  • 79
1 vote
1 answer
41 views

Sending onion messages with c-lightning

I have a simulated network of 3 CLightning nodes, A,B, and C. I want to use the sendonionmessage command to send a message from A to C going through B and then the response coming back to A through B. ...
Amin Bashiri's user avatar
0 votes
1 answer
41 views

HTLC routing issues in custom LN plugin (c-lightning) on regtest network

I am working on a custom routing plugin for CLN on a regtest network. My goal is to compare its performance against the classical rebalancing plugin provided by the CLN community. Now I am trying to ...
dancingsushi's user avatar
0 votes
1 answer
89 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:...
John Smith's user avatar
1 vote
1 answer
185 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
2 votes
1 answer
47 views

How to check the last commited transaction in c-lightning?

Playing with c-lightning on regtest I would like to see the last valid transaction for a channel. The closest related developer command I found to do that was dev-sign-last-tx. It seems to produce ...
Lagrang3's user avatar
1 vote
1 answer
37 views

'lightningd.sqlite3' and 'emergency.recover' are binary files, why use diff then?

It is written in the documentation for core-lightning: Copy the contents of the $LIGHTNINGDIR to the BTRFS mount point. Copy the entire directory, then chown -R the copy to the user who will run the ...
John Smith's user avatar
2 votes
1 answer
105 views

Does specifying the optional passphrase after regenerating a wallet with the same BIP39 word list as earlier create a new, different and empty wallet?

A core-lightning user generated years ago a wallet with a BIP39 word list and lightning-hsmtool generatehsm hsm_secret without specifying an optional passphrase, then moved their Bitcoin there, funded ...
John Smith's user avatar
5 votes
1 answer
500 views

What are 'accounts.sqlite3' and 'emergency.recover' and why might I want to back them up?

accounts.sqlite3 and emergency.recover are created in my ~/.lightning/bitcoin when I launch lightningd - they weren't created there some years ago. What are accounts.sqlite3 and emergency.recover and ...
John Smith's user avatar
4 votes
1 answer
135 views

Is there anyway to find a lighting payment request preimage after it is paid if you aren’t the sending or receiving node?

From what I understand, the preimage is publicly revealed when the lightning payment request is paid as a part of the transaction. Is there any way to find that transaction and therefore the preimage ...
cool171's user avatar
  • 41
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 "...
timmornYE's user avatar
  • 125
2 votes
1 answer
33 views

What would maxdelay practically be used for in the Core Lightning pay plugin?

What would maxdelay practically be used for in the Core Lightning pay plugin? This was asked on Telegram.
Michael Folkson's user avatar
3 votes
1 answer
58 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 ...
Angelo's user avatar
  • 413
6 votes
1 answer
294 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 ...
Pieter Wuille's user avatar
3 votes
1 answer
57 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? ...
Angelo's user avatar
  • 413
2 votes
1 answer
174 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 ...
user209474's user avatar
3 votes
1 answer
65 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?
Tasos Sidiropoulos's user avatar
1 vote
1 answer
83 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 ...
Iasonas's user avatar
  • 11
2 votes
1 answer
93 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 ...
timmornYE's user avatar
  • 125
3 votes
2 answers
97 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 ...
kostjaigin's user avatar
1 vote
1 answer
21 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 ...
Zephyrus's user avatar
  • 658
1 vote
1 answer
34 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&...
Zephyrus's user avatar
  • 658
1 vote
1 answer
103 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-....
Zephyrus's user avatar
  • 658
0 votes
1 answer
45 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 ...
dancingsushi's user avatar
2 votes
2 answers
126 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? ...
Steve's user avatar
  • 171
2 votes
1 answer
236 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 ...
Michael Folkson's user avatar
4 votes
1 answer
600 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
Arjun Reddy's user avatar
2 votes
2 answers
405 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 ...
Gabriel Rebello's user avatar
0 votes
1 answer
54 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 ...
John Smith's user avatar
4 votes
1 answer
1k 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 ...
k00b's user avatar
  • 43
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&...
Anders Helseth's user avatar
1 vote
1 answer
207 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 ...
t480625's user avatar
  • 41
1 vote
0 answers
46 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 ...
t480625's user avatar
  • 41
3 votes
2 answers
390 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?
SMS's user avatar
  • 85
1 vote
1 answer
77 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 ...
Efe's user avatar
  • 383
1 vote
1 answer
111 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 ...
Michael Folkson's user avatar
1 vote
1 answer
98 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 ...
John Smith's user avatar
2 votes
2 answers
129 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 ...
Efe's user avatar
  • 383
2 votes
1 answer
176 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 &...
John Smith's user avatar
4 votes
1 answer
111 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:...
saiy2k's user avatar
  • 175
1 vote
1 answer
59 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("...
John Smith's user avatar
3 votes
1 answer
163 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=...
John Smith's user avatar
3 votes
2 answers
123 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 ...
Gimberg's user avatar
  • 79
2 votes
1 answer
287 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-...
Michael Folkson's user avatar
2 votes
1 answer
135 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 ...
John Smith's user avatar