# Topology updater on testnet is adding mainnet peers to my relay

**URL:** <https://forum.cardano.org/t/topology-updater-on-testnet-is-adding-mainnet-peers-to-my-relay/46964>\
**Category:** Operate a Stake Pool\
**Tags:** testnet, topology\
**Created:** [9 February 2021 00:09 UTC](https://forum.cardano.org/t/topology-updater-on-testnet-is-adding-mainnet-peers-to-my-relay/46964 "2021-02-09T00:09:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafek47](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/rafek47/32/61721_2.png) [@rafek47](https://forum.cardano.org/u/rafek47)\
**Post date:** [9 February 2021 00:09 UTC](https://forum.cardano.org/t/topology-updater-on-testnet-is-adding-mainnet-peers-to-my-relay/46964/1 "2021-02-09T00:09:19Z")

</div>

Hi, am actually running my nodes on testnet using topology updater. But can see the topology updater is adding both testnet an mainnet relays too. When I check the log of my node, there are many errors related to mainnet nodes. Any ideas how to solve?

Log from my cardano-node:  
Feb 09 00:58:20 ADARelay bash[236348]: [ADARelay:cardano.node.DnsSubscription:Notice:4728] [2021-02-08 23:58:20.09 UTC] Domain: “[relays-new.cardano-mainnet.iohk.io](http://relays-new.cardano-mainnet.iohk.io)” Co\>  
Feb 09 00:58:20 ADARelay bash[236348]: [ADARelay:cardano.node.DnsSubscription:Error:4728] [2021-02-08 23:58:20.10 UTC] Domain: “[relays-new.cardano-mainnet.iohk.io](http://relays-new.cardano-mainnet.iohk.io)” App\> \<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<, mainnet relays  
Feb 09 00:58:20 ADARelay bash[236348]: [ADARelay:cardano.node.ErrorPolicy:Notice:67] [2021-02-08 23:58:20.10 UTC] IP 52.57.223.108:3001 ErrorPolicySuspendConsumer (Jus\>  
Feb 09 00:58:20 ADARelay bash[236348]: [ADARelay:cardano.node.DnsSubscription:Warning:70] [2021-02-08 23:58:20.11 UTC] Domain: “[relays-new.cardano-mainnet.iohk.io](http://relays-new.cardano-mainnet.iohk.io)” Fai\> \<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\< same  
Feb 09 00:58:23 ADARelay bash[236348]: [ADARelay:cardano.node.ChainDB:Notice:50] [2021-02-08 23:58:23.31 UTC] Chain extended, new tip: e4026cd02e219be188ef7067a1febe91\>  
Feb 09 00:58:30 ADARelay bash[236348]: [ADARelay:cardano.node.DnsSubscription:Notice:4736] [2021-02-08 23:58:30.08 UTC] Domain: “[relays-new.cardano-mainnet.iohk.io](http://relays-new.cardano-mainnet.iohk.io)” Co\>  
Feb 09 00:58:30 ADARelay bash[236348]: [ADARelay:cardano.node.DnsSubscription:Notice:4736] [2021-02-08 23:58:30.09 UTC] Domain: “[relays-new.cardano-mainnet.iohk.io](http://relays-new.cardano-mainnet.iohk.io)” Co\>  
Feb 09 00:58:30 ADARelay bash[236348]: [ADARelay:cardano.node.DnsSubscription:Error:4736] [2021-02-08 23:58:30.10 UTC] Domain: “[relays-new.cardano-mainnet.iohk.io](http://relays-new.cardano-mainnet.iohk.io)” App\>  
Feb 09 00:58:30 ADARelay bash[236348]: [ADARelay:cardano.node.ErrorPolicy:Notice:67] [2021-02-08 23:58:30.10 UTC] IP 52.57.223.108:3001 ErrorPolicySuspendConsumer (Jus\>

* * *

toplogy updater setup:  
cat topologyUpdater.sh  
^#!/bin/bash  
#shellcheck disable=SC2086,SC2034

USERNAME=myusername /////// not sharing my real username here //////  
CNODE\_PORT=6000 # must match your relay node port as set in the startup command  
CNODE\_HOSTNAME=“CHANGE ME” # optional. must resolve to the IP you are requesting from  
CNODE\_BIN="/usr/local/bin"  
CNODE\_HOME=/home/myusername/cnode  
CNODE\_LOG\_DIR="/home/myusername/cnode/logs"  
GENESIS\_JSON="/home/myusername/cnode/config/testnet-shelley-genesis.json"  
NETWORKID=$(jq -r .networkId GENESIS\_JSON) \<\<\< getting from genesis json config CNODE\_VALENCY=1 # optional for multi-IP hostnames NWMAGIC=(jq -r .networkMagic \< $GENESIS\_JSON)

* * *

testnet JSON config file \> latest ver. downloaded from [Cardano Configurations](https://hydra.iohk.io/build/5367762/download/1/index.html) :  
cat testnet-shelley-genesis.json  
{  
“activeSlotsCoeff”: 0.05,  
“protocolParams”: {  
“protocolVersion”: {  
\<\>  
“updateQuorum”: 5,  
“networkId”: “Testnet”, \<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\< networkId set to testnet  
“initialFunds”: {},  
“maxLovelaceSupply”: 45000000000000000,  
“networkMagic”: 1097911063,  
“epochLength”: 432000,  
“systemStart”: “2019-07-24T20:20:16Z”,  
“slotsPerKESPeriod”: 129600,  
“slotLength”: 1,  
“maxKESEvolutions”: 62,  
“securityParam”: 2160  
}

* * *

topology file:  
cat testnet-topology.json  
{ “resultcode”: “402”, “datetime”:“2021-02-07 01:36:07”, “clientIp”: “79.143.178.65”, “iptype”: 4, “msg”: “IP is not (yet) allowed to fetch this list”, “Producers”: [ { “addr”: “\<\>”, “port”: 6000, “valency”: 2 },  
{ “addr”: “[relays-new.cardano-testnet.iohkdev.io](http://relays-new.cardano-testnet.iohkdev.io)”, “port”: 3001, “valency”: 2 },  
{ “addr”: “[relays-new.cardano-mainnet.iohk.io](http://relays-new.cardano-mainnet.iohk.io)”, “port”: 3001, “valency”: 2 } ] } \<\<\<\<\<\<\<\<\< mainnet nodes

Any ideas how to fix that?

---

<div class="post-metadata">

**Author:** ![blambow](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/blambow/32/30045_2.png) [@blambow](https://forum.cardano.org/u/blambow)\
**Post date:** [11 March 2021 21:41 UTC](https://forum.cardano.org/t/topology-updater-on-testnet-is-adding-mainnet-peers-to-my-relay/46964/2 "2021-03-11T21:41:46Z")

</div>

Hi rafek47! I suppose you’ve followed the CoinCashew tutorial. I’m no expert but ran into your problem as well. Either IOHK or CoinCashew screwed up with the DNS address.

It’s not  
[relays-new.cardano-mainnet.iohk.io](http://relays-new.cardano-mainnet.iohk.io) **BUT**  
relays-new.cardano-testnet.iohk_dev_.io (note the missing _dev_ after iohk and _testnet_ instead of mainnet).

Solution:

update your testnet-topology.json to look like [THIS](https://hydra.iohk.io/build/5367762/download/1/testnet-topology.json).

You can find all the official config files [here](https://hydra.iohk.io/build/5367762/download/1/index.html).

I hope it will help, don’t hesitate to come back if this doesn’t solve it.

Cheers!

---

<div class="post-metadata">

**Author:** ![rafek47](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/rafek47/32/61721_2.png) [@rafek47](https://forum.cardano.org/u/rafek47)\
**Post date:** [11 March 2021 21:56 UTC](https://forum.cardano.org/t/topology-updater-on-testnet-is-adding-mainnet-peers-to-my-relay/46964/3 "2021-03-11T21:56:54Z")

</div>

Hi blambow  
Sure i did it manually and changed to testnet domains, but I did not know how to do it in topology updater, which of course overwrited it everytime, even when i have set testnet in topology updater.  
I have switched to mainnet, so this was solved for me this way.

---

<div class="post-metadata">

**Author:** ![doc\_krieger](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@doc\_krieger](https://forum.cardano.org/u/doc_krieger)\
**Post date:** [29 March 2021 13:58 UTC](https://forum.cardano.org/t/topology-updater-on-testnet-is-adding-mainnet-peers-to-my-relay/46964/4 "2021-03-29T13:58:38Z")

</div>

Running into the same issue. Has anyone figured out how to configure topologyudater.sh to run on testnet?
