Commit Graph

4865 Commits

Author SHA1 Message Date
rootzoll
3f937dec9e detect cln running 2021-07-24 23:59:16 +02:00
rootzoll
7ce01df694 change to none 2021-07-24 01:13:19 +02:00
rootzoll
36624395d8 remove key press on cln actions 2021-07-24 00:42:38 +02:00
rootzoll
5014799f6e press key after single actions 2021-07-24 00:33:51 +02:00
rootzoll
90d6f8ba54 exit 0 on cln menu 2021-07-24 00:31:30 +02:00
openoms
b906120e3d
start cln on the end of provisioning 2021-07-23 10:36:45 +01:00
openoms
1638961e7a cln: clear before showing summary 2021-07-23 10:25:32 +01:00
openoms
5bde0c97e4 cln: always start the lightnind.service 2021-07-23 00:19:59 +01:00
rootzoll
594f62ecd9 only show main lightning impl options for RC1 2021-07-23 00:56:18 +02:00
rootzoll
77d86b51e1 fix syntax 2021-07-23 00:51:18 +02:00
rootzoll
b21af26147 only show lnd options when activated 2021-07-23 00:49:30 +02:00
rootzoll
09d89fd410 show tail info on provision 2021-07-22 23:52:12 +02:00
wiz
efd6c6b151
Bump mempool to v2.2.0 (#2397) 2021-07-22 19:12:23 +02:00
rek79
bd3c5668f9
Simplify localIP detection and improve compatibility (#2432) 2021-07-22 19:09:36 +02:00
openoms
a2c07c4184
cln.install.sh: create cln config if not present 2021-07-21 23:47:22 +01:00
openoms
db24ad1d57
FinalDialog: make the 24 words fit 2021-07-21 23:37:26 +01:00
openoms
6bb0c12308
cln: make sure .lightning/bitcoin dir exists 2021-07-21 21:13:15 +01:00
openoms
a5747ba796
cln: correct lightning name in FInalDialog + typo 2021-07-21 19:43:53 +01:00
openoms
402f1a8a17
cln: look for files in .lightning dir with sudo 2021-07-21 19:31:30 +01:00
rootzoll
84e17f5def fix lnd unlock detection 2021-07-20 22:58:24 +02:00
rootzoll
45d4f7867f remove old jinja template rendering 2021-07-20 22:40:12 +02:00
openoms
91fbbaadce
cln: hide unhelpful warnings during setup 2021-07-20 19:21:58 +01:00
openoms
477c36f382
cln-plugin.backup: fix path to backup-cli 2021-07-20 19:12:15 +01:00
openoms
101039ef21
cln.install: fix access to raspiblitz.conf 2021-07-20 19:11:48 +01:00
openoms
ca5ace8a15
cln.hsmtool: init backup with the new wallet 2021-07-20 18:21:44 +01:00
/rootzoll
9a77f765df
#2228 wider grep to detect nvms (#2427) 2021-07-20 19:19:34 +02:00
rootzoll
11948ede38 set defaults before 2021-07-20 18:41:45 +02:00
rootzoll
1d0d368b83 add debug echos 2021-07-20 18:26:17 +02:00
rootzoll
cb04f09483 no password C & D when cln 2021-07-20 17:45:38 +02:00
/rootzoll
2434875723
#2425 Adding experimental Blitz WebUI & API (#2426) 2021-07-20 16:57:41 +02:00
openoms
d98ce4d601
sparko: don't show logs after install 2021-07-20 14:15:27 +01:00
openoms
bcc5ba502a
cln: load plugins from ${netprefix}cln-plugins-enabled
changed the config paths to $lightning-dir/config or /networkname/config

plugins are downloaded to the SDcard:
/home/bitcoin/cln-plugins-available/
symlinked and loaded automatically from:
/home/bitcoin/${netprefix}cln-plugins-enabled

Related: #2295
2021-07-20 14:05:58 +01:00
openoms
626b07400e
SERVICES menu: fix chantools/CLN switch 2021-07-20 09:33:56 +01:00
openoms
588e394b46 cln: activate the backup plugin on every install 2021-07-18 20:29:07 +01:00
openoms
ae3adc7a32 cln: add more aliases cln, clnlog, clnconf 2021-07-18 20:28:04 +01:00
openoms
7ca6b68cb7 SYSTEM menu fixes 2021-07-18 20:07:07 +01:00
openoms
6d82b93faf SYSTEM: add CLNLOG and CLNCONF options 2021-07-18 16:37:40 +01:00
openoms
12fd7006a6 improve comments 2021-07-18 15:21:01 +01:00
openoms
d3a7e40fc5 add cln.setname.sh
make lnd.setname.sh work with parallel wallets
2021-07-18 15:19:52 +01:00
openoms
b20a3ee8c3 debug _provison.setup.sh
stop bitcoind and restart with new config to avoid rpc password error
disable and enable service instead of daemon-reload
CLN: don't use passwordC  as seedPassword
2021-07-18 11:03:06 +01:00
openoms
abd4d1ded1
add Suez to menu for CLN and LND
needs to be installed with the bitcoin user to be able to interact with CLN
related: https://github.com/rootzoll/raspiblitz/issues/2366
2021-07-17 20:31:27 +01:00
openoms
7819ff90db
cln.install-service: fix sparko check 2021-07-17 19:30:04 +01:00
openoms
421e328b7e
PEERING: correct message on success 2021-07-17 17:14:37 +01:00
rootzoll
a20ef864a0 Merge branch 'pre-1.7.1' into 1126-provision 2021-07-17 17:25:53 +02:00
rootzoll
c5b2643294 mute not needed error msg 2021-07-17 17:23:48 +02:00
rootzoll
b918dd6cfa fix syntax 2021-07-17 17:15:18 +02:00
rootzoll
53428fb2fe fix syntax 2021-07-17 16:55:34 +02:00
rootzoll
afad204944 generate cln wallet with passwordc 2021-07-17 16:18:34 +02:00
rootzoll
be03fea776 correct bytesize 2021-07-17 15:28:03 +02:00
rootzoll
a64cc77dcb cln.backup.sh cln-import 2021-07-17 15:25:32 +02:00
rootzoll
3bcb0748ed add cln export gui 2021-07-17 15:14:52 +02:00
rootzoll
0fd6b829a0 get correct version 2021-07-17 15:13:02 +02:00
rootzoll
aa23ebcc38 cln rescue file export 2021-07-17 15:07:06 +02:00
openoms
529e8cdb84
add Suez install script
discussed in:
https://github.com/rootzoll/raspiblitz/issues/2366
2021-07-17 10:36:36 +01:00
rootzoll
8a3bff53cc fix gui 2021-07-17 02:29:50 +02:00
rootzoll
7bdf519a51 check lnd for valid seed 2021-07-17 02:27:35 +02:00
rootzoll
3f939deb74 fix syntax 2021-07-17 02:19:38 +02:00
rootzoll
0b806e6cac correct putput 2021-07-17 02:19:14 +02:00
rootzoll
660592eae8 try check 2021-07-17 02:17:21 +02:00
rootzoll
343b1e7981 dump object 2021-07-17 02:12:38 +02:00
rootzoll
67c41be9ae debug info 2021-07-17 02:11:15 +02:00
rootzoll
f022969217 test seed 2021-07-17 02:03:59 +02:00
rootzoll
8470d9bb36 refactor blitz.mnemonic.py 2021-07-17 01:55:02 +02:00
rootzoll
2c218d35b4 add seed-force 2021-07-17 00:54:31 +02:00
rootzoll
71420a0e23 fix output 2021-07-17 00:14:30 +02:00
rootzoll
b13e72408f hsm output tool 2021-07-17 00:03:57 +02:00
rootzoll
dfeaa4469b try fix call hsmtool 2021-07-17 00:01:19 +02:00
rootzoll
38ab24b144 add new-force wallet 2021-07-16 23:41:46 +02:00
rootzoll
2fbe009a28 fix syntax error 2021-07-16 21:50:26 +02:00
rootzoll
7c060800ef add setup logs to debug output 2021-07-16 21:45:56 +02:00
rootzoll
3f7f1c8b2e Merge branch 'pre-1.7.1' into 1126-provision 2021-07-16 20:36:25 +02:00
rootzoll
dd425da37d add c-lightning to debug 2021-07-16 20:16:48 +02:00
rootzoll
c7d6af8ce9 make sure to disable lnd 2021-07-16 20:16:39 +02:00
rootzoll
62f9e144cd get fresh data 2021-07-16 14:30:22 +02:00
rootzoll
6b2f9c8def fix syntax 2021-07-16 14:17:32 +02:00
rootzoll
355600566d wait for syncprogress info 2021-07-16 13:47:06 +02:00
rootzoll
8929a9714e wait for sync progress info 2021-07-16 13:41:57 +02:00
rootzoll
5ebe334e42 move name dialog 2021-07-16 13:13:06 +02:00
rootzoll
c87032aa60 update sync info 2021-07-16 12:22:40 +02:00
rootzoll
451b6865e5 add action string 2021-07-16 12:21:39 +02:00
rootzoll
4f6818fc17 update sync info for no lightning 2021-07-16 12:19:14 +02:00
rootzoll
bfe7d2b4d4 rename option 2021-07-16 00:10:00 +02:00
rootzoll
f4a72ed98f make alias info as defaults 2021-07-16 00:08:55 +02:00
rootzoll
9dc24445a9 make sure info is uptodate 2021-07-16 00:07:54 +02:00
rootzoll
a28c517691 add debug wait 2021-07-15 23:36:53 +02:00
rootzoll
ada8e4ae21 add debug wait 2021-07-15 23:34:50 +02:00
rootzoll
33c27630b5 mute unlocking echos 2021-07-15 23:32:27 +02:00
rootzoll
0a17aecff2 add debug error info 2021-07-15 22:12:38 +02:00
rootzoll
30159d775e fix syntax error 2021-07-15 22:05:53 +02:00
rootzoll
bbf0068878 fix network alias when not set 2021-07-15 21:40:51 +02:00
rootzoll
bf691d594b debug state 2021-07-15 21:28:47 +02:00
rootzoll
ba7a1eb6e6 no error if aliases not yet exist 2021-07-15 21:11:08 +02:00
rootzoll
a2398e446a make sure that aliases get created on lnd setup 2021-07-15 21:08:14 +02:00
rootzoll
3adb20f336 fix peernum 2021-07-13 12:49:05 +02:00
openoms
8b0fd60ffc
cln: add new wallet and import seed options 2021-07-12 16:01:32 +01:00
openoms
5cf19ab1e6
cln: install Sparko if configured, but not present 2021-07-12 15:38:16 +01:00
openoms
d0abb39132
improve help and comments 2021-07-12 15:37:43 +01:00
openoms
7861e07282
new setup: improve capitalization in menu 2021-07-07 11:06:42 +01:00
openoms
e8e7f3fafa
new setup: keep testnet3 blocks and chainstate 2021-07-07 11:06:12 +01:00
openoms
2af33ad275
network aliases: fall back to 'main' for 'chain' 2021-07-07 11:05:16 +01:00
openoms
d6dae65386
_commands: source _aliases only if exists 2021-07-07 11:04:18 +01:00
openoms
00717530b9
cln: installthe latest master until the next release 2021-07-07 07:37:23 +01:00
openoms
c13eebe1b0
cln.install: fix tor config 2021-07-06 10:12:08 +01:00
openoms
e8d9a4a0df
CLOSEALL and CASHOUT: Improve labels and comments
Explaining CASHOUT in the label as discussed in:
https://github.com/rootzoll/raspiblitz/issues/2358
2021-07-06 08:05:28 +01:00
openoms
8193bfb09b
cln: add CASHOUT option 2021-07-06 01:00:12 +01:00
openoms
59895c673d
use CHAIN in CLN and LND menu 2021-07-06 00:48:01 +01:00
openoms
61e5887bb5
rtl: install correctly for paralell chains 2021-07-06 00:47:05 +01:00
openoms
982a4d593f
CASHOUT: use aliases for lnd 2021-07-05 23:42:55 +01:00
openoms
80a0e7a77e
rtl: fix permission of config on copy 2021-07-05 23:42:17 +01:00
openoms
7fd760177c
cln-plugin.summary: fix paths 2021-07-05 22:38:37 +01:00
openoms
7f50d14cbe
netwok.monitor.sh debug 2021-07-05 22:30:37 +01:00
openoms
586d8ce3c6
lnd.unlock: fix typo 2021-07-05 22:18:48 +01:00
openoms
d6502e4c13
Merge branch 'pre-1.7.1' into cblitz-merge-dev 2021-07-03 22:24:05 +00:00
/rootzoll
c1c595a0b7
#1126 preparing new setup with new c-lightning (#2396)
* move debug script

* patch patch command

* make sure setup file is sourced

* remove debug output

* make sure lnd is put behind tor

* change indent

* get fresh sync progress

* always set password A

* cached peer info

* fix printing cache

* fix check for existing files

* handle bitcoind not running

* result with newline

* test line break

* test new line

* test new line

* two vars on output

* #2388 improve online check (less pinging)

* used cached peer status

* move chache

* cach file permissions

* allow sudo call

* fix cache

* remove double scan info

* add conf info to sync screen

* reorder info

* add space

* add space

* order info

* internet suppress error messages

* order info

* fix offering Blockchain copy

* fix hostname

* final ready state info

* lnd unlock after provision

* remove debug exit

* harmonize ready state

* add status to lnd unlock

* update lnd unlock script

* edit the unlock

* remove debug echo

* add debug

* add debug

* fix if statement

* debug output

* switch position of source setupdata
2021-07-03 23:54:22 +02:00
rootzoll
1c92ddfc51 Merge branch 'pre-1.7.1' into 1126-provision 2021-07-03 21:33:53 +02:00
rootzoll
4034f71279 switch position of source setupdata 2021-07-03 20:31:11 +02:00
rootzoll
2428dc528f debug output 2021-07-03 01:55:44 +02:00
rootzoll
3070512c7c fix if statement 2021-07-03 01:27:24 +02:00
rootzoll
caa4029870 add debug 2021-07-03 01:03:47 +02:00
rootzoll
9150bdee85 add debug 2021-07-03 00:51:32 +02:00
rootzoll
f7c658aa40 remove debug echo 2021-07-03 00:39:55 +02:00
rootzoll
8e1c375a8a edit the unlock 2021-07-03 00:15:26 +02:00
rootzoll
c070e421b1 update lnd unlock script 2021-07-03 00:05:01 +02:00
rootzoll
11d17f7d92 add status to lnd unlock 2021-07-02 23:55:33 +02:00
rootzoll
246ffe46bd harmonize ready state 2021-07-02 23:11:50 +02:00
rootzoll
26a63295d6 remove debug exit 2021-07-02 23:05:38 +02:00
rootzoll
113483f638 lnd unlock after provision 2021-07-02 23:02:32 +02:00
rootzoll
d3ab78ccfd final ready state info 2021-07-02 22:20:51 +02:00
rootzoll
646898fa81 fix hostname 2021-07-02 22:18:09 +02:00
rootzoll
5034384fec fix offering Blockchain copy 2021-07-02 22:16:02 +02:00
rootzoll
cbfa8ff23e order info 2021-07-02 18:57:21 +02:00
rootzoll
f860bf69a9 internet suppress error messages 2021-07-02 15:04:39 +02:00
rootzoll
0928298eb6 order info 2021-07-02 15:00:27 +02:00
rootzoll
497d8b2e70 add space 2021-07-02 14:59:23 +02:00
rootzoll
b88d4e852e add space 2021-07-02 14:58:41 +02:00
rootzoll
6d74b23e2c reorder info 2021-07-02 14:58:01 +02:00
rootzoll
45e66a04aa add conf info to sync screen 2021-07-02 14:56:28 +02:00
rootzoll
1bfa361f65 remove double scan info 2021-07-02 14:47:50 +02:00
rootzoll
e19d750b3f fix cache 2021-07-02 14:26:47 +02:00
rootzoll
83c2f042ae allow sudo call 2021-07-02 14:20:06 +02:00
rootzoll
c02b2ad8cc cach file permissions 2021-07-02 14:14:59 +02:00
rootzoll
827364daa9 move chache 2021-07-02 14:11:13 +02:00
rootzoll
dbdbfe8622 used cached peer status 2021-07-02 14:04:15 +02:00
rootzoll
bc76dce517 #2388 improve online check (less pinging) 2021-07-02 14:02:45 +02:00
rootzoll
098eb711ad two vars on output 2021-07-02 13:58:48 +02:00
rootzoll
b307f52899 test new line 2021-07-02 13:57:28 +02:00
rootzoll
c4258db23a test new line 2021-07-02 13:56:20 +02:00
rootzoll
9d1e9eb1af test line break 2021-07-02 13:55:31 +02:00
rootzoll
edd3239885 result with newline 2021-07-02 13:54:39 +02:00
rootzoll
89f8605568 handle bitcoind not running 2021-07-02 13:52:59 +02:00
rootzoll
b59e1f6b1c fix check for existing files 2021-07-02 13:32:27 +02:00
rootzoll
f542264bc3 fix printing cache 2021-07-02 13:31:00 +02:00
rootzoll
eecfdb788a cached peer info 2021-07-02 13:29:35 +02:00
rootzoll
13717f003b always set password A 2021-07-02 13:00:23 +02:00
openoms
ff25e09a64
cln.hsmtool: add change-password and lock options 2021-06-30 14:53:28 +01:00
openoms
15f7b5c8ed
cln FUNDING fix parsing address 2021-06-29 19:08:39 +01:00
openoms
7383b17a08
keep lnd autopilot and autounlock mainnet only
mainnet only settings:
lnd autopilot
lnd keysend
circuibreaker
lnd autounlock
StaticChannelBackup to DropBox and USB
2021-06-29 18:48:58 +01:00
openoms
41f5d4d3b4
use symlink to cln-plugins-enabled for all plugins 2021-06-29 17:49:57 +01:00
openoms
055cc338a9
add cln.install-service.sh to set up cln with systemd
script to set up or update the CLN systemd service
checks for hsm_secret encryption, autounlock and the sparko plugin
usage:
/home/admin/config.scripts/cln.install-service.sh $CHAIN

discussed in: https://github.com/rootzoll/raspiblitz/issues/2295
2021-06-29 17:46:12 +01:00
openoms
65c4c990b1
add cln.hsmtool.sh for hsm_secret handling
encrypt | decrypt | autounlock the hsm_secret for C-lightning
usage:
cln.hsmtool.sh [unlock] [testnet|mainnet|signet]
cln.hsmtool.sh [encrypt|decrypt] [testnet|mainnet|signet]
cln.hsmtool.sh [autounlock-on|autounlock-off] [testnet|mainnet|signet]

discussed in: https://github.com/rootzoll/raspiblitz/issues/2295
2021-06-29 17:42:23 +01:00
openoms
7037f35235
default to KIllMode=control-group in services
https://www.man7.org/linux/man-pages/man5/systemd.kill.5.html
discussed in: https://github.com/rootzoll/raspiblitz/issues/1901
2021-06-29 17:35:32 +01:00
openoms
64eeb8944c
all lncli_aliases to be used as variables 2021-06-29 13:25:25 +01:00
openoms
2cac034043
keep _aliases file when live patches are applied 2021-06-28 19:01:58 +01:00
openoms
c998ea9b21
display ${CHAIN} in the SYSTEM menu options 2021-06-28 12:49:17 +01:00
openoms
ca5e7c72e6
lnd.setname.sh for testnet 2021-06-28 12:20:33 +01:00
openoms
e3c758fa82
RTL update to v0.11.0
make chain specific directory for the config: /home/rtl/${netprefix}RTL/
use ${netprefix}lnd.conf in config
override Environmen tvaribales for cln in the systemd service:
/etc/systemd/system/${netprefix}${typeprefix}RTL.service

discussed in: https://github.com/rootzoll/raspiblitz/issues/2384
2021-06-28 12:19:44 +01:00
openoms
7284a25479
add the SYSTEM menu for parallel chains 2021-06-28 11:48:36 +01:00
openoms
53d4d90b34
fix comments 2021-06-28 11:47:51 +01:00
openoms
8d86a8dbcf
lnd: autopilot and autounlock for testnet 2021-06-28 11:44:04 +01:00
openoms
c0d286df72
Merge remote-tracking branch 'upstream/pre-1.7.1' into cblitz-merge-dev 2021-06-28 10:48:22 +01:00
openoms
0ca90f3f23
deprecate Testnet in SETTINGS
keysend and autopilot only for mainnet

due to: https://github.com/rootzoll/raspiblitz/issues/2290
2021-06-27 23:36:27 +01:00
openoms
4f80c0d477
lnd: add LND option for parallel networks 2021-06-27 22:55:57 +01:00
openoms
94aa473a91
lnd: fix lnd.conf for parallel networks
discussed in: https://github.com/rootzoll/raspiblitz/issues/2290
2021-06-27 22:54:41 +01:00
openoms
1e8b5ad927
do not resolve aliases, use as variables 2021-06-27 22:33:47 +01:00
openoms
4055cc2760
shellcheck: change all egrep to grep -E
https://github.com/koalaman/shellcheck/wiki/SC2196
2021-06-25 23:48:33 +01:00
openoms
f47f9abd28
cln: add cln-plugin.standard.python.sh
Install and show the output of the chosen plugin for C-lightning
Usage:
cln-plugin.standard-python.sh on [plugin-name] [testnet|mainnet|signet] [runonce]
tested plugins:
summary | helpme | feeadjuster

find more at:
https://github.com/lightningd/plugins
discussed in:
https://github.com/rootzoll/raspiblitz/issues/2295
2021-06-25 23:43:56 +01:00
openoms
945aeb39eb
cln: add the backup plugin + options
Usage options:
cln-plugin.backup.sh [on] [testnet|mainnet|signet]
cln-plugin.backup.sh [restore] [testnet|mainnet|signet] [force]
cln-plugin.backup.sh [backup-compact] [testnet|mainnet|signet]
https://github.com/lightningd/plugins/tree/master/backup

Discussed in: https://github.com/rootzoll/raspiblitz/issues/2295
2021-06-25 23:15:13 +01:00
openoms
259c7499b1
cln.rest: add connect option for Zeus
https://github.com/rootzoll/raspiblitz/issues/2295
2021-06-25 23:09:55 +01:00
openoms
17edbb2ce8
sparko: add info and connect menu with own cert
https://github.com/rootzoll/raspiblitz/issues/2295
2021-06-25 23:09:17 +01:00
openoms
c7b433aa48
use new selfsignedcert if no lnd tls.cert present 2021-06-25 23:04:08 +01:00
openoms
68b2fdad52
avoid scrolling in menus 2021-06-25 22:51:35 +01:00
rootzoll
6356a67935 get fresh sync progress 2021-06-25 00:17:54 +02:00
rootzoll
f008eb4732 change indent 2021-06-25 00:14:41 +02:00
rootzoll
565c24e72b make sure lnd is put behind tor 2021-06-24 23:18:18 +02:00
rootzoll
01d6617e0b remove debug output 2021-06-24 22:48:11 +02:00
rootzoll
322e68e343 make sure setup file is sourced 2021-06-24 22:30:06 +02:00
rootzoll
0c91cf3941 patch patch command 2021-06-24 22:09:58 +02:00
rootzoll
9679bcd1f6 move debug script 2021-06-24 21:33:54 +02:00
rootzoll
8c86118409 no longer needed chain in sync 2021-06-24 21:28:44 +02:00
rootzoll
34bdd3256b Merge branch '1126-provision' into pre-1.7.1 2021-06-24 21:28:19 +02:00
rootzoll
e85e118e5b remove chain in sync 2021-06-24 21:25:38 +02:00
rootzoll
a971485c24 moving github script 2021-06-24 21:20:48 +02:00
rootzoll
5771035584 add more debug info 2021-06-24 21:08:00 +02:00
rootzoll
f1bc10b135 moved shutdown scripts 2021-06-24 19:54:49 +02:00
rootzoll
56a3beb851 moved shutdown script 2021-06-24 19:54:30 +02:00
rootzoll
85b9ca618a Merge branch '1126-provision' into pre-1.7.1 2021-06-24 19:54:10 +02:00
rootzoll
03f9daa98b change notify & release 2021-06-24 19:50:43 +02:00
rootzoll
a28fa2b6ca change all place where shutdown script is used 2021-06-24 19:30:33 +02:00
rootzoll
9ea7893c15 move shutdown script 2021-06-24 19:25:02 +02:00
openoms
1c9fd09e09
make cln default plugin dir: cln-plugins-enabled
similar to the nginx model make 2 directories for plugins:
cln-plugins-enabled - symlinked to ~/.lightning/plugins
plugins from here are loaded automatically on cln start

cln-plugins-available: plugins are downloaded here to
be run until the next cln restart (or stopped with runonce)

note the disk is mounted with noexec so plugins can't
run from there

discuss in: https://github.com/rootzoll/raspiblitz/issues/2295
2021-06-23 11:29:04 +01:00