lightning community – Can CLN be configured to make use of a bitcoin node operating on one other machine?

on

|

views

and

comments


CLN 0.12.1

I’ve bitcoin core operating on one machine (Debian 11) and would love arrange CLN (C-Lightning) on one other machine (Ubuntu 22.04) on the identical community. My first take a look at was to make use of the --bitcoin-... command line parameters to attempt to get this utility linked to my node.

Right here is the end result.

$ lightningd --lightning-dir=./cln-dir/ --bitcoin-rpcuser=xxxxxx --bitcoin-rpcpassword=xxxxxx --bitcoin-rpcconnect=192.168.1.38 --bitcoin-rpcport=8901

bitcoin-cli not discovered. Is bitcoin-cli (a part of Bitcoin Core) obtainable in your PATH?

Be sure you have bitcoind operating and that bitcoin-cli is in a position to connect with bitcoind.

You may confirm that your Bitcoin Core set up is prepared to be used by operating:

    $ bitcoin-cli -rpcconnect=192.168.1.38 -rpcport=8901 -rpcuser=... -rpcpassword=... echo 'whats up world'
2022-11-22T21:31:31.451Z **BROKEN** plugin-bcli: nbitcoin-cli not discovered. Is bitcoin-cli (a part of Bitcoin Core) obtainable in your PATH?nnMake certain you've got bitcoind operating and that bitcoin-cli is in a position to connect with bitcoind.nnYou can confirm that your Bitcoin Core set up is prepared to be used by operating:nn    $ bitcoin-cli -rpcconnect=192.168.1.38 -rpcport=8901 -rpcuser=... -rpcpassword=... echo 'whats up world'n
2022-11-22T21:31:31.451Z INFO    plugin-bcli: Killing plugin: exited earlier than we despatched init
The Bitcoin backend died.

I’ve bitcoin-cli on the machine I’m operating CLN on, so I attempted it once more, this time offering the bitcoin-cli command line parameter, however I bought the identical end result. If I give it the bitcoin-datadir parameter (which is definitely a listing on the opposite machine), it offers me the identical end result.

I made a decision to attempt bitcoin-cli simply to ensure it’s attainable. With bitcoin core 23.0 operating on one machine and bitcoin-cli operating on the opposite, the next command labored.

$ bitcoin-cli -rpcconnect=192.168.1.38 -rpcport=8901 -rpcuser=xxxxxx -rpcpassword=xxxxxx echo 'whats up world'
[
  "hello world"
]

Is there a strategy to run CLN with out utilizing bitcoin-cli?

I simply began attempting to set this up as we speak, so I’m not aware of CLN in any respect. Is it even attainable to do what I’m attempting to do? If that’s the case, what parameters should be set with a purpose to get it to work?

Share this
Tags

Must-read

Waymo raises $16bn to gas international robotaxi enlargement | Know-how

Self-driving automobile firm Waymo on Monday stated it raised $16bn in a funding spherical that valued the Alphabet subsidiary at $126bn.Waymo co-chief executives...

Self-driving taxis are coming to London – ought to we be anxious? | Jack Stilgoe

At the top of the nineteenth century, the world’s main cities had an issue. The streets had been flooded with manure, the unintended...

US regulators open inquiry into Waymo self-driving automobile that struck youngster in California | Expertise

The US’s federal transportation regulator stated Thursday it had opened an investigation after a Waymo self-driving car struck a toddler close to an...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here