It is normal to be overwrited because topology updater does this… but only on Relay nodes
On BP you should have the topologyupdater scripts configured:
#MAX_PEERS=15 # Maximum number of peers to return on successful fetch
CUSTOM_PEERS=“IP_RELAY1:PORT_RELAY1:1|IP_RELAY2:PORT_RELAY2:1|”
this way inside your BP topology file you will find only your Relays
======================
Relays:
using the latest script:
CNODE_TOPOLOGY="${CNODE_HOME}/files/topology.json" # Destination topology.json file you’d want to write output to
MAX_PEERS=13 # Maximum number of peers to return on successful fetch
CUSTOM_PEERS=“Relay1_IP:port|BP_IP:port|Relay2_IP:port|relays-new.cardano-mainnet.iohk.io:3001:2”
this is overwrites the topology files:
and looks like this:
{ “resultcode”: “201”, “networkMagic”: “764824073”, “ipType”:4, “Producers”: [
{ “addr”: “Relay1_IP”, “port”: x, “valency”: 1 },
{ “addr”: “BP_IP”, “port”: x, “valency”: 1 },
{ “addr”: “Relay2_IP”, “port”: x, “valency”: 1 },
{ “addr”: “relays-new.cardano-mainnet.iohk.io”, “port”: 3001, “valency”: 2 },
{ “addr”: “Public_relay”, “port”: x, “valency”: 1, “distance”:25, “continent”:“NA”, “country”:“US”, “region”:“MO” },
{ “addr”: “Public_relay”, “port”: 6000, “valency”: 1, “distance”:767, “continent”:“NA”, “country”:“US”, “region”:“GA” },
{ “addr”: “public_relay”, “port”: 6001, “valency”: 1, “distance”:1150, “continent”:“NA”, “country”:“US”, “region”:“MD” },
…
BE CAREFULL on BP you will not use MAX_PEERS (use # )