Hi. I need to know where the Hyperledger fabric stores the database of the Blockchain. I am trying to develop a new chaincode and so I want to clean up the existing Blockchain. I am working on Ubuntu machine and want to delete the relevant files of Hyperledger fabric. So can you tell me where the files of Hyperledger is stored?
The data of the Hyperledger Blockchain is stored in folder /var/hyperledger/production/db. Go to this directory:
$ cd /var/hyperledger/production/db
and then remove all the files in it:
$ rm -rf *
If you want to delete the installed chaincode, then you can use Docker to delete it. Try this command:
docker stop $(docker ps -aq) && docker rm $(docker ps -aq)
You can also try restarting the docker. It will clear the Blockchain.
$ docker restart
$ chaincode stop
The Hyperledger Fabric stores the database in ...READ MORE
The sample config files in the Hyperledger Fabric main ...READ MORE
Hyperledger client SDK is a component used ...READ MORE
Ethereum smart contracts are executed on EVM ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
This will solve your problem
Transaction txn ...READ MORE
To read and add data you can ...READ MORE
The structure of block in Hyperledger Fabric ...READ MORE
Consider following tutorial from Hyperledger Fabric "Getting Started" pages.
Basically ...READ MORE
Already have an account? Sign in.