We’re rewarding the question askers & reputations are being recalculated! Read more.

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
7
votes
2answers
799 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 ...
6
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?
6
votes
2answers
276 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 ...
6
votes
1answer
77 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 ...
4
votes
1answer
154 views

What are the 3 arguments called in function SHA256?

void sha256(struct sha256 *sha, const void *p, size_t size) { struct sha256_ctx ctx; sha256_init(&ctx); sha256_update(&ctx, p, size); sha256_done(&ctx, sha); } I'm trying ...
4
votes
1answer
1k 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 ...
4
votes
1answer
118 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?
4
votes
1answer
281 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 ...
4
votes
1answer
52 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 ...
4
votes
1answer
492 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 ...
3
votes
1answer
426 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 ...
3
votes
2answers
393 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. ...
3
votes
1answer
145 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 ...
3
votes
1answer
51 views

How do I find the nodeid of the node issuing a lightning network invoice?

I recently got an BOLT11 invoice from a store. For example this one: ...
3
votes
1answer
149 views

Is it possible to connect to BTCPay server remote c-lightning node?

I have BTCPay server and would like to use external c-lightning node which i have funded and prefer more over BTCPay server local docker container (DC). In store configuration i see that there is ...
3
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/...
2
votes
2answers
345 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 ...
2
votes
2answers
81 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?
2
votes
1answer
25 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 ...
2
votes
1answer
99 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: ...
2
votes
1answer
63 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" : "???? ...
2
votes
1answer
358 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
87 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 ...
2
votes
2answers
321 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 ...
2
votes
1answer
78 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 ...
2
votes
1answer
30 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 ...
2
votes
1answer
51 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
32 views

Lightning Network on testnet - listchannels and listnodes returning empty values

I have setup a lightning node on testnet using c-lightning. The lightning-cli getinfo command output: { "id" : "0315a5746114ab9f3e8f0a3f2f73153ef1e4a8fb58daa54fa97c9603dfab989a30", "alias" : "...
2
votes
1answer
58 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 ...
2
votes
1answer
140 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 ...
2
votes
1answer
84 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 ...
2
votes
1answer
111 views

What is the proper way to update C-Lightning? [duplicate]

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 ...
2
votes
1answer
124 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
59 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
1answer
82 views

How to get my c-lightning node's private key?

lightning-cli getinfo outputs my node's id, which is its public key. How can I get its underlying private key?
1
vote
1answer
91 views

Lightning node on a Bitcoin SPV

is there a way to run a Lightning node on a Bitcoin SPV node at the moment? I've read that both lnd and c-lightning need a Bitcoin Fullnode at this time. This might seem ignorant but i don't want to ...
1
vote
1answer
61 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
48 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
123 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
190 views

C-Lightning update 0.6 doc

How do you update safely to 0.6 the working C-Lightning node?
1
vote
1answer
100 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 ...
1
vote
1answer
38 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 ...
1
vote
1answer
36 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?
1
vote
1answer
33 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
146 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
2answers
37 views

Why getinfo() and listchannels() inactive channel count differs?

I have strange results comparing node information outputs between getinfo() and listchannels() calls. Maybe someone has thoughts what is wrong (with my trivial code or with c-lightning itself): chans ...
1
vote
1answer
43 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:...
1
vote
1answer
58 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 ...
1
vote
1answer
90 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 ...
1
vote
1answer
213 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 ...