Skip to content

Commit

Permalink
Merge pull request #6011 from IntersectMBO/jl/mn-relays-new
Browse files Browse the repository at this point in the history
Drop legacy relay bootstrap filtering in nixos node svc
  • Loading branch information
johnalotoski authored Oct 14, 2024
2 parents 6beea61 + ae057e1 commit 72642b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions configuration/cardano/mainnet-topology.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"port": 3001
},
{
"address": "backbone.mainnet.emurgornd.com",
"address": "backbone.mainnet.cardanofoundation.org",
"port": 3001
},
{
"address": "backbone.mainnet.cardanofoundation.org",
"address": "backbone.mainnet.emurgornd.com",
"port": 3001
}
],
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.

12 changes: 1 addition & 11 deletions nix/nixos/cardano-node-service.nix
Original file line number Diff line number Diff line change
Expand Up @@ -546,17 +546,7 @@ in {

bootstrapPeers = mkOption {
type = types.nullOr (types.listOf types.attrs);
default =
# Until legacy mainnet relays are deprecated and replaced by IOG bootstrap peers for relaysNew,
# filter the legacy relaysNew definition from the mainnet bootstrapPeers list.
#
# All other envs can use the edgeNodes list as bootstrapPeers.
if envConfig.name == "mainnet"
then
map (e: {address = e.addr; inherit (e) port;})
(builtins.filter (e: e.addr != envConfig.relaysNew) envConfig.edgeNodes)
else
map (e: {address = e.addr; inherit (e) port;}) envConfig.edgeNodes;
default = map (e: {address = e.addr; inherit (e) port;}) envConfig.edgeNodes;
description = ''
If set, it will enable bootstrap peers.
To disable, set this to null.
Expand Down

0 comments on commit 72642b5

Please sign in to comment.