Skip to content

Commit

Permalink
Merge #728
Browse files Browse the repository at this point in the history
728: Default dns relays r=disassembler a=disassembler

Issue
-----------

-

- This PR **results**/**does not result** in breaking changes to upstream dependencies.

Checklist
---------
- [ ] This PR contains all the work required to resolve the linked issue.

- [ ] The work contained has sufficient documentation to describe what it does and how to do it.

- [ ] The work has sufficient tests and/or testing.

- [ ] I have committed clear and descriptive commits. Be considerate as somebody else will have to read these.

- [ ] I have added the appropriate labels to this PR.


Co-authored-by: Samuel Leathers <[email protected]>
  • Loading branch information
iohk-bors[bot] and disassembler authored Mar 26, 2020
2 parents a94e789 + 4aa3f72 commit a3dcbd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nix/nixos/cardano-node-service.nix
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ in {
type = types.path;
default = commonLib.mkEdgeTopology {
inherit (cfg) port;
inherit (envConfig) edgeNodes;
edgeNodes = [ envConfig.relaysNew ];
};
description = ''
Cluster topology
Expand Down
7 changes: 6 additions & 1 deletion nix/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ let
topologyFile = let
edgePort = if config.useProxy then config.proxyPort else config.edgePort;
edgeHost = if config.useProxy then config.proxyHost else config.edgeHost;
edgeNodes = if config.useProxy then [] else config.edgeNodes;
hasCustomEdgeNodes = __hasAttr "edgeNodes" customConfig;
hasRelaysNew = __hasAttr "relaysNew" config;
edgeNodes = let
relaysNodes = [ config.relaysNew ];
edgeNodes' = if (hasCustomEdgeNodes || !hasRelaysNew) then config.edgeNodes else relaysNodes;
in if config.useProxy then [] else edgeNodes';
in config.topologyFile or mkEdgeTopology {
inherit (config) hostAddr port;
inherit edgeNodes edgeHost edgePort;
Expand Down

0 comments on commit a3dcbd6

Please sign in to comment.