We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PraosMode
1 parent 435978c commit 1ee34ffCopy full SHA for 1ee34ff
modules/node.nix
@@ -77,12 +77,17 @@ in
77
inherit (cfg) socketPath;
78
environment = config.cardano.network;
79
80
- extraNodeConfig = lib.mkIf cfg.prometheusExporter.enable {
81
- hasPrometheus = [
82
- "0.0.0.0"
83
- config.cardano.node.prometheusExporter.port
84
- ];
85
- };
+ extraNodeConfig = lib.mkMerge [
+ # Use PraosMode by default instead of GenesisMode for better peer connectivity
+ (lib.mkDefault { ConsensusMode = "PraosMode"; })
+
+ (lib.mkIf cfg.prometheusExporter.enable {
+ hasPrometheus = [
86
+ "0.0.0.0"
87
+ config.cardano.node.prometheusExporter.port
88
+ ];
89
+ })
90
91
92
# Listen on all interfaces.
93
hostAddr = lib.mkDefault "0.0.0.0";
0 commit comments