bitcoind: set default ports in regtest mode

This commit is contained in:
Jonas Nick 2024-01-01 14:51:14 +00:00
parent 88c2a1ce55
commit 143fe30e03
No known key found for this signature in database
GPG key ID: 4861DBF262123605

View file

@ -12,7 +12,8 @@ let
}; };
port = mkOption { port = mkOption {
type = types.port; 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."; description = mdDoc "Port to listen for peer connections.";
}; };
onionPort = mkOption { onionPort = mkOption {
@ -84,7 +85,8 @@ let
}; };
port = mkOption { port = mkOption {
type = types.port; 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."; description = mdDoc "Port to listen for JSON-RPC connections.";
}; };
threads = mkOption { threads = mkOption {