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
4
votes
1answer
162 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
76 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
26 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
138 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
32 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
246 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
79 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
19 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
38 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
43 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
36 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
66 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
37 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 ...
0
votes
1answer
82 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
29 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
141 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
44 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, "...
0
votes
2answers
36 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, ...
7
votes
2answers
1k 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 ...
0
votes
2answers
29 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\...
0
votes
1answer
54 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
115 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
2
votes
2answers
88 views

c-lightning node backup-restore

How do I restore a c-lightning node from hsm_scret? I have tried running lightningd having the backed up hsm_secret. It shows no outputs and no channels. How can I retrieve the funds in the node
1
vote
1answer
77 views

How to upgrade bitcoind in docker?

I am running the docker version for c-lightning 0.7 On a raspberry I need to clone the blockchain, but it needs version 0.17.1 Looking at the docker-compose.yml file I see: version: "3" services: ...
2
votes
1answer
49 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
57 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
31 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
111 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?
1
vote
1answer
57 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 (...
0
votes
1answer
82 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 ...
0
votes
1answer
47 views

clightning uses all my resources, … till I have to shutdown!

clightning runs for a while great. However, every second day the computer locks up, I use docker-compose for that: version: "3" services: bitcoind: image: nicolasdorier/docker-bitcoin:0.16.3 ...
0
votes
2answers
57 views

How to debug lightning-cli invoice

I tried: lightning-cli invoice 100 invoice20190126 payme and nothing happens. How to debug?
1
vote
1answer
59 views

How do I install a second independent C-lightning node on the same machine as one with an already operational node?

I have followed the steps to install a C-lightning node on my Ubuntu machine. I wanted to know if I could install configure and make a second node on the same machine where both could run in tandem?
2
votes
1answer
126 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
94 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
42 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 ...
2
votes
1answer
76 views

How run c-lightning with the local node bitcoin

I have a bitcoin-core-18.0 with on my linux mint, and I don't have downloaded the bitcoin with the ppa but I downloaded the official zip directory on site bitcoin. Now my question is, c-lightning ...
1
vote
1answer
93 views

Setting up and running multiple C-lightning nodes on same machine

I have successfully setup a C-lightning node on ubuntu using the tutorial. The problem I am having is trying to setup a second node that DOESN'T utilize the same .lightning hidden directory to run ...
1
vote
1answer
208 views

c-lightning: single tx multi-channel open stuck on CHANNELD_AWAITING_LOCKIN:We've confirmed funding, they haven't yet

I've tried to open multiple Lightning Network channels using a single Bitcoin transaction, with these steps: For every peer in PEERS (n=25) run: lightning-cli connect ${peer} lightning-cli ...
1
vote
1answer
206 views

c-lightning - CHANNELD_AWAITING_LOCKIN - Freeze

I have open 3 channels with a c-lightning node (with rompert.com and satoshis.place and HP). When I look for the funding_txid field on the blockchain the transactions are all confirms for more than ...
2
votes
2answers
395 views

Can I send/receive payments but prevent forwarding payments in Lightning Network?

Say I am using a very computationally constrained device (eg. a sensor) and it uses Lightning Network to send/receive payments. However, being computationally constrained it doesn't want to forward ...
1
vote
2answers
482 views

How to know earning LN routing fees

I am using c-lightning version:v0.6-182-g1851ebb. Is there a way to know how much I have earned routing fees? I found that lnd has lncli feereport command that shows earned fees. Does c-lightning have ...
4
votes
1answer
422 views

Why is my “spendable_msat” much lower than “msatoshi_to_us”?

Today I was attempting to send a Lightning Network payment via c-lightning, version v0.7.1-64-gbb30104, using a channel I established in 2018. Strangely, my payment kept failing even if the ...
0
votes
1answer
48 views

c-lightning - Unknown Peer

I'm trying to create a channel using c-lighting (testnet), but I keep getting an Unknown Peer error message. I used cli/lightning-cli connect which seemed to work fine. I used cli/lightning-cli ...
4
votes
1answer
150 views
0
votes
2answers
108 views

Is it possible to connect remotely to a c-lightning node with an exposed TCP port?

If you run a c-lightning node with EXPOSE_TCP set to True, it seems to me it should be possible to connect with it remotely, provided that the c-lightning RCP is listening to all incoming traffic. (IP ...
2
votes
1answer
211 views

Lightning Network : Pay a Bolt11 Invoice in multiple Payments

Is there a way to pay one Bolt 11 Invoice in multiple payments with Lightning Network? For instance this invoice total amount to pay is 5000 satoshi: ...
1
vote
1answer
75 views

invoice amount is 1200000 but I paid 1201035. What is 1035?

I paid the invoice and then I noticed I paid more than the amount of the invoice. 1201035 (I actually paid) - 1200000 (the amount of the invoice) = 1035 (?) My questions are.. What is 1035 satoshi? ...
1
vote
0answers
82 views

Error pay invoice. Ran out of routes to try after 2 attempts: see paystatus

I wanted to send some satoshis on testnet lightning network but I got "Ran out of routes to try after 2 attempts: see paystatus" error. I have a channel with 02...48 (1ML.com node ALPHA) and created ...
3
votes
2answers
481 views

Make payments Lightning without Invoice?

The Lightning-RFC defines, in BOLT #11, an invoice protocol for proof-of-payment. While this is a pretty cool feature, I was wondering if it would be possible to make a payment without such invoice. ...