synechron-finlabs / quorum-maker

Utility to create and monitor Quorum nodes
Apache License 2.0
196 stars 97 forks source link

How to delete the initial transaction/contract data except genesis block from dev network? #112

Open frizzbuzz opened 5 years ago

frizzbuzz commented 5 years ago

Hi, I set up a 4 node development network and everything works great. But I want to delete the default blocks except genesis and test with my own transaction data. Is there any way to delete the default blocks and contracts come with Dev network initialization ?

ab-chowdhury commented 5 years ago

Firstly, BLocks in blockchain once created can't be deleted. As blockchain is immutable.

Secondly, the contract which is getting deployed at the time of setting up a development network is Network manager contract. This contract can not be removed from quorum maker at any point.

abhayar commented 5 years ago

@frizzbuzz Once network is created using Quorum maker tool, it stores network metadata in few blocks . As of now you can't reset quorum chain. Soon QM tool will be having reset functionality too.