diff --git a/configuration/cardano/mainnet-topology.json b/configuration/cardano/mainnet-topology.json index daa4e773694..7f400d02136 100644 --- a/configuration/cardano/mainnet-topology.json +++ b/configuration/cardano/mainnet-topology.json @@ -7,10 +7,6 @@ { "address": "backbone.mainnet.cardanofoundation.org", "port": 3001 - }, - { - "address": "backbone.mainnet.emurgornd.com", - "port": 3001 } ], "localRoots": [ diff --git a/flake.lock b/flake.lock index 0f7fb212c09..6ffe3ebdbbc 100644 --- a/flake.lock +++ b/flake.lock @@ -1142,11 +1142,11 @@ "sodium": "sodium_2" }, "locked": { - "lastModified": 1786665795, - "narHash": "sha256-IYKsT8+Fl4P/KQPnLhFEexK1cgtCJefoWfovvF+URlM=", + "lastModified": 1787718550, + "narHash": "sha256-Wkevfb7P201JHWpP4sbSg3HEO4YDPuCrwvARatfF2RI=", "owner": "input-output-hk", "repo": "iohk-nix", - "rev": "9ebcc963cc35bf8ba974a069186dbe101dfdf395", + "rev": "af463a46dbe9c6e2db6b2639c0f35f5689e0c3a8", "type": "github" }, "original": { diff --git a/nix/nixos/cardano-node-service.nix b/nix/nixos/cardano-node-service.nix index bb657e2e4b0..5a4f6622203 100644 --- a/nix/nixos/cardano-node-service.nix +++ b/nix/nixos/cardano-node-service.nix @@ -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."; + topo; selectTopology = i: if cfg.topology != null