Skip to content

Commit

Permalink
bitcoind: set default ports in regtest mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed Jan 16, 2024
1 parent 88c2a1c commit 143fe30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/bitcoind.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ let
};
port = mkOption {
type = types.port;
default = 8333;
default = if !cfg.regtest then 8333 else 18444;
defaultText = "if !cfg.regtest then 8333 else 18444";
description = mdDoc "Port to listen for peer connections.";
};
onionPort = mkOption {
Expand Down Expand Up @@ -84,7 +85,8 @@ let
};
port = mkOption {
type = types.port;
default = 8332;
default = if !cfg.regtest then 8332 else 18443;
defaultText = "if !cfg.regtest then 8332 else 18443";
description = mdDoc "Port to listen for JSON-RPC connections.";
};
threads = mkOption {
Expand Down

0 comments on commit 143fe30

Please sign in to comment.