Skip to content

Commit

Permalink
lnd: allow curl to retry in the create-wallet script
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed Jul 8, 2021
1 parent a23b9d1 commit ce10003
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/lnd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ in {
RestartSec = "10s";
ReadWritePaths = cfg.dataDir;
ExecStartPost = let
curl = "${pkgs.curl}/bin/curl -s --show-error";
# Retrying is necessary because it can happen that the lnd socket is
# existing, but the RPC service isn't yet, which results in error
# "waiting to start, RPC services not available".
curl = "${pkgs.curl}/bin/curl -s --show-error --retry 10";
restUrl = "https://${cfg.restAddress}:${toString cfg.restPort}/v1";
in [
(nbLib.script "lnd-create-wallet" ''
Expand Down

0 comments on commit ce10003

Please sign in to comment.