bitcoind: set default ports in regtest mode
This commit is contained in:
parent
88c2a1ce55
commit
143fe30e03
1 changed files with 4 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue