Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions configuration/cardano/mainnet-topology.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
{
"address": "backbone.mainnet.cardanofoundation.org",
"port": 3001
},
{
"address": "backbone.mainnet.emurgornd.com",
"port": 3001
}
],
"localRoots": [
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 5 additions & 11 deletions nix/nixos/cardano-node-service.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,11 @@ let
};

assertNewTopology = i:
let
checkEval = tryEval (
assert
if cfg.bootstrapPeers == [] && all (e: e.trustable != true) ((newTopology i).localRoots)
then false
else true;
newTopology i);
in
if checkEval.success
then checkEval.value
else abort "When bootstrapPeers is an empty list, at least one localRoot must be trustable, otherwise cardano node will fail to start.";
let topo = newTopology i; in
assert assertMsg
(cfg.bootstrapPeers == [] -> any (e: e.trustable == true) topo.localRoots)
"When bootstrapPeers is an empty list, at least one localRoot must be trustable, otherwise cardano node will fail to start.";
Comment thread
johnalotoski marked this conversation as resolved.
topo;

selectTopology = i:
if cfg.topology != null
Expand Down
Loading