Skip to content

Commit

Permalink
nix svc: drop LDMB specific buggy assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeier committed May 8, 2024
1 parent 94a7798 commit be18440
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nix/nixos/cardano-node-service.nix
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,6 @@ in {
config = mkIf cfg.enable ( let
stateDirBase = "/var/lib/";
runDirBase = "/run/";
lmdbPaths = filter (x: x != null) (map (e: lmdbDatabasePath e) cfg.instances);
genInstanceConf = f: listToAttrs (if cfg.instances > 1
then genList (i: let n = "cardano-node-${toString i}"; in nameValuePair n (f n i)) cfg.instances
else [ (nameValuePair "cardano-node" (f "cardano-node" 0)) ]); in lib.mkMerge [
Expand Down Expand Up @@ -817,10 +816,6 @@ in {
assertion = !(cfg.systemdSocketActivation && cfg.useNewTopology);
message = "Systemd socket activation cannot be used with p2p topology due to a systemd socket re-use issue.";
}
{
assertion = (length lmdPaths) == (length (lib.lists.unique lmdbPaths));
message = "When configuring multiple LMDB enabled nodes on one instance, lmdbDatabasePath must be unique.";
}
];
}
]);
Expand Down

0 comments on commit be18440

Please sign in to comment.