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
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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?
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 ...
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
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' ...
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 ...
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 ...
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 ...
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 ...
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&...
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 ...
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, ...
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\...
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
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 ...
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 ...
2
votes
1answer
57 views

"private" agreement between two c-lightning nodes on channel closure fee

When i was at LNConf, one of the devs of c-lightning (IIRC) told me that there is a custom, manual way to agree between two nodes on channel closing fees. Can anyone elaborate how this is possible? I ...
0
votes
1answer
125 views

Bidirectional channel opening in c-lightning

With the current version of c-lightning is it possible to open a bidirectional channel funded by both parties? I managed to open a channel with fundchannel command, but that seems to be a ...
0
votes
1answer
54 views

Doubt on lightning channel opening

It's 5 days since I opened my first (and unique, for now) lightning channel. Unfortunately it seems that only me have funded the channel while the counterparty didn't, so the channel it's actually a ...
3
votes
2answers
135 views

What is the difference between listpeers vs listnodes commands?

In c-lightning implementation, what is the difference between the listpeers and listnodes commands of lightning-cli?
0
votes
1answer
108 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 ...
1
vote
1answer
66 views

lightning node data visibility on explorers

I'm trying to set my first c-lightning node with docker-compose using image from https://hub.docker.com/r/elementsproject/lightningd. currently, my node can connect and open channel with other nodes (...
2
votes
1answer
203 views

How to capture c-lightining logs?

Where does c-lightning save its debug.log file? I know you can run the lightning daemon with --log-level=debug and access the logs in the terminal. But, I run my node on a remote server and I access ...
3
votes
1answer
211 views

Generating Lightning invoice with an optional parameter

I have a question on the command invoice with the optional parameter. I don't understand how to create the invoice with the optional parameter. The c-lighitning documentations do not have an example ...
1
vote
1answer
58 views

How create a personal node c-lighting for create a new channel with other node

I want to create my personal node to create a new channel with another personal node, an example my node with URL 12345678@192.164.1.7 I want create a channel with another personal node. I could not ...