Merge fort-nix/nix-bitcoin#671: bitcoind: set default ports in regtest mode

143fe30e03 bitcoind: set default ports in regtest mode (Jonas Nick)

Pull request description:

ACKs for top commit:
  erikarvstedt:
    ACK 143fe30e03

Tree-SHA512: 8a212dddd0c208058dfee79d50ca1b22fadcca6b852b2044cee110a258b86a8ce1b2c1c1f9da2c989c7f21cf6cd7d59680624ac8cced7a03e6d4202f9848c4f5
This commit is contained in:
Jonas Nick 2024-01-16 12:10:48 +00:00
commit 4e5c5dfe9b
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

@ -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 {
@ -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 {