Skip to content

Commit

Permalink
imp: add an empty cardano-node-topology fn
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski committed Apr 25, 2024
1 parent 25ba1b1 commit 152531b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flake/nixosModules/profile-cardano-node-topology.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
then []
else p2pEdgeNodes cfg.edgeNodes;

empty = [];

list = topoList {inherit (cfg) nodes nodeList;};

infix = topoInfixFiltered {
Expand Down Expand Up @@ -332,13 +334,13 @@
};

producerTopologyFn = mkOption {
type = enum ["edge" "infix" "list" "simple" "simpleMax"];
type = enum ["edge" "empty" "infix" "list" "simple" "simpleMax"];
default = "simple";
description = "The topology function to use for producers.";
};

publicProducerTopologyFn = mkOption {
type = enum ["edge" "infix" "list" "simple" "simpleMax"];
type = enum ["edge" "empty" "infix" "list" "simple" "simpleMax"];
default = "edge";
description = "The topology function to use for public producers.";
};
Expand Down

0 comments on commit 152531b

Please sign in to comment.