CNtools, Testnet

Is there an easy way to switch to testnet on CNtools?

yes, run the prereqs.sh -n (if I remember well) and the files for testnet will be downloaded

Okay, Im assuming I need to shutdown my node, and rebuild using -n flag entirely

not rebuild you will need only the files for tesnet, just stop the node then go to

cd ~/tmp
./prereqs.sh -n

then start again the node, go to cntools create a new wallet and check if it has test_addr1 (testnet)

1 Like

Ill give it a try! Thank you as always

1 Like

Appears that didn’t work, still on the mainnet. Didn’t add testnet config files.

tesnet

hmm, try ./prereqs.sh -f -n

testnet

Type nano topology.json . Do u have the testnet IOHK nodes inside?

{
  "Producers": [
    {
      "addr": "relays-new.cardano-mainnet.iohk.io",
      "port": 3001,
      "valency": 2
    }
  ]
}

Doesnt not appear so, so I need to change that

Strange, try to delete the files folder

cd $CNODE_HOME

rm -R files

Then run again prereqs.sh -n

Then check inside the topology file

Still the same files and mainnet addr

Try prereqs.sh -n testnet -f

Its looks like that did the trick.

running1

1 Like

Now update the topologyUpdater.sh (custom peers)