mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-27 02:01:53 +01:00
Core Lightning renamings
This commit is contained in:
parent
b2a3b0b95d
commit
212d163906
@ -28,7 +28,7 @@
|
||||
- Update: BTCPayServer 1.6.1 [details](https://github.com/btcpayserver/btcpayserver/releases/tag/v1.6.1)
|
||||
- Update: Mempool 2.4.0 [details](hhttps://github.com/mempool/mempool/releases/tag/v2.4.0)
|
||||
- Update: Helipad (Podcasting 2.0 Boostagram reader) v0.1.10 [details](https://github.com/Podcastindex-org/helipad/releases/tag/v0.1.10)
|
||||
- Update: Adapted Umbrel Migration for new 0.5.0 version with core lightning
|
||||
- Update: Adapted Umbrel Migration for new 0.5.0 version with Core Lightning
|
||||
- Info: Run RaspiBlitz on amd64 bare metal and virtual machines [details](https://github.com/rootzoll/raspiblitz/tree/dev/alternative.platforms)
|
||||
|
||||
## What's new in Version 1.7.2 of RaspiBlitz?
|
||||
@ -78,7 +78,7 @@ There was a small patch-update with raspiblitz-v1.7.1-2021-10-28.img.gz to fix a
|
||||
- New: C-lightningREST v0.5.1 [details](https://github.com/Ride-The-Lightning/c-lightning-REST/releases/tag/v0.5.1)
|
||||
- New: CL Spark Wallet v0.3.0rc with BOLT12 offers [details](https://github.com/shesek/spark-wallet/releases)
|
||||
- New: CL plugin: Sparko [details](https://github.com/fiatjaf/sparko)
|
||||
- New: CL plugin: CLBOSS The C-Lightning Node Manager [details](https://github.com/ZmnSCPxj/clboss#clboss-the-c-lightning-node-manager)
|
||||
- New: CL plugin: CLBOSS The Core Lightning Node Manager [details](https://github.com/ZmnSCPxj/clboss#clboss-the-c-lightning-node-manager)
|
||||
- New: Refactored Setup-Process [details](https://github.com/rootzoll/raspiblitz/issues/1126#issuecomment-829757665)
|
||||
- New: Suez - channel visualization for LND and CL [info](https://github.com/rootzoll/raspiblitz/issues/2366#issuecomment-939521302)[details](https://github.com/prusnak/suez)
|
||||
- New: LND Static Channel Backup to Nextcloud
|
||||
|
66
README.md
66
README.md
@ -3,11 +3,11 @@
|
||||
|
||||
_Build your own Lightning & Bitcoin Fullnode on a RaspberryPi with a nice Display._
|
||||
|
||||
`Version 1.8.0 with lnd 0.15.0 & c-lightning 0.11.2 and bitcoin 23.0.0`
|
||||
`Version 1.8.0 with lnd 0.15.0 & Core Lightning 0.11.2 and bitcoin 23.0.0`
|
||||
|
||||

|
||||
|
||||
**The RaspiBlitz is a do-it-yourself Lightning Node (LND and/or c-lightning) running together with a Bitcoin-Fullnode on a RaspberryPi (1TB SSD) and a nice display for easy setup & monitoring.**
|
||||
**The RaspiBlitz is a do-it-yourself Lightning Node (LND and/or Core Lightning) running together with a Bitcoin-Fullnode on a RaspberryPi (1TB SSD) and a nice display for easy setup & monitoring.**
|
||||
|
||||
RaspiBlitz is mainly targeted for learning how to run your own node decentralized from home - because: Not your Node, Not your Rules.
|
||||
Discover & develop the growing ecosystem of the Lightning Network by becoming a full part of it.
|
||||
@ -64,7 +64,7 @@ Build it as part of a [workshop](WORKSHOP.md) or as a weekend project yourself.
|
||||
- [LND StaticChannelBackup on Nextcloud](#lnd-staticchannelbackup-on-nextcloud)
|
||||
- [StaticChannelBackup on USB Drive](#staticchannelbackup-on-usb-drive)
|
||||
- [StaticChannelBackup per SCP/SSH to other server](#staticchannelbackup-per-scpssh-to-other-server)
|
||||
- [C-LIGHTNING NODE](#c-lightning-node)
|
||||
- [CORE LIGHTNING NODE](#c-lightning-node)
|
||||
- [CL CLBOSS Automatic Node Manager](#cl-clboss-automatic-node-manager)
|
||||
- [CL Wallet Encryption](#cl-wallet-encryption)
|
||||
- [SERVICES: Activate/Deactivate Services](#services-activatedeactivate-services)
|
||||
@ -84,9 +84,9 @@ Build it as part of a [workshop](WORKSHOP.md) or as a weekend project yourself.
|
||||
- [PyBlock](#pyblock)
|
||||
- [Channel Tools (chantools)](#channel-tools-chantools)
|
||||
- [Sphinx Relay Server](#sphinx-relay-server)
|
||||
- [C-Lightning RTL Webinterface](#c-lightning-rtl-webinterface)
|
||||
- [C-Lightning Sparko Webwallet](#c-lightning-sparko-webwallet)
|
||||
- [C-Lightning Spark Webwallet](#c-lightning-spark-webwallet)
|
||||
- [Core Lightning RTL Webinterface](#c-lightning-rtl-webinterface)
|
||||
- [Core Lightning Sparko Webwallet](#c-lightning-sparko-webwallet)
|
||||
- [Core Lightning Spark Webwallet](#c-lightning-spark-webwallet)
|
||||
- [SYSTEM: Monitoring & Configuration](#system-monitoring--configuration)
|
||||
- [CONNECT: Connect Apps & Credentials](#connect-connect-apps--credentials)
|
||||
- [MOBILE: Mobile Wallet Apps (Smartphone)](#mobile-mobile-wallet-apps-smartphone)
|
||||
@ -106,7 +106,7 @@ Build it as part of a [workshop](WORKSHOP.md) or as a weekend project yourself.
|
||||
- [SOFTWARE: Run Software Tests (DebugReport)](#software-run-software-tests-debugreport)
|
||||
- [BACKUP-LND: Backup your LND data (Rescue-File)](#backup-lnd-backup-your-lnd-data-rescue-file)
|
||||
- [RESET-LND: Delete LND & start a node/wallet](#reset-lnd-delete-lnd--start-a-nodewallet)
|
||||
- [REPAIR-CL: Repair/Backup C-Lightning](#repair-cl-repairbackup-c-lightning)
|
||||
- [REPAIR-CL: Repair/Backup Core Lightning](#repair-cl-repairbackup-c-lightning)
|
||||
- [MIGRATION: Migrate Blitz Data to new Hardware](#migration-migrate-blitz-data-to-new-hardware)
|
||||
- [COPY-SOURCE: Offer your Blockchain to another RaspiBlitz for Setup](#copy-source-offer-your-blockchain-to-another-raspiblitz-for-setup)
|
||||
- [RESET-CHAIN: Delete Blockchain and Re-Download](#reset-chain-delete-blockchain-and-re-download)
|
||||
@ -325,7 +325,7 @@ Also check the [setup documentation](#setup-process-detailed-documentation) for
|
||||
|
||||
2. If you have a hardware problem, please check that your hardware parts are exactly the parts recommended in the shopping list above. Different screens or even SSD-casings can cause problems.
|
||||
|
||||
3. Please determine if your problem/question is about RaspiBlitz or for example with LND or c-lightning. For example if you can't route a payment or get an error when opening a channel that is an LND/c-lightning question/problem and is best answered by the [LND dev community](https://dev.lightning.community) or the [c-lightning documentation](https://lightning.readthedocs.io/)
|
||||
3. Please determine if your problem/question is about RaspiBlitz or for example with LND or Core Lightning. For example if you can't route a payment or get an error when opening a channel that is an LND/Core Lightning question/problem and is best answered by the [LND dev community](https://dev.lightning.community) or the [Core Lightning documentation](https://lightning.readthedocs.io/)
|
||||
|
||||
4. Go to the GitHub issues of the RaspiBlitz: [https://github.com/rootzoll/raspiblitz/issues](https://github.com/rootzoll/raspiblitz/issues) Do a search there. Also check closed issues by removing 'is:open' from the filter/search-box.
|
||||
|
||||
@ -387,7 +387,7 @@ The name you choose for your RaspiBlitz will also be used as your public alias o
|
||||
|
||||
Then you can choose which Lightning implementation you want to run on top of your Bitcoin Fullnode.
|
||||
RaspiBlitz started with `LND` from Lightning Labs which is used by most other RaspberryPi lightning nodes and works with most additional apps.
|
||||
But you can now also choose `CL` for c-lightning by Blockstream which is a good choice for more experienced node operators & lightning developers that want to use the highly customizable plugin structure that c-lightning offers.
|
||||
But you can now also choose `CL` for Core Lightning by Blockstream which is a good choice for more experienced node operators & lightning developers that want to use the highly customizable plugin structure that Core Lightning offers.
|
||||
|
||||
It's also possible to use both lightning node implementations in parallel on your RaspiBlitz later on - just pick one to start with for now.
|
||||
|
||||
@ -395,7 +395,7 @@ Choose `NONE` if you're only interested in running a Bitcoin full node without L
|
||||
|
||||

|
||||
|
||||
_In the following we show the setup with LND - which is very similar to the steps with c-lightning._
|
||||
_In the following we show the setup with LND - which is very similar to the steps with Core Lightning._
|
||||
|
||||
If you chose to use one of the lightning implementations you will now be asked if you want to start a `NEW` wallet/lightning node or if you have an `OLD` lightning wallet/node that you want to re-create.
|
||||
|
||||
@ -407,12 +407,12 @@ Normally you just chose `NEW` here, but to recover an old wallet you have the fo
|
||||
|
||||
#### LNDRESCUE LND tar.gz-Backupfile (BEST)
|
||||
|
||||
Choose this option if you have made a complete backup of the LND or c-lightning data and have a tar.gz file starting with the word 'lnd-rescue' or 'cl-rescue' available.
|
||||
Choose this option if you have made a complete backup of the LND or Core Lightning data and have a tar.gz file starting with the word 'lnd-rescue' or 'cl-rescue' available.
|
||||
It will recover all your on-chain funds and open channels you had.
|
||||
But you have to make sure that the rescue backup you have is really the latest version - otherwise you might lose channel funds.
|
||||
|
||||
_If you have tar.gz file that starts with 'raspiblitz', that's a migration file.
|
||||
That also includes your old LND/c-lightning wallet, but you import that file at the beginning of the setup process with 'FROMBACKUP - Upload Migration Backup' instead choosing FRESHSETUP_
|
||||
That also includes your old LND/Core Lightning wallet, but you import that file at the beginning of the setup process with 'FROMBACKUP - Upload Migration Backup' instead choosing FRESHSETUP_
|
||||
|
||||
#### SEED+SCB Words Seed & channel.backup file (OK)
|
||||
|
||||
@ -576,7 +576,7 @@ It's just for one-time info._
|
||||
|
||||
#### LIGHTNING (Basic Node Management)
|
||||
|
||||
Under `LND/c-lightning Wallet options` you will find some basic tools for managing your Lightning node.
|
||||
Under `LND/Core Lightning Wallet options` you will find some basic tools for managing your Lightning node.
|
||||
These are very simplified in the RaspiBlitz SSH menu for learning purposes.
|
||||
For more advanced management of your Lightning node see additional apps under `SERVICES`.
|
||||
|
||||
@ -726,7 +726,7 @@ With ZeroTier you can add your RaspiBlitz to a software defined network - see fo
|
||||
##### LND LIGHTNING LABS NODE
|
||||
|
||||
This needs to be switched on to see the sub-settings options for LND.
|
||||
If switched on it means the LND lightning node implementation is installed and running on your RaspiBlitz - it can run in parallel to c-lightning.
|
||||
If switched on it means the LND lightning node implementation is installed and running on your RaspiBlitz - it can run in parallel to Core Lightning.
|
||||
If activated you will find an additional option in the SSH Main Menu that offers you more options for operating the LND node.
|
||||
Also under `SERVICES` some apps might only be available if LND is activated.
|
||||
|
||||
@ -789,31 +789,31 @@ and you can optionally set custom options for the SCP command (for example to se
|
||||
|
||||
On the target server add the root ssh public key of your RaspiBlitz to the `authorized_keys` file for the user - how to do this see: <https://www.linode.com/docs/security/authentication/use-public-key-authentication-with-ssh/>
|
||||
|
||||
##### C-LIGHTNING NODE
|
||||
##### CORE LIGHTNING NODE
|
||||
|
||||
This needs to be switched on to see the sub-settings options for c-lightning.
|
||||
This needs to be switched on to see the sub-settings options for Core Lightning.
|
||||
If switched on it means the c-lighting node implementation is installed and running on your RaspiBlitz - it can run in parallel to LND.
|
||||
If activated you will find an additional option in the SSH main menu that offers you more options to operate the c-lightning node.
|
||||
Also under `SERVICES` some apps might only be available if c-lightning is activated.
|
||||
If activated you will find an additional option in the SSH main menu that offers you more options to operate the Core Lightning node.
|
||||
Also under `SERVICES` some apps might only be available if Core Lightning is activated.
|
||||
|
||||
For more details on this lightning node implementation go to the [c-lightning FAQ page](FAQ.cl.md).
|
||||
For more details on this lightning node implementation go to the [Core Lightning FAQ page](FAQ.cl.md).
|
||||
|
||||
##### CL CLBOSS Automatic Node Manager
|
||||
|
||||
CLBOSS is an automated manager for C-Lightning routing payments nodes.
|
||||
CLBOSS is an automated manager for Core Lightning routing payments nodes.
|
||||
CLBOSS is effectively a bunch of heuristics modules wired together to a regular clock to continuously monitor your node.
|
||||
|
||||
Find more info at the [CLBOSS GitHub](https://github.com/ZmnSCPxj/clboss).
|
||||
|
||||
##### CL Wallet Encryption
|
||||
|
||||
You can protect your c-lightning wallet by encrypting it with your password C.
|
||||
On every system restart you will need to decrypt/unlock with that password before c-lightning can use the wallet.
|
||||
You can protect your Core Lightning wallet by encrypting it with your password C.
|
||||
On every system restart you will need to decrypt/unlock with that password before Core Lightning can use the wallet.
|
||||
This adds some physical security for example in case your node get stolen.
|
||||
|
||||
#### SERVICES: Activate/Deactivate Services
|
||||
|
||||
The RaspiBlitz offers further Services, Apps and configuration (scroll down to see all options in the RaspiBlitz) also some Apps & Services might just be available if you installed/activated LND or c-lightning:
|
||||
The RaspiBlitz offers further Services, Apps and configuration (scroll down to see all options in the RaspiBlitz) also some Apps & Services might just be available if you installed/activated LND or Core Lightning:
|
||||
|
||||

|
||||
|
||||
@ -910,7 +910,7 @@ make the BitcoinMinds.org educational link collection locally available on your
|
||||
|
||||
##### RTL Webinterface
|
||||
|
||||
The RTL Webinterface is available as an LND & c-lightning control dashboard you can run in your browser with a nice GUI.
|
||||
The RTL Webinterface is available as an LND & Core Lightning control dashboard you can run in your browser with a nice GUI.
|
||||
It offers much more control over your Lightning node than the RaspiBlitz SSH menus.
|
||||
It's recommended to give it a try.
|
||||
|
||||
@ -996,21 +996,21 @@ To use the mobile app with your own RaspiBlitz you need to install the [Sphinx R
|
||||
|
||||
After install, you will see a new `SPHINX` option in the SSH main menu - it will give you all the information you need to start using it.
|
||||
|
||||
##### C-Lightning RTL Webinterface
|
||||
##### Core Lightning RTL Webinterface
|
||||
|
||||
The same RTL as above but running with c-lightning node.
|
||||
The same RTL as above but running with Core Lightning node.
|
||||
Can run parallel to the LND version.
|
||||
See details above.
|
||||
|
||||
##### C-Lightning Sparko Webwallet
|
||||
##### Core Lightning Sparko Webwallet
|
||||
|
||||
WalletUI & HTTP-RPC bridge for c-lightning
|
||||
WalletUI & HTTP-RPC bridge for Core Lightning
|
||||
|
||||
<https://github.com/fiatjaf/sparko#the-sparko-plugin>
|
||||
|
||||
##### C-Lightning Spark Webwallet
|
||||
##### Core Lightning Spark Webwallet
|
||||
|
||||
WalletUI for c-lightning with BOLT12 offers
|
||||
WalletUI for Core Lightning with BOLT12 offers
|
||||
|
||||
<https://github.com/shesek/spark-wallet#progressive-web-app>
|
||||
|
||||
@ -1030,9 +1030,9 @@ This feature should support connecting your RaspiBlitz to a mobile wallets or ot
|
||||
|
||||

|
||||
|
||||
At the moment the following mobile wallets are supported - some are only available if LND or c-lightning is activated:
|
||||
At the moment the following mobile wallets are supported - some are only available if LND or Core Lightning is activated:
|
||||
|
||||
- [Zeus (iOS/Android)](https://github.com/ZeusLN/zeus) (LND & c-lightning)
|
||||
- [Zeus (iOS/Android)](https://github.com/ZeusLN/zeus) (LND & Core Lightning)
|
||||
- [Zap (iOS/Android)](https://www.zaphq.io/) (only LND)
|
||||
- [Fully Noded (iOS over Tor)](https://apps.apple.com/us/app/fully-noded/id1436425586)
|
||||
- [SendMany (Android)](https://github.com/fusion44/sendmany/blob/master/README.md) (only LND)
|
||||
@ -1177,7 +1177,7 @@ Use this only if you have closed all channels and removed all funds._
|
||||
|
||||
Use this option if you want to start with a fresh LND node id & wallet.
|
||||
|
||||
##### REPAIR-CL: Repair/Backup C-Lightning
|
||||
##### REPAIR-CL: Repair/Backup Core Lightning
|
||||
|
||||
Multiple options to repair/backup your c-lightning node:
|
||||
|
||||
|
@ -17,7 +17,7 @@ plus=""
|
||||
if [ "${testnet}" == "on" ]; then
|
||||
OPTIONS+=(tSYS "TESTNET Monitoring & Configuration")
|
||||
if [ "${lightning}" == "lnd" ] || [ "${lnd}" == "on" ]; then OPTIONS+=(tLND "TESTNET LND Wallet Options"); fi
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" == "on" ]; then OPTIONS+=(tCL "TESTNET C-Lightning Wallet Options"); fi
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" == "on" ]; then OPTIONS+=(tCL "TESTNET Core Lightning Wallet Options"); fi
|
||||
fi
|
||||
|
||||
# just an optical splitter - ignored on select
|
||||
@ -25,7 +25,7 @@ OPTIONS+=(--- "----------------------------------")
|
||||
|
||||
if [ "${signet}" == "on" ]; then
|
||||
OPTIONS+=(sSYS "SIGNET Monitoring & Configuration")
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" == "on" ]; then OPTIONS+=(sCL "SIGNET C-Lightning Wallet Options"); fi
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" == "on" ]; then OPTIONS+=(sCL "SIGNET Core Lightning Wallet Options"); fi
|
||||
fi
|
||||
|
||||
# DONT OFFER SERVICES FOR TESTNET RIGHT NOW
|
||||
|
@ -382,7 +382,7 @@ if [ "${setupPhase}" == "done" ]; then
|
||||
echo "LND command line options: lncli -h"
|
||||
fi
|
||||
if [ "${lightning}" == "cl" ]; then
|
||||
echo "C-Lightning command line options: lightning-cli help"
|
||||
echo "Core Lightning command line options: lightning-cli help"
|
||||
fi
|
||||
else
|
||||
echo "Your setup is not finished."
|
||||
|
@ -137,8 +137,8 @@ if [ "${lndNode}" == "on" ]; then
|
||||
OPTIONS+=(e '-LND StaticChannelBackup USB Drive' ${LocalBackup})
|
||||
fi
|
||||
|
||||
# C-Lightning & options/PlugIns
|
||||
OPTIONS+=(n 'CL C-LIGHTNING NODE' ${clNode})
|
||||
# Core Lightning & options/PlugIns
|
||||
OPTIONS+=(n 'CL CORE LIGHTNING NODE' ${clNode})
|
||||
if [ "${clNode}" == "on" ]; then
|
||||
OPTIONS+=(o '-CL CLBOSS Automatic Node Manager' ${clbossMenu})
|
||||
OPTIONS+=(h '-CL Wallet Encryption' ${clEncryptedHSMMenu})
|
||||
@ -411,7 +411,7 @@ choice="off"; check=$(echo "${CHOICES}" | grep -c "n")
|
||||
if [ ${check} -eq 1 ]; then choice="on"; fi
|
||||
if [ "${clNode}" != "${choice}" ]; then
|
||||
anychange=1
|
||||
echo "# C-Lightning NODE Setting changed .."
|
||||
echo "# Core Lightning NODE Setting changed .."
|
||||
if [ "${choice}" = "on" ]; then
|
||||
echo "# turning ON"
|
||||
|
||||
@ -439,7 +439,7 @@ if [ "${clNode}" != "${choice}" ]; then
|
||||
/home/admin/config.scripts/cl.install.sh off signet
|
||||
fi
|
||||
else
|
||||
echo "C-Lightning NODE setting unchanged."
|
||||
echo "Core Lightning NODE setting unchanged."
|
||||
fi
|
||||
|
||||
# CLBOSS process choice
|
||||
|
@ -72,9 +72,9 @@ fi
|
||||
|
||||
# just available for CL
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" == "on" ]; then
|
||||
OPTIONS+=(c 'C-Lightning RTL Webinterface' ${crtlWebinterface})
|
||||
OPTIONS+=(k 'C-Lightning Sparko WebWallet' ${sparko})
|
||||
OPTIONS+=(n 'C-Lightning Spark Wallet' ${spark})
|
||||
OPTIONS+=(c 'Core Lightning RTL Webinterface' ${crtlWebinterface})
|
||||
OPTIONS+=(k 'Core Lightning Sparko WebWallet' ${sparko})
|
||||
OPTIONS+=(n 'Core Lightning Spark Wallet' ${spark})
|
||||
fi
|
||||
|
||||
OPTIONS+=(m 'Homer Dashboard' ${homer})
|
||||
@ -126,7 +126,7 @@ else
|
||||
echo "RTL-lnd Webinterface Setting unchanged."
|
||||
fi
|
||||
|
||||
# RTL process choice (C-Lightning)
|
||||
# RTL process choice (Core Lightning)
|
||||
choice="off"; check=$(echo "${CHOICES}" | grep -c "c")
|
||||
if [ ${check} -eq 1 ]; then choice="on"; fi
|
||||
if [ "${crtlWebinterface}" != "${choice}" ]; then
|
||||
@ -141,7 +141,7 @@ if [ "${crtlWebinterface}" != "${choice}" ]; then
|
||||
sleep 10
|
||||
/home/admin/config.scripts/bonus.rtl.sh menu cl mainnet
|
||||
else
|
||||
l1="# FAIL on RTL C-Lightning install #"
|
||||
l1="# FAIL on RTL Core Lightning install #"
|
||||
l2="Try manual install on terminal after reboot with:"
|
||||
l3="/home/admin/config.scripts/bonus.rtl.sh on cl mainnet"
|
||||
dialog --title 'FAIL' --msgbox "${l1}\n${l2}\n${l3}" 7 65
|
||||
|
@ -28,9 +28,9 @@ Download Lightning Data Backup now?
|
||||
fi
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" = "on" ]; then
|
||||
clear
|
||||
echo "*******************************************"
|
||||
echo "* PREPARING THE C-LIGHTNING BACKUP DOWNLOAD"
|
||||
echo "*******************************************"
|
||||
echo "**********************************************"
|
||||
echo "* PREPARING THE CORE LIGHTNING BACKUP DOWNLOAD"
|
||||
echo "**********************************************"
|
||||
echo "please wait .."
|
||||
/home/admin/config.scripts/cl.backup.sh cl-export-gui
|
||||
echo
|
||||
@ -72,7 +72,7 @@ if [ "${lightning}" == "lnd" ] || [ "${lnd}" == "on" ]; then
|
||||
OPTIONS+=(REPAIR-LND "Repair/Backup LND")
|
||||
fi
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" == "on" ]; then
|
||||
OPTIONS+=(REPAIR-CL "Repair/Backup C-Lightning")
|
||||
OPTIONS+=(REPAIR-CL "Repair/Backup Core Lightning")
|
||||
fi
|
||||
OPTIONS+=(MIGRATION "Migrate Blitz Data to new Hardware")
|
||||
OPTIONS+=(COPY-SOURCE "Copy Blockchain Source Modus")
|
||||
|
@ -13,7 +13,7 @@ source <(/home/admin/config.scripts/network.aliases.sh getvars cl $1)
|
||||
# BASIC MENU INFO
|
||||
WIDTH=64
|
||||
BACKTITLE="RaspiBlitz"
|
||||
TITLE=" C-Lightning Options (${CHAIN})"
|
||||
TITLE=" Core Lightning Options (${CHAIN})"
|
||||
MENU=""
|
||||
OPTIONS=()
|
||||
OPTIONS+=(FUNDING "Fund the C-lightning wallet onchain")
|
||||
|
@ -49,7 +49,7 @@ Do you want to download Lightning Data Backup now?
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" = "on" ]; then
|
||||
clear
|
||||
echo "*******************************************"
|
||||
echo "* PREPARING THE C-LIGHTNING BACKUP DOWNLOAD"
|
||||
echo "* PREPARING THE CORE LIGHTNING BACKUP DOWNLOAD"
|
||||
echo "*******************************************"
|
||||
echo "please wait .."
|
||||
/home/admin/config.scripts/cl.backup.sh cl-export-gui
|
||||
|
@ -737,7 +737,7 @@ do
|
||||
done
|
||||
|
||||
###################
|
||||
# Lightning (c-lightning)
|
||||
# Lightning (Core Lightning)
|
||||
|
||||
# loop thru mainet, testnet & signet
|
||||
networks=( "main" "test" "sig" )
|
||||
|
@ -303,13 +303,13 @@ fi
|
||||
# CORE LIGHTNING binary install
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" == "on" ] || [ "${tcl}" == "on" ] || [ "${scl}" == "on" ]; then
|
||||
# if already installed by fatpack will skip
|
||||
echo "Provisioning C-Lightning Binary - run config script" >> ${logFile}
|
||||
echo "Provisioning Core Lightning Binary - run config script" >> ${logFile}
|
||||
/home/admin/config.scripts/cl.install.sh install >> ${logFile} 2>&1
|
||||
echo "Provisioning cl-plugin.cln-grpc.sh - run config script" >> ${logFile}
|
||||
/home/admin/config.scripts/cl-plugin.cln-grpc.sh install >> ${logFile}
|
||||
/home/admin/config.scripts/cl-plugin.cln-grpc.sh on >> ${logFile}
|
||||
else
|
||||
echo "Provisioning C-Lightning Binary - not active" >> ${logFile}
|
||||
echo "Provisioning Core Lightning Binary - not active" >> ${logFile}
|
||||
fi
|
||||
|
||||
# CL Mainnet
|
||||
|
@ -119,11 +119,11 @@ else
|
||||
fi
|
||||
echo
|
||||
|
||||
echo "*** C-LIGHTNING (MAINNET) SYSTEMD STATUS ***"
|
||||
echo "*** CORE LIGHTNING (MAINNET) SYSTEMD STATUS ***"
|
||||
if [ "${lightning}" == "cl" ] || [ "${cl}" == "on" ] || [ "${cl}" == "1" ]; then
|
||||
sudo systemctl status lightningd -n2 --no-pager
|
||||
echo
|
||||
echo "*** LAST 30 C-LIGHTNING (MAINNET) INFO LOGS ***"
|
||||
echo "*** LAST 30 CORE LIGHTNING (MAINNET) INFO LOGS ***"
|
||||
echo "For details also use command --> cllog"
|
||||
echo "sudo tail -n 30 /home/bitcoin/.lightning/${network}/cl.log"
|
||||
sudo tail -n 30 /home/bitcoin/.lightning/${network}/cl.log
|
||||
@ -164,11 +164,11 @@ else
|
||||
fi
|
||||
echo
|
||||
|
||||
echo "*** C-LIGHTNING (TESTNET) SYSTEMD STATUS ***"
|
||||
echo "*** CORE LIGHTNING (TESTNET) SYSTEMD STATUS ***"
|
||||
if [ "${tcl}" == "on" ] || [ "${tcl}" == "1" ]; then
|
||||
sudo systemctl status tlightningd -n2 --no-pager
|
||||
echo
|
||||
echo "*** LAST 30 C-LIGHTNING (TESTNET) INFO LOGS ***"
|
||||
echo "*** LAST 30 CORE LIGHTNING (TESTNET) INFO LOGS ***"
|
||||
echo "sudo tail -n 30 /home/bitcoin/.lightning/testnet/cl.log"
|
||||
sudo tail -n 30 /home/bitcoin/.lightning/testnet/cl.log
|
||||
else
|
||||
@ -208,11 +208,11 @@ else
|
||||
fi
|
||||
echo
|
||||
|
||||
echo "*** C-LIGHTNING (SIGNET) SYSTEMD STATUS ***"
|
||||
echo "*** CORE LIGHTNING (SIGNET) SYSTEMD STATUS ***"
|
||||
if [ "${scl}" == "on" ] || [ "${scl}" == "1" ]; then
|
||||
sudo systemctl status slightningd -n2 --no-pager
|
||||
echo
|
||||
echo "*** LAST 30 C-LIGHTNING (SIGNET) INFO LOGS ***"
|
||||
echo "*** LAST 30 CORE LIGHTNING (SIGNET) INFO LOGS ***"
|
||||
echo "sudo tail -n 30 /home/bitcoin/.lightning/signet/cl.log"
|
||||
sudo tail -n 30 /home/bitcoin/.lightning/signet/cl.log
|
||||
else
|
||||
|
@ -243,7 +243,7 @@ WantedBy=multi-user.target
|
||||
sudo sed -i "s/^Wants=.*/Wants=${netprefix}lightningd.service/g" /etc/systemd/system/${systemdService}.service
|
||||
sudo sed -i "s/^After=.*/After=${netprefix}lightningd.service/g" /etc/systemd/system/${systemdService}.service
|
||||
|
||||
# set up C-LightningREST
|
||||
# set up Core LightningREST
|
||||
/home/admin/config.scripts/cl.rest.sh on ${CHAIN}
|
||||
fi
|
||||
|
||||
@ -411,7 +411,7 @@ if [ "$1" = "prestart" ]; then
|
||||
mv /mnt/hdd/app-data/rtl/${systemdService}/RTL-Config.json.tmp /mnt/hdd/app-data/rtl/${systemdService}/RTL-Config.json
|
||||
fi
|
||||
|
||||
# C-Lightning changes of config
|
||||
# Core Lightning changes of config
|
||||
# https://github.com/Ride-The-Lightning/RTL/blob/master/docs/C-Lightning-setup.md
|
||||
if [ "${LNTYPE}" == "cl" ]; then
|
||||
echo "# CL Config"
|
||||
|
@ -183,9 +183,9 @@ if [ ${mode} = "cl-export-gui" ]; then
|
||||
# offer SCP for download
|
||||
clear
|
||||
echo
|
||||
echo "****************************************"
|
||||
echo "* DOWNLOAD THE C-LIGHTNING RESCUE FILE *"
|
||||
echo "****************************************"
|
||||
echo "*******************************************"
|
||||
echo "* DOWNLOAD THE CORE LIGHTNING RESCUE FILE *"
|
||||
echo "*******************************************"
|
||||
echo
|
||||
echo "ON YOUR MAC & LINUX LAPTOP - RUN IN NEW TERMINAL:"
|
||||
echo "scp '${fileowner}@${localip}:${filename}' ./"
|
||||
@ -280,11 +280,11 @@ if [ ${mode} = "cl-import-gui" ]; then
|
||||
while [ "${filename}" == "" ]
|
||||
do
|
||||
clear
|
||||
echo "**************************************"
|
||||
echo "* UPLOAD THE C-LIGHTNING RESCUE FILE *"
|
||||
echo "**************************************"
|
||||
echo "*****************************************"
|
||||
echo "* UPLOAD THE CORE LIGHTNING RESCUE FILE *"
|
||||
echo "*****************************************"
|
||||
echo "If you have a cl-rescue backup file on your laptop you can now"
|
||||
echo "upload it and restore your latest C-Lightning state."
|
||||
echo "upload it and restore your latest Core Lightning state."
|
||||
echo
|
||||
echo "CAUTION: Don't restore outdated states - risk of loosing funds!"
|
||||
echo
|
||||
@ -345,7 +345,7 @@ if [ ${mode} = "cl-import-gui" ]; then
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
# ask security question before deleting old wallet
|
||||
echo "WARNING: This will delete/overwrite the C-Lightning state/funds of this RaspiBlitz."
|
||||
echo "WARNING: This will delete/overwrite the Core Lightning state/funds of this RaspiBlitz."
|
||||
echo
|
||||
echo "Write the word 'override' and press ENTER to CONTINUE:"
|
||||
read securityInput
|
||||
|
@ -432,8 +432,8 @@ if [ "$1" = "display-seed" ]; then
|
||||
ack=0
|
||||
while [ ${ack} -eq 0 ]
|
||||
do
|
||||
whiptail --title "C-Lightning ${displayNetwork} Wallet" \
|
||||
--msgbox "This is your C-Lightning ${displayNetwork} wallet seed. Store these numbered words in a safe location:\n\n${seedwords6x4}" 13 76
|
||||
whiptail --title "Core Lightning ${displayNetwork} Wallet" \
|
||||
--msgbox "This is your Core Lightning ${displayNetwork} wallet seed. Store these numbered words in a safe location:\n\n${seedwords6x4}" 13 76
|
||||
whiptail --title "Please Confirm" --yes-button "Show Again" --no-button "CONTINUE" --yesno " Are you sure that you wrote down the word list?" 8 55
|
||||
if [ $? -eq 1 ]; then
|
||||
ack=1
|
||||
@ -441,13 +441,13 @@ if [ "$1" = "display-seed" ]; then
|
||||
done
|
||||
else
|
||||
dialog \
|
||||
--title "C-Lightning ${displayNetwork} Wallet" \
|
||||
--title "Core Lightning ${displayNetwork} Wallet" \
|
||||
--exit-label "exit" \
|
||||
--textbox "${seedwordFile}" 14 92
|
||||
fi
|
||||
else
|
||||
# hsmFile="/home/bitcoin/.lightning/${CLNETWORK}/hsm_secret"
|
||||
whiptail --title "C-Lightning ${displayNetwork} Wallet Info" --msgbox "Your C-Lightning ${displayNetwork} wallet was already created before - there are no seed words available.\n\nTo secure your wallet secret you can manually backup the file: /home/bitcoin/.lightning/${CLNETWORK}/hsm_secret" 11 76
|
||||
whiptail --title "Core Lightning ${displayNetwork} Wallet Info" --msgbox "Your Core Lightning ${displayNetwork} wallet was already created before - there are no seed words available.\n\nTo secure your wallet secret you can manually backup the file: /home/bitcoin/.lightning/${CLNETWORK}/hsm_secret" 11 76
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
@ -249,7 +249,7 @@ if [ "${setupPhase}" == "setup" ]; then
|
||||
|
||||
elif [ "${lightning}" == "cl" ]; then
|
||||
|
||||
echo "# Starting lightning wallet dialog for C-LIGHTNING ..."
|
||||
echo "# Starting lightning wallet dialog for CORE LIGHTNING ..."
|
||||
/home/admin/setup.scripts/dialogLightningWallet-cl.sh
|
||||
dialogResult=$?
|
||||
|
||||
|
@ -14,7 +14,7 @@ enterSEED=0
|
||||
OPTIONS=()
|
||||
OPTIONS+=(NEW "Setup a brand new Lightning Node (DEFAULT)")
|
||||
OPTIONS+=(OLD "I had an old Node I want to recover/restore")
|
||||
CHOICE=$(dialog --backtitle "RaspiBlitz" --clear --title "C-Lightning Setup" --menu "C-Lightning Data & Wallet" 11 60 6 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
||||
CHOICE=$(dialog --backtitle "RaspiBlitz" --clear --title "Core Lightning Setup" --menu "Core Lightning Data & Wallet" 11 60 6 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
||||
|
||||
if [ "${CHOICE}" == "NEW" ]; then
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user