From 561f83cf2b7e9ce797eddf1602ce55a58dfbb36c Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sun, 19 Jan 2025 18:00:47 +0100 Subject: [LN] local network --- config/shepherd/init.d/bitcoin.scm | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'config/shepherd/init.d') diff --git a/config/shepherd/init.d/bitcoin.scm b/config/shepherd/init.d/bitcoin.scm index a010bb4..2fb834d 100644 --- a/config/shepherd/init.d/bitcoin.scm +++ b/config/shepherd/init.d/bitcoin.scm @@ -25,16 +25,19 @@ #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C #:respawn? #t)) -(register-services - (service - '(lnd-testnet) - #:documentation "Bitcoin testnet lnd lightning" - #:start (make-forkexec-constructor - (list "/home/titan/.local/bin/lnd" - "--lnddir=/run/media/titan/ext_backup/personal/bitcoin/lnd/" - "--noseedbackup")) - #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C - #:respawn? #t)) +(let ((nodes '(ali bob carl))) + (register-services + (map + (lambda (name) + (service + (list (string->symbol (format #f "lnd-reg-~a" name))) + #:documentation (format #f "Bitcoin regtest LND lightning wallet ~:@(~a~)" name) + #:start (make-forkexec-constructor + (list "/home/titan/.local/bin/lnd" + (format #f "--lnddir=/scratch/titan/lnd/reg-~a/" name))) + #:stop (make-kill-destructor 2) ;; 2 is SIGINT - interupt process stream, ctrl-C + #:respawn? #t)) + nodes))) ;; ssh (register-services @@ -49,6 +52,10 @@ "-L" "8335:localhost:8332" ;; btcm "-L" "18335:localhost:18332" ;; btct "-L" "8481:localhost:8480" ;; LNDT + "-L" "18443:localhost:18443" ;; regbtc + "-L" "15005:localhost:15005" ;; regbtczmq + "-L" "15006:localhost:15006" ;; regbtczmq + "-L" "50004:localhost:50004" ;; regelectrs ;; "-L" "/tmp/nina-mn.socket:/run/cardano-node-mainnet/socket" ;; "-L" "/tmp/nina-pr.socket:/run/cardano-node-preview/socket" ;; "-L" "54320:localhost:5432" -- cgit v1.2.3