Do I need to remove db and socket file/folder after using testnet?

Hi buddies,

I have a question that is after using testnet and before launch nodes in mainnet do I need to remove db and socket file/folder or I just only need to change the config file??

Thank you a lot!

1 Like

Only the files for maynnet

You can find them here

https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/getConfigFiles_AND_Connect.html

3 Likes

Sorry bud, I cant get it. When I run the command:

 cardano-node run \
   --topology path/to/testnet-topology.json \
   --database-path path/to/db \
   --socket-path path/to/db/node.socket \
   --host-addr x.x.x.x \
   --port 3001 \
   --config path/to/tesnet-config.json

It create db and socket folder/file and now when I switch to mainnet do I need to remove them?

You can just switch out to the mainnet in your run command. Pull the mainnet config files down , shutdown the cardano-node, re-run with mainnet configs with your command.

1 Like

thank you a lot @ToTheMoonADA

You’re very welcome. Welcome to the community and look forward to hearing your story.