Skip to main content

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
0 answers
28 views

What does KeyError: 'zmq-pub-channel-opened' mean?

Can anybody tell me if this is an issue when loading the zeromq plugin for Core Lightning? 2024-06-09T14:54:53.169Z INFO plugin-cl-zmq.py: Traceback (most recent call last): 2024-06-09T14:54:53....
0 votes
1 answer
40 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 ...
0 votes
1 answer
59 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 ...
2 votes
2 answers
211 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 ...
3 votes
1 answer
70 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 ...
1 vote
1 answer
39 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 (...
1 vote
1 answer
336 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'...
3 votes
1 answer
134 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 ...
0 votes
1 answer
64 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 ...
0 votes
0 answers
30 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 #******)...
4 votes
0 answers
26 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 ...
2 votes
1 answer
61 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 ...
1 vote
1 answer
63 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 ...
0 votes
1 answer
73 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 ...
2 votes
3 answers
92 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. ...
0 votes
1 answer
92 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/...
-1 votes
2 answers
63 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 ...
3 votes
1 answer
107 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?
1 vote
1 answer
119 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....
4 votes
1 answer
81 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 ...
1 vote
1 answer
47 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 ...
1 vote
0 answers
47 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 ...
3 votes
1 answer
96 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 ...
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.
1 vote
1 answer
89 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. ...
2 votes
1 answer
161 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 ...
3 votes
1 answer
115 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 ...
1 vote
1 answer
174 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:...
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. ...
2 votes
3 answers
242 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 ...
1 vote
1 answer
97 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
40 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 ...
2 votes
1 answer
65 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 ...
2 votes
1 answer
129 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 ...
5 votes
1 answer
513 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 ...
1 vote
1 answer
117 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 ...
4 votes
1 answer
279 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 ...
4 votes
1 answer
177 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 "...
2 votes
1 answer
40 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.
1 vote
1 answer
92 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 ...
2 votes
1 answer
111 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 ...
2 votes
2 answers
151 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 ...
3 votes
1 answer
233 views

Why does my c-lightning node pay more than the invoice plus routing fees?

A friend sent me an invoice for 500,000 Satoshis. To my surprise, I sent 502294 Satoshis. Here's what I see from my c-lightning console: "msatoshi": 500,000,000 "msatoshi_sent": 502,294,595 My ...
1 vote
1 answer
217 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 ...
7 votes
1 answer
315 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
59 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? ...
2 votes
1 answer
250 views

How to securely update and verify C-Lightning release?

Recently, a new version (v0.7.3) of C-Lightning was released. The GitHub page has detailed instructions on how to build the software from source, but does not provide much details as to how to update ...
2 votes
1 answer
215 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 ...
8 votes
2 answers
1k views

How to convert channel id from c-lightning to lnd?

Sorry for the dumb question, but I'm not very good in lightning network... So I have two daemons: c-lightning and LND. Channels from the c-lightning comes like this 505580x1917x1; Channels from the ...
3 votes
1 answer
80 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?