Skip to main content
4 votes
Accepted

How do I run a Core Lightning Node on top of Bitcoin Knots?

Yes, the two implementations are perfectly interchangeable, as long as bitcoin-cli can talk to either Bitcoin core or Bitcoin knots it should just work as expected. CLN internally actually calls out ...
cdecker's user avatar
  • 9,508
3 votes
Accepted

Core-Lightning Derviation Path

The node public key is not derived using BIP32. It's derived from the hsm_secret using an HKDF. The hsmtool utility can help you derive keys from your hsm_secret. I described in this issue how every ...
Antoine Poinsot's user avatar
3 votes
Accepted

Which binaries do I need to compile from Bitcoin Core's code for running my non-routing node as an end user?

Core Lightning directly interacts only with bitcoin-cli, which in turn interacts with bitcoind. Those are the only two binaries you will need, indipendently of whether you compiled the binaries ...
cdecker's user avatar
  • 9,508
3 votes
Accepted

Open Anchor Output channels on CoreLightning

You can set the experimental-anchors option on lightningd to enable experimental support for anchor output channels on Core Lightning.
Antoine Poinsot's user avatar
2 votes
Accepted

How to send an on-chain transaction from CLN?

I finally got this to work. Apparently, the entire outputs array has to be passed as a string with quotes escaped. So the request on the command line would look like this: lightning-cli --conf=./cln....
Zephyrus's user avatar
  • 782
2 votes
Accepted

How should I install Core Lightning if my VPS won't let me use pip install?

openoms suggested this fix on Telegram to keep using pip: sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED Christian Decker added some context around Core Lightning's use of Python in its build process:...
Michael Folkson's user avatar
2 votes
Accepted

Building/Running CLN on Debian 11

Debian is the basis for the Ubuntu distribution, as such following the Ubuntu documentation will work for Debian systems too. That aside, the error you mention indicates that one of the git submodules ...
cdecker's user avatar
  • 9,508
2 votes
Accepted

How do I send the change output from an input to fundchannel to a taproot address instead of to a SegWit v.0 address?

The documentation of the fundchannel command does not appear to make any references to parameters for setting the addresstype for the change output of a funding transaction. However, according to the ...
Murch's user avatar
  • 75.9k
2 votes
Accepted

Does a pruned node have the same chainstate/ as the unpruned one? Does not seeing historical data impact transacting?

Only the UTXO set is required to determine whether the inputs for a transaction are available for spending or the funding output for a channel remains unspent. Just like any other full nodes, pruned ...
Murch's user avatar
  • 75.9k
1 vote

Why my lightning node does RBF onchain of a tx that does not exists? (after a forced close channel with an expired HTLC)

Solved, I was able to find the raw tx in debug log, the transaction was never broadcasted but only the RBF so it did not exists. Manually broadcasting the raw tx fixed it.
Traca's user avatar
  • 11
1 vote
Accepted

Lightning Network channel reserve

These are two separate things: The funder is in charge of setting aside sufficient funds to get an eventual close to confirm. That either means they have to set the fee of commitment transactions ...
cdecker's user avatar
  • 9,508
1 vote

How should I install Core Lightning if my VPS won't let me use pip install?

The reason for the issue are changes introduced recently in Python and not the policy of your VPS. There are two solutions for this: 1. Install Python dependencies with a package manager like apt, e.g....
John Smith's user avatar
1 vote

How should I install Core Lightning if my VPS won't let me use pip install?

Check environment variables: Some Docker containers or cloud environments might restrict pip commands. Ensure variables like PIP_NO_INDEX or PIP_DISABLE_PYPI are not set to restrict package ...
sehar talokar's user avatar
1 vote

CLN config file unrecognized options

I checked your config locally and I think your main issue is that the bitcoin-datadir is not properly escaped. Your external drive name has a space in it, which may be causing the parsing to fail. I'd ...
sr_gi's user avatar
  • 3,220
1 vote
Accepted

How can I recover a Core Lightning node as safely as possible if the backups might be out of date?

This is a really good question. Is it safer to try using the emergency.recover file first? If the peer cooperates, is this completely safe? If the peer tries to cheat me, do I still have time to use ...
vincenzopalazzo's user avatar
1 vote

Unilateral closing transaction for channel stuck in mempool

This was discussed on the Core Lightning community chat in August 2023. grubles stated: You can do it manually if you use hsmtool to dump your CLN onchain descriptor, import that into bitcoind, ...
Michael Folkson's user avatar
1 vote

Sending onion messages with c-lightning

Currently, this is a little bit complicated, I think you can write a plugin to simplify this procedure by looking at the code of fetchinvoice. We have an open issue https://github.com/ElementsProject/...
vincenzopalazzo's user avatar
1 vote

Destination is not reachable directly and all routehints were unusable - how might I remedy that?

Okay the following features are regarding the dual funding protocol 2023-07-20T06:54:46.533Z UNUSUAL --connectd: Feature 28 requires feature 20 2023-07-20T06:59:47.735Z UNUSUAL --connectd: Feature 28 ...
vincenzopalazzo's user avatar
1 vote
Accepted

How to check the last commited transaction in c-lightning?

You are correct dev-sign-last-tx is indeed the command you want, but be careful, it is a dev command because it is used in integration tests to test a cheating party. Having an old fully signer ...
cdecker's user avatar
  • 9,508
1 vote
Accepted

'lightningd.sqlite3' and 'emergency.recover' are binary files, why use diff then?

If you only want to know whether or not two binary files have identical contents, diff will do the job See How to compare binary files to check if they are the same?
RedGrittyBrick's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible