Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
28 views

lightning-cli listnodes is empty. Am I missing something?

I want the result of listnodes like the following. How can I do that? { "nodes" : [ { "nodeid" : "028e5a8e86540f703e1f58880d35d1e318a54c27d84ec1edbcde04a78ed4469a1e", "alias" : "???? ...
1
vote
1answer
28 views

What are the consequences if I spoof an IP address in the node_announcment message?

According to BOLT 07 the node accountment message looks like this: type: 257 (node_announcement) data: [64:signature] [2:flen] [flen:features] [4:timestamp] [33:node_id] [3:...
0
votes
1answer
19 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: ...
0
votes
2answers
18 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
0
votes
2answers
32 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 ...
0
votes
1answer
24 views

How to get all potential routes in c-lightning?

I'm trying to write some services on top of c-lightning and I need to check if certain payments hit certain nodes. lightning-cli getroute nodeid amount riskfactor This gives me a randomly ...
0
votes
0answers
12 views

How to upgrade docker clightning

I tried to update clightning to the new version of 0.7 by docker-compose stop docker-compose rm clightning_bitcoin docker-compose up However, it is still version 0.63 Where do I set that it is ...
1
vote
1answer
27 views

Why does my c-lightning node pay more than the invoice plus routing fees?

A friend sent me an invoice for 500,000 Satoshis. To my surprise, I sent 502294 Satoshis. Here's what I see from my c-lightning console: "msatoshi": 500,000,000 "msatoshi_sent": 502,294,595 My ...
1
vote
1answer
23 views

Clightning with BTCpay server failed

I have setup WooCommerce and BTCpayserver in Google cloud, and synced. Test to buy with BTC seems to work. Adding Lightning fails: I modified in BTCpay Lightning nodes in the Store management "...
1
vote
1answer
66 views

Is it possible to rebalance channels by sending to yourself (from a channel to an other) in c-lightning? How?

I know it is possible with LND and I don't know if it is possible with Eclair. I have tried to issue an invoice and to find a route with the same node but I got the { "code" : -1, "message" : "Could ...
1
vote
1answer
26 views

How to use remote bitcoind with docker

I want to use multiple nodes with the same remote bitcoind. E.g. my node on my desktop, my node on digital ocean, my node on Google cloud ... I don't want to run everywhere a full bitcoind and pay ...
0
votes
0answers
13 views

Why channel closed automatically

I got this message: I tried looking in the logs. Just prior to the channel closing, seems like there was a temporary network issue and the re-establishment message wasn't received by your node. ...
0
votes
1answer
22 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, "...
2
votes
1answer
28 views

Could you open a lightning channel in a confidential transaction?

On an elements sidechain (e.g. liquid) could you open a lightning channel with a confidential transaction. You could probably open a payment channel but could the channel 'speak' to other channels? Or ...
0
votes
1answer
39 views

Please help me to understand lightning-cli getinfo more

I have now clightning running for a month. I watch very often lightning-cli getinfo Here I found in the first three weeks: "msatoshi_fees_collected": 0 A week ago it changed to "...
0
votes
1answer
56 views

How to close stale lightning channels with c-lightning

I was running a lightning node using c-lightning about 9 months ago. Unfortunately the server was shutdown while a few channels were open. I have restarted the server and updated c-lightning to the ...
0
votes
1answer
45 views

How to tell if Lightning nodes are lnd, c-lightning, eclair

I am performing some experiments on the Lightning Testnet Network. I would like to perform the experiment on the 3 main lightning implementations, for which I would like to be able to connect and open ...
3
votes
1answer
90 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?
0
votes
1answer
23 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 ...
2
votes
1answer
26 views

C-lightning Implementation password protect hsm while maintaing node access

I was wondering if there was a way to encrypt the folder that contains the hsm_secret (and a lot of other operational files necessary for constant operation of a C-lightning node) without cutting it ...
0
votes
2answers
26 views

How to debug lightning-cli invoice

I tried: lightning-cli invoice 100 invoice20190126 payme and nothing happens. How to debug?
2
votes
2answers
215 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 ...
3
votes
1answer
232 views

Why did my lightning node not route payments after I have funded 5 payment channels?

I have setup a docker-compose with bitcoind and clightning. After 28 hours funding 5 channels I see nothing at all. I do not expect income, but at least that the channels are used. $ lightning-cli ...
1
vote
1answer
151 views

What are the issues of running lightning daemon with pruning node?

Most lightning implementations I came across don't officially support pruned full node. Why is pruned mode implementation a challenge? What risk am I taking when I run lnd with pruned bitcoind?
0
votes
1answer
104 views

c-lightning determine channel capacity

I'm using c-lightning to experiment with sending micropayments backwards and forwards between 2 separate nodes. One area I am experiencing great difficulty with is being able to generate an invoice ...
2
votes
1answer
86 views

lightning-cli list only my channels

After connecting to a busy lighnting node such as 03c856d2dbec7454c48f311031f06bb99e3ca1ab15a9b9b35de14e139aa663b463@testnet-lnd.htlc.me the number of channels my own lightning node knows about ...
0
votes
1answer
52 views

Lightning payment between two nodes

I'm struggling to work out how I can setup a channel between two lightning nodes so that I can send a single payment from one node to the other. I have set up two separate c-lightning nodes connected ...
4
votes
1answer
49 views

Can the lightning network be subject to DoS attacks due to message flooding?

In the current implementations of the Lightning network protocol (c-lightning, eclair and lnd), is there any check that stops spamming/flooding of channel_announcement, mode_announcement or ...
2
votes
1answer
576 views

Closing a channel in Lightning Network

I have some doubts about the closure of a lightning network channel. As far as I know, there can be (al least) 4 different scenarious: one node decides to close the channel, and the other one accept ...
2
votes
1answer
199 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. ...
2
votes
1answer
79 views

How to know that the account balance of a user needs to be updated after paying/sending an invoice?

Lets say there is a service in which users can have a few satoshis but are also able to deposite/withdraw satoshis by paying/sending a lightning invoice. Let us assume the service has some data store ...
1
vote
1answer
80 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?
2
votes
1answer
253 views

Lightning network: Open a channel with a peer that is not a full node?

Is it possible to open a channel with a peer that is not a full node? Or to exchange lightning payments between two peers that are not full nodes, they both have to open a channel with full lightning ...
2
votes
2answers
150 views

How to convert channel id from c-lightning to lnd?

Sorry for the dumb question, but I'm not very good in lightning network... So I have two daemons: c-lightning and LND. Channels from the c-lightning comes like this 505580:1917:1; Channels from the ...
2
votes
1answer
72 views

What is the proper way to update C-Lightning?

I downloaded the latest github .zip for version 0.6 and unpacked it but when I check the version I am running it returns: v0.5.2-2016-11-21-1644-g1616fcb Any idea what I did incorrectly? What's the ...
0
votes
1answer
30 views

Check which C-Lightning version I am running?

Ive downloaded and unpacked the new version 0.6 but is there anyway I can check through CLI commands which version i'm running to ensure the update worked?
1
vote
2answers
72 views

Clarification about lightning network

When I run a lightning node, I have to set up a lightning channel with, for example, a highly connected node. Here a first question: When I set up a lightning channel with a node, have I need to put ...
1
vote
1answer
301 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 ...
0
votes
1answer
113 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
242 views

c-lightning & Lightweight nodes (no local bitcoind)

I am trying to take advantage of the new release of c-lightning 0.6 that provide the ability to setup a lightweight node (i.e. No Local bitcoind instance running). But did not found any documentation ...
1
vote
1answer
160 views

C-Lightning update 0.6 doc

How do you update safely to 0.6 the working C-Lightning node?
4
votes
1answer
306 views

Lightning Payment failed (Could not find a route)

I tried to move funds between my two nodes. From A to B. 'A' node is 035ac00f3bfe7fd991ec7cd9b5fcad0bdaa338c343895e56f4ada7df181bc43622@46.101.114.3:9735 'B' node is ...
1
vote
1answer
79 views

Unable to remotely access lightning-charge

My setup is a little bit complicated and I'm almost sure that my problem is port related. So I'm running Mac OS X 10.13.4 with Parallels Desktop with a Ubuntu 14.04 VM. I managed to setup bitcoin ...
2
votes
1answer
100 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 ...
2
votes
1answer
1k views

My lightning node URI is not visible

I did set up a mainnet c-lightning node by following the guide. https://medium.com/@dougvk/run-your-own-mainnet-lightning-node-2d2eab628a8b I noticed my node is visible on https://lnmainnet.gaben.win/...
3
votes
4answers
2k views

Lightning mainnet peer list?

I just set up c-lightning on mainnet and I'd like to open a channel but I can't find a list of node ids and ip addresses. Does anyone know where I can find this?