diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-12-21 12:24:04 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-01-02 11:06:02 +0100 |
commit | a2c3436f23e477098e2361d0208211bcd217a52b (patch) | |
tree | c610ccdbe7937d0270f405eb0c87875233153533 /config/doom | |
parent | b28037af4e2ca6a1eb7c9974cd54ebd9b9143ca4 (diff) | |
download | dotfiles-a2c3436f23e477098e2361d0208211bcd217a52b.tar.gz dotfiles-a2c3436f23e477098e2361d0208211bcd217a52b.tar.bz2 dotfiles-a2c3436f23e477098e2361d0208211bcd217a52b.zip |
[LND] Pick node is part of package
Diffstat (limited to 'config/doom')
-rw-r--r-- | config/doom/config.org | 16 |
1 files changed, 6 insertions, 10 deletions
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 |