Questions tagged [c-lightning]

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
1answer
130 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 ...
1
vote
1answer
90 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' ...
3
votes
1answer
35 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 ...
2
votes
2answers
43 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 ...
4
votes
1answer
145 views

What languages can I write plugins for c-lightning in?

I know that there's a Python library available for writing plugins for c-lightning. What would I need to do to for example use a JVM language like Scala?
2
votes
1answer
115 views

How to install & activate a c-lightning plugin in lightningd?

I recently stumbled across the https://github.com/lightningd/plugins github repo and wanted to install the autopilot plugin. But how can I install and activate the plugin which I downloaded from the ...
2
votes
1answer
17 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
1answer
12 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 ...
7
votes
1answer
148 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 ...
2
votes
1answer
29 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 ...
2
votes
0answers
21 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 ...
2
votes
1answer
37 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 ...
2
votes
1answer
162 views

C-lightning lightningd crashing

To run a lightning node I followed the instructions here: https://medium.com/@dougvk/run-your-own-mainnet-lightning-node-2d2eab628a8b except that I downloaded and installed bitcoind and lightningd ...
1
vote
1answer
39 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?
4
votes
2answers
294 views

How can I see how many Bitcoins my c-lightning network node has?

I am running a c-lightning node and want to know how many btc I am owning on this wallet and how many I can spend. lightning-cli listchannels does not help. What do I need to do?
1
vote
1answer
26 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 ...
4
votes
1answer
44 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 ...
3
votes
2answers
62 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 ...
1
vote
1answer
50 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 ...
1
vote
1answer
47 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 ...
3
votes
3answers
778 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 ...
0
votes
1answer
48 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 ...
1
vote
1answer
62 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 ...
4
votes
2answers
181 views

c-lightning node backup-restore

How do I restore a c-lightning node from a backed up hsm_secret ? I have tried running lightningd by replacing the generated hsm_secret with the backed-up one. It shows no output and no channel. How ...
1
vote
1answer
39 views

Pay private bolt11 via sendpay

I need to get fee, before send payment. BOLT11: root@855e20daeae9:/# lightning-cli --testnet decodepay ...
1
vote
2answers
76 views

c-lightning channel announcement/establishment issue

I've been running a c-lightning node over Tor with 2 open channel for a few months and it still hasn't forwarded any payment. Maybe it's normal due to the low amount of liquidity provided by my node, ...
1
vote
0answers
45 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 ...
1
vote
1answer
80 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 ...
1
vote
1answer
19 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 ...
5
votes
1answer
43 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 ...
4
votes
1answer
245 views

Can I test Lightning on Bitcoin regtest?

I want to do some Lightning experiments, but want to avoid the burden of synchronizing the blockchain (even testnet). Can I experiment with Lightning using regtest? Is there a manual for setting it up?...
3
votes
1answer
102 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?
1
vote
1answer
110 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 ...
1
vote
1answer
86 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 ...
6
votes
2answers
400 views

Lightning Node High Availability/High Throughput

Are there any resources/best practises on running a highly available/high throughput lightning node? If my lightning service where to take off, should I be running multiple lightning nodes or a single ...
4
votes
1answer
120 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 ...
0
votes
1answer
29 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 ...
2
votes
1answer
59 views

Sending lightning payment between TOR lighning nodes, any specific setup required?

I have two c-lightning nodes in different VMs in Qubes OS, both routed through TOR VM. They both can connect to other public nodes and establish channels with them but when I try sending satoshis ...
2
votes
1answer
50 views

Retrieve address when create a channel lightning network

I have two nodes in regtest. the first one is: $ l1-cli getinfo { "id": "02c3f99e70c8da59e428dd119d36c0a1317e5cd85218a760355b5f9b4f822f6109", "alias": "ALICE&...
0
votes
0answers
188 views

Bitcoin c-lightning node on Synology cannot connect to bitcoind

I'm trying to setup a bitcoin lightning node on my NAS (Synology), following this tutorial: https://bitcoindev.network/running-a-lightning-node-on-synology-nas/ Unfortunately I get the following error ...
3
votes
1answer
185 views

Get public or private key from address with C-lightning

I'm studying Lightning network and I use c-lightning. I can Get a new address with newaddr method, but I can't find private key. My address is bcrt1qmckts70jsq2u5886lgcq2yn7xjmp97t09zlrg, how can I ...
1
vote
1answer
77 views

How can wallet software implement automatic channel management for Lightning Network?

If I'm building a desktop Bitcoin wallet with Lightning support, and I don't want the user to have to worry about channel management, what's the way to achieve that? I've seen the autopilot solutions ...
1
vote
1answer
348 views

My lightning node is unreachable and lightning-rpc': Connection refused

I'm trying to use c-lightning on my raspberry. When start the lightning daemon I get two errors: the first one is: 2020-06-05T17:02:08.784Z DEBUG connectd: Failed to connect 10 socket: Network is ...
1
vote
1answer
60 views

Run lightning-charge on c-lightning regtest

I'm trying to run lighting-charge (https://github.com/ElementsProject/lightning-charge) on top of one of my 2 lightning (https://github.com/ElementsProject/lightning) instances. I am running 2 nodes ...
0
votes
2answers
146 views

"Cannot afford transaction"

version 0.7 clightning Listfunds shows me: 963692 satoshi available to fund channels 6280512 satoshi owned in channels 14832105 satoshi total channel capacity When I try to fund a channel with ...
1
vote
1answer
73 views

channel count differs on my site and 1ML

I wonder why: lightning-cli getinfo;listfunds { "id": "035aef5661e1a6e370db60dc0455796800afd5b51fbc12a0a8b34836b15f5d7ef6", "alias": "TWronald✅", "color": "15c315", "num_peers": 41, "...
9
votes
2answers
2k views

Running lightning in prune mode

I am running lightning with the LND implementation and a full node. Nevertheless, I heard that it is possible to use Lighting in pruned mode. How is this possible? I read in the LND install ...
2
votes
2answers
38 views

Exact syntax for lightning-cli txprepare

I have tried many different forms but I cannot prepare a transaction with lightning-cli txprepare from the Linux prompt. lightning-cli txprepare [{\"bc1qvzr0mwps952d0cdmchyd2pe5rlee5tfces5dzf\":\"all\...
1
vote
1answer
72 views

c-lightning missing outputs

A few days ago I did a submarine swap in order to rebalance a channel of mine. I opted to be refunded on-chain using a brand-new address generated with c-lightning newaddr command. I used the p2sh ...
0
votes
3answers
147 views

Sharing the lightning-rpc socket

I'm using user "lightning" to start the daemon, but would like to have user "bitcoin" to make the lightning-cli calls. How do I share the lightning-rpc file to do so? Thanks! Francois