How to remove the previous BlockChain data?

Blockchain

I am learning to develop chaincode and when testing it, when i killed the peer and restarted the blockchain, the blockchain did not start. I thought this could be because there already exists data about previous blockchain. Am i right? How to remove blockchain data?

2
Answers

Replies

The previous blockchain data could be one of the primary reasons that would prevent the blockchain to restart. The blockchain data will be represented in the following folder:  /var/hperyledger/production/db folder. You will need to delete the  file and try to restart the blockchain.

 

The previous blockchain data could be one of the primary reasons that would prevent the blockchain to restart. The blockchain data will be represented in the following folder:  /var/hperyledger/production/db folder. You will need to delete the  file and try to restart the blockchain.

 
 

If you want to unleash your potential in this competitive field, please visit the Blockchain course page for more information, where you can find the Blockchain tutorials and Blockchain frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.