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
0answers
12 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....
1
vote
0answers
28 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 ...
2
votes
2answers
52 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
26 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
16 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 ...
2
votes
1answer
44 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
141 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 ...
6
votes
1answer
149 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
25 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
38 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
29 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
47 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
58 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
33 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
51 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 ...
2
votes
2answers
75 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
50 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
72 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
811 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
44 views

Pay private bolt11 via sendpay

I need to get fee, before send payment. BOLT11: root@855e20daeae9:/# lightning-cli --testnet decodepay ...
1
vote
1answer
110 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
46 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
87 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
20 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
105 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
115 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 ...
2
votes
1answer
96 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
126 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
31 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
63 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
197 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
55 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
192 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
86 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 ...
2
votes
1answer
387 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
66 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
78 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
40 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
191 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
77 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
415 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
58 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
129 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
56 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
136 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
111 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
68 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
213 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 ...