How to configure + for testnet


After a couple of days of a running testnet pool today morning I saw no more TX processed in my graphana:

I already tried restarting the nodes and also had a look at journalctl but nothing helpful to see there.

This is my testnet-topology.json:

testnet-relay-2:~/cardano-my-node$ cat testnet-topology.json
  "Producers": [
        "addr": "*CENSORED*",
        "port": 6000,
        "valency": 1
      "addr": "",
      "port": 3001,
      "valency": 2

I know about the topology updater and pull scripts from coincashew guide but had troubles with it. Can this be the cause for my problem?

I advertised my relay for a 4 hours with the topologyupdater script successfully, pulled new topology but got back mainnet configs. It was stated here that I simply can change to own topology.json: Topology updater on testnet is adding mainnet peers to my relay

You need to pass the magic query parameter to topology updater which corresponds to the main testnet one.

To be on the safe side pass it in both scripts, the one that sends the heartbeat every hour and the one that pulls the topology.

To the topologyUpdater URL in the script add &magic=1097911063 for the testnet.

So I did it again and seems like now I got my mistake when tried first: I used ‘&magic=${NWMAGIC}’ but that variable is not defined in the For every one that will follow to struggle how to do it here are my complete changes: :

# shellcheck disable=SC2086,SC2034
NETWORKID=$(jq -r .networkId $GENESIS_JSON)
CNODE_VALENCY=1   # optional for multi-IP hostnames
NWMAGIC=$(jq -r .networkMagic < $GENESIS_JSON)
[[ "${NETWORKID}" = "Mainnet" ]] && HASH_IDENTIFIER="--mainnet" || HASH_IDENTIFIER="--testnet-magic ${NWMAGIC}"
[[ "${NWMAGIC}" = "764824073" ]] && NETWORK_IDENTIFIER="--mainnet" || NETWORK_IDENTIFIER="--testnet-magic ${NWMAGIC}"
export PATH="${CNODE_BIN}:${PATH}"
blockNo=$(/usr/local/bin/cardano-cli query tip ${NETWORK_IDENTIFIER} | jq -r .block )
# Note:
# if you run your node in IPv4/IPv6 dual stack network configuration and want announced the
# IPv4 address only please add the -4 parameter to the curl command below  (curl -4 -s ...)
if [ "${CNODE_HOSTNAME}" != "CHANGE ME" ]; then
if [ ! -d ${CNODE_LOG_DIR} ]; then
  mkdir -p ${CNODE_LOG_DIR};
curl -s "${CNODE_PORT}&blockNo=${blockNo}&valency=${CNODE_VALENCY}&magic=${NWMAGIC}${T_HOSTNAME}" | tee -a

curl -s -o /home/*CENSORED*/cardano-my-node/testnet-topology.json "${BLOCKPRODUCING_IP}:${BLOCKPRODUCING_PORT}:1|"

The results in testnet-topology.json after pulling with script:

cat testnet-topology.json 
{ "resultcode": "201", "networkMagic": "1097911063", "ipType":4, "requestedIpVersion":"4", "Producers": [ 
  { "addr": "*CENSORED*", "port": 6000, "valency": 1 } ,
  { "addr": "", "port": 3001, "valency": 2 } ,
  { "addr": "", "port": 7700, "valency": 1, "distance":2,  "continent":"EU",  "country":"DE",  "region":"HE" },
  { "addr": "", "port": 6000, "valency": 1, "distance":183,  "continent":"EU",  "country":"DE",  "region":"NW" },
  { "addr": "", "port": 3003, "valency": 1, "distance":185,  "continent":"EU",  "country":"DE",  "region":"BY" },
  { "addr": "", "port": 3001, "valency": 1, "distance":307,  "continent":"EU",  "country":"DE",  "region":"BY" },
  { "addr": "", "port": 6000, "valency": 1, "distance":316,  "continent":"EU",  "country":"BE",  "region":"BRU" },
  { "addr": "", "port": 3001, "valency": 1, "distance":377,  "continent":"EU",  "country":"NL",  "region":"NH" },
  { "addr": "", "port": 3003, "valency": 1, "distance":473,  "continent":"EU",  "country":"CH",  "region":"GE" },
  { "addr": "", "port": 6000, "valency": 1, "distance":633,  "continent":"EU",  "country":"GB",  "region":"ENG" },
  { "addr": "", "port": 7004, "valency": 1, "distance":693,  "continent":"EU",  "country":"GB",  "region":"ENG" },
  { "addr": "", "port": 6000, "valency": 1, "distance":1085,  "continent":"EU",  "country":"IE",  "region":"L" },
  { "addr": "", "port": 6000, "valency": 1, "distance":1450,  "continent":"EU",  "country":"RO",  "region":"B" },
  { "addr": "", "port": 6001, "valency": 1, "distance":2017,  "continent":"AS",  "country":"RU",  "region":"MOW" },
  { "addr": "", "port": 3000, "valency": 1, "distance":5999,  "continent":"NA",  "country":"US",  "region":"MA" },
  { "addr": "", "port": 5001, "valency": 1, "distance":6340,  "continent":"NA",  "country":"NL",  "region":"NY" },
  { "addr": "", "port": 6000, "valency": 1, "distance":6605,  "continent":"NA",  "country":"US",  "region":"VA" },
  { "addr": "", "port": 6000, "valency": 1, "distance":7174,  "continent":"NA",  "country":"US",  "region":"SC" },
  { "addr": "", "port": 6003, "valency": 1, "distance":7745,  "continent":"NA",  "country":"US",  "region":"FL" },
  { "addr": "", "port": 6005, "valency": 1, "distance":7745,  "continent":"NA",  "country":"US",  "region":"FL" },
  { "addr": "", "port": 3001, "valency": 1, "distance":8245,  "continent":"NA",  "country":"US",  "region":"OR" },
  { "addr": "", "port": 3001, "valency": 1, "distance":9119,  "continent":"NA",  "country":"US",  "region":"CA" }

it wasnt mentioned anywhere how it has to look so that is probably why some like me are not able to do it properly. I will change the topic accordingly so people can find it

e: works now

Hello guys, I came across the same thing and now I “solved” the scripts as @efkay did.
Both and is working properly but in my case I still dont see TX processed increasing.

Do I have to wait 24hs or something like that?
should I wait until I see my relay ip in here? (

I have the script running hourly with more than 20 results as this →
{ "resultcode": "204", "datetime":"2021-09-28 23:48:59", "clientIp": "<RELAY_EXTERNAL_IP>", "iptype": 4, "msg": "glad you're staying with us" }

Maybe you don’t see the Processed TX in gLiveView increasing because TraceMempool is set to false in your config.json file. Check that first, set it to true and restart the node. And if you then see the TX increasing, you should set TraceMempool back to false on the relay in order to save some CPU. And you should also know that we don’t exactly know for sure what are the consequences of turning off this very parameter : [Documentation] - TraceMempool: practical usage for relays · Issue #2350 · input-output-hk/cardano-node · GitHub

Hi Guys, @TSAR_stakepool
Thanks for posting.
Indeed now worked after over night waiting, TX Processed is increasing. (very happy here)
I have set TraceMempool to true in the BP node (I guess in BP I wouldnt never change to false) in relay node it is false