Parity – How to Reset a Private Blockchain (Parity) and Delete Contracts

contract-deploymentdappsparityprivate-blockchain

I have a private blockchain where I'm testing a contract and I want to re-deploy a very-slightly modified version. I need to delete the old one first. I control all of the nodes, so I can do this.

But I don't know how?

I tried deleting the ~/.parity/chains config dapps directories, but the contract is still out there.

Do I have to delete these directories on every node? Do I have to delete the "network" directory also?

Best Answer

  1. Stop all nodes
  2. Delete blockcahin folder on every node
  3. Recreate your blockchain from genesis at one node
  4. Start this node
  5. Connect other nodes to it

Did not tried, do not have oportunity now:( Try if this can help

Related Topic