Skip to content

Commit

Permalink
Merge #671: bitcoind: set default ports in regtest mode
Browse files Browse the repository at this point in the history
143fe30 bitcoind: set default ports in regtest mode (Jonas Nick)

Pull request description:

ACKs for top commit:
  erikarvstedt:
    ACK 143fe30

Tree-SHA512: 8a212dddd0c208058dfee79d50ca1b22fadcca6b852b2044cee110a258b86a8ce1b2c1c1f9da2c989c7f21cf6cd7d59680624ac8cced7a03e6d4202f9848c4f5
  • Loading branch information
jonasnick committed Jan 16, 2024
2 parents 6f72575 + 143fe30 commit 4e5c5df
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 4e5c5df

Please sign in to comment.