From c75347027b1c814deb82c110758cf95df664b8a5 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Wed, 7 Jul 2021 10:24:27 +0000 Subject: [PATCH] lnd: don't wait until the RPC port is open after unlocking According to the release notes of lnd 0.13.0 [0] the RPC service is available at all times. [0] https://github.com/lightningnetwork/lnd/releases/tag/v0.13.0-beta --- modules/lnd.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/lnd.nix b/modules/lnd.nix index 8093bc9..d82b4b9 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -239,11 +239,6 @@ in { -d "{\"wallet_password\": \"$(cat ${secretsDir}/lnd-wallet-password | tr -d '\n' | base64 -w0)\"}" \ ${restUrl}/unlockwallet fi - - # Wait until the RPC port is open - while ! { exec 3>/dev/tcp/${cfg.rpcAddress}/${toString cfg.rpcPort}; } &>/dev/null; do - sleep 0.1 - done '') # Setting macaroon permission for other users needs root permissions (nbLib.privileged "lnd-create-macaroons" ''