From a2c3436f23e477098e2361d0208211bcd217a52b Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Thu, 21 Dec 2023 12:24:04 +0100 Subject: [LND] Pick node is part of package --- config/doom/config.org | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'config/doom') diff --git a/config/doom/config.org b/config/doom/config.org index edf72e9..c387f0e 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -655,17 +655,13 @@ Emacs mode for managing ledger text files (use-package! lnd :load-path "~/dev/emacs-lisp/btc-explorer/" - :commands (on/lnd-connection) + :commands (lnd-pick-node) :config - (defun on/lnd-connection () - (interactive) - (let ((nodes '(("local" "https://localhost:8480/v1/" "/mnt/disk/personal/bitcoin/lnd/data/chain/bitcoin/testnet/admin.macaroon") - ("remote" "https://localhost:8481/v1/" "~/dev/emacs-lisp/btc-explorer/admin.macaroon")))) - (cl-destructuring-bind (api macaroon-file) - (thread-first (completing-read "Pick node: " nodes) - (alist-get nodes nil nil #'string=)) - (setq lnd-api-endpoint api) - (setq lnd-admin-macaroon (encode-hex-string (f-read-bytes macaroon-file))))))) + (setq lnd-nodes '(("local" "https://localhost:8480/v1/" + "/run/media/titan/ext_backup/personal/bitcoin/lnd/data/chain/bitcoin/testnet/admin.macaroon") + ("remote" "https://localhost:8481/v1/" + "~/dev/emacs-lisp/btc-explorer/admin.macaroon")))) + #+end_src #+begin_src emacs-lisp -- cgit v1.2.3