mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-10-05 19:57:27 +03:00
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: ACK143fe30e03
Tree-SHA512: 8a212dddd0c208058dfee79d50ca1b22fadcca6b852b2044cee110a258b86a8ce1b2c1c1f9da2c989c7f21cf6cd7d59680624ac8cced7a03e6d4202f9848c4f5
This commit is contained in:
commit
4e5c5dfe9b
@ -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…
Reference in New Issue
Block a user