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
1 vote
1 answer
34 views

Why my lightning node does RBF onchain of a tx that does not exists? (after a forced close channel with an expired HTLC)

I am using lightning core and I had a force close channel with an active HTLC, funds were sent from this address bc1qca5lwlfv8qzkchcfqdryfl89szuk2n0c3x2p7vt4gst04keygkns4x68hh to myself (...
Traca's user avatar
  • 11
3 votes
1 answer
99 views

How do I run a Core Lightning Node on top of Bitcoin Knots?

Recently, Giacommo Zucco mentioned that he runs Bitcoin Knots instead of Bitcoin Core. As far as I know, he is an experienced Lightning user and so there must be a way in which he runs his lightning ...
John Smith's user avatar
0 votes
1 answer
50 views

Lightning Network channel reserve

How is the calculation of the amount of sats reserved to pay fees in L1 in case of having to launch a penalty transaction or make a forced closure of a channel? In bolt2 I have read that 1% of the ...
polespinasa's user avatar
0 votes
0 answers
20 views

What are gossip_store flags and why do I get the messages about dying channels?

I have a couple of private channels in my Core Lightning node that runs over Tor. Today it logged: lightningd: Server started with public key ***************************, alias ******** (color #******)...
John Smith's user avatar
2 votes
1 answer
55 views

How do I send the change output from an input to fundchannel to a taproot address instead of to a SegWit v.0 address?

Is there a way send the change output from an input to fundchannel to a taproot address instead of to a SegWit v.0 address? I have only one large utxo in onchain funds of my Core Lightning node. Its ...
John Smith's user avatar
4 votes
0 answers
23 views

How do I negotiate the opening of a larger than 16777215 sats channel on a Core Lightning node?

Core Lightning's describes a maximum amount that can be given as a parameter to lightning-cli fundchannel: The value cannot be less than the dust limit, currently set to 546, nor more than 16777215 ...
John Smith's user avatar
1 vote
1 answer
53 views

Does a pruned node have the same chainstate/ as the unpruned one? Does not seeing historical data impact transacting?

Let's assume that I have two identical clearnet-only Bitcoin Core nodes on the same ethernet LAN. I then moved 1BTC on the same day of October of 2021 to the Core Lightning wallets connected to those ...
John Smith's user avatar
2 votes
3 answers
82 views

How should I install Core Lightning if my VPS won't let me use pip install?

I tried to install Core Lightning on a Ubuntu Digital Ocean droplet using these installation instructions and it won't let me pip install anything giving me an error externally-managed-environment. ...
Michael Folkson's user avatar
-1 votes
2 answers
49 views

Can I add Lightning-Core to bitcoin-qt full node?

I am interested in running lightning core, but the instructions say Bitcoind is required. I am running a full bitcoin-qt node on Linux Mint Ubuntu. Will lightning core work with qt or, if not, is ...
user148239's user avatar
3 votes
1 answer
91 views

Core-Lightning Derviation Path

What derivation path does Core-Lightning use to end up at the Node Public Key (and private key), given a mnemonic seed?
Dalit Sairio's user avatar
0 votes
1 answer
74 views

How I can install Bitcoin Core Light Node (not Full Node) on a CentOs server?

How I can install Bitcoin Core Light Node (not Full Node) on a CentOs server? That I can use it with bitcoind and bitcoind-cli and RPC (https://en.bitcoin.it/wiki/Original_Bitcoin_client/...
Valentin Borisenko's user avatar
1 vote
1 answer
113 views

Which binaries do I need to compile from Bitcoin Core's code for running my non-routing node as an end user?

I need Bitcoin Core only for running my non-routing core-lightning node (private channels only) as an end user (not as a developer)? The lightning node is to be run on the same machine as bitcoin core....
John Smith's user avatar
0 votes
1 answer
37 views

I have upgraded my raspiblitz v 1.7.2 directly to v 1.10. After restart and "upgrade" it shows "sparco-host=0.0.0.0: unknown option" in logs

I was lazy and have upgraded my raspiblitz v 1.7.2 directly to v 1.10 instead of going through 1.8, 1.9. After restart and selecting "upgrade" it continuously shows "Lightning : prepare ...
Victor Pakhomov's user avatar
4 votes
1 answer
79 views

CLN config file unrecognized options

I'm trying to get CLN connected to a running Bitcoin Core node, but it is telling me I have unrecognized options in my config file. I thought the problem was that the data directory for the bitcoin ...
Zephyrus's user avatar
  • 782
1 vote
1 answer
43 views

Building/Running CLN on Debian 11

Is there a way to build or run CLN on Debian 11? The docs/INSTALL.md file lists several operating systems, but none of them is Debian. I tried following the directions for Ubuntu, but that resulted in ...
Zephyrus's user avatar
  • 782
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
3 votes
1 answer
85 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
33 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
1 answer
81 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
  • 782
0 votes
1 answer
67 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
122 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
94 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
48 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
52 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
1 vote
1 answer
152 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
305 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
56 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
  • 130
1 vote
1 answer
38 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
126 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
509 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
221 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
147 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
39 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
67 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
  • 423
6 votes
1 answer
310 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
  • 423
2 votes
1 answer
206 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
78 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
89 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
104 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
113 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
22 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
  • 782
1 vote
1 answer
36 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
  • 782
1 vote
1 answer
136 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
  • 782
0 votes
1 answer
53 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
146 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
246 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
617 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
451 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
58 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