feat: implement Core Lightning gRPC backend (#98)

Some remaining issues with current implementation:

Some remaining issues with current implementation:

* Some calls require shell access to lightning-cli as some gRPC calls are not yet implemented
* Getting on-chain fund flows is not as nice as it is with LND and required access to the Core Lightning SQlite database
* With current API you can only get current outputs
* High probability of bugs arising

closes #45
This commit is contained in:
fusion44 2022-06-04 14:10:44 +02:00 committed by GitHub
parent bb6d6a6bff
commit de9a96e621
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 6240 additions and 463 deletions

View file

@ -71,8 +71,10 @@ bitcoind_zmq_block_port_testnet=28332
bitcoind_user=raspibolt
bitcoind_pw=please_please_update_me_please
# lnd or clightning (clightning is not yet implemented!)
ln_node=lnd
# lnd_grpc, cln_grpc
# Please refer to the documentation for the install procedure
# for each implementation.
ln_node=lnd_grpc
# LND macaroon in HEX format
lnd_macaroon=0201036...2211
# LND certificate in HEX format
@ -81,6 +83,16 @@ lnd_grpc_ip=192.168.1.18
lnd_grpc_port=10009
lnd_rest_port=8080
# cln grpc connection data, cert files are in .lightning data folder
# xxd -p -c2000 client.pem
cln_grpc_cert="2d2d2d2d2d...d2d2d2d0a"
# xxd -p -c2000 client-key.pem
cln_grpc_key="2d2d2d2d2d...d2d2d2d0a"
# xxd -p -c2000 ca.pem
cln_grpc_ca="2d2d2d2d2d...d2d2d2d0a"
cln_grpc_ip=127.0.0.1
cln_grpc_port=9537
# Tor url of this system. Ignored on platform Raspiblitz.
# Defaults to empty string
# np_tor_address=""