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
0 votes
1 answer
35 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 ...
user avatar
2 votes
1 answer
133 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 ...
user avatar
  • 23
1 vote
1 answer
28 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&...
user avatar
1 vote
1 answer
60 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 ...
user avatar
  • 41
1 vote
0 answers
33 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 ...
user avatar
  • 41
3 votes
2 answers
238 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?
user avatar
  • 85
1 vote
1 answer
35 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 ...
user avatar
  • 171
1 vote
1 answer
43 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 ...
user avatar
1 vote
1 answer
39 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 ...
user avatar
2 votes
1 answer
54 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 ...
user avatar
  • 171
2 votes
1 answer
80 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 &...
user avatar
4 votes
1 answer
64 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:...
user avatar
  • 155
1 vote
1 answer
32 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("...
user avatar
3 votes
1 answer
123 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=...
user avatar
3 votes
2 answers
91 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 ...
user avatar
  • 54
2 votes
1 answer
132 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-...
user avatar
2 votes
1 answer
105 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 ...
user avatar
3 votes
1 answer
137 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 ...
user avatar
  • 85
6 votes
1 answer
306 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 ...
user avatar
2 votes
1 answer
52 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....
user avatar
  • 85
1 vote
0 answers
71 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 ...
user avatar
2 votes
2 answers
130 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 ...
user avatar
2 votes
2 answers
47 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 ...
user avatar
0 votes
1 answer
22 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 ...
user avatar
3 votes
1 answer
91 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 ...
user avatar
  • 31
5 votes
1 answer
206 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 ...
user avatar
  • 51
6 votes
1 answer
161 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
40 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
51 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
48 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
65 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
106 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 ...
user avatar
  • 275
2 votes
1 answer
83 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 ...
user avatar
  • 21
1 vote
1 answer
78 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 ...
user avatar
  • 275
2 votes
2 answers
160 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 ...
user avatar
0 votes
1 answer
56 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 ...
user avatar
  • 274
1 vote
1 answer
196 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 ...
user avatar
  • 175
1 vote
1 answer
52 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?
user avatar
3 votes
3 answers
958 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 ...
user avatar
1 vote
1 answer
53 views

Pay private bolt11 via sendpay

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

Preparing a transaction with many outpts

What would be the exact command to prepare a transaction with multiple outputs, to a specific address? I'm able to list all my outputs with lightning-cli listfunds, but I'm not sure how to include ...
user avatar
1 vote
1 answer
138 views

How to get a full view of the lightning network with c-lightning?

As I understand lightning a node should in principle have a complete view of the lightning network graph (i.e., all nodes and channels). However, I also understand that for practical reasons the view ...
user avatar
1 vote
1 answer
24 views

Why does my freshly installed lightningd not show funds that I transferred to it?

I have a box with Ubuntu, bitcoin: fully indexed, and c-lightning. I made several new addresses, and put money into one of them. The money was transferred to it in block 655761. I see the bech32 ...
user avatar
5 votes
1 answer
54 views

Is there a lightningd equivalent to bitcoind's -walletnotify or -blocknotify?

I'm looking at the docs, and I see they have lightning-notifications, but it looks like you can't configure where they go, and you can't trigger a shell script with them. Does this mean I have to have ...
user avatar
3 votes
1 answer
135 views

What are the different types of spam that the Lightning Network is subject to?

What are the different types of spam that the Lightning Network is subject to and what are the possible strategies for dealing with such spam?
user avatar
1 vote
1 answer
184 views

Connect C-lightning to a remote bitcoind through tor

I would like to connect my C-lightning node to a remote Bitcoin node, in order to be able to run lightningd on a small storage capacity VPS. I could achieve this by using clearnet connection and ...
user avatar
  • 11
2 votes
1 answer
151 views

Cannot start C-lightning after reboot

I have problems starting up C-lightning's lightningd on Debian Buster under vagrant. Steps I followed: Fresh install bitcoind Install lightningd Run rpc commands - all good. Reboot system Get the ...
user avatar
4 votes
1 answer
152 views

Cheat Lightning network (c-lightning)

I want to understand how cheat lightning network using c-lightning. I understand that if a participant of che channel send not last commitment transaction, it means that he tries to cheat. I'd like to ...
user avatar
0 votes
1 answer
42 views

Simulate HTLC in regtest c-lightning

I have three nodes in regtest environment l1, l2, and l3 l1 create a channel with l2 l2 create a channel with l3 l3 create an invoice for l1. l1 can pays it because use the route l1-l2-l3 I presume ...
user avatar