Skip to content

Commit fba0bfb

Browse files
committed
bootstraps: allow SRV records
1 parent 4dce95d commit fba0bfb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cardano-lib/default.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,14 @@ let
6868
p2pTopology = mkEdgeTopologyP2P {
6969
inherit (env) edgeNodes;
7070

71-
bootstrapPeers = map (e: {address = e.addr; inherit (e) port;}) env.edgeNodes;
71+
72+
# If an address is provided without a port or a port set to null within
73+
# the attrs, the address will be interpreted as an SRV record.
74+
bootstrapPeers = map (e:
75+
{address = e.addr;}
76+
// optionalAttrs (e ? port && e.port != null) {inherit (e) port;})
77+
env.edgeNodes;
78+
7279
useLedgerAfterSlot = env.useLedgerAfterSlot;
7380

7481
# Genesis mode is now default for preview and preprod as of node 10.5.0.

0 commit comments

Comments
 (0)