8928/where-does-hyperledger-fabric-store-database-the-blockchain
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
Try
$ chaincode stop
The Hyperledger Fabric stores the database in ...READ MORE
Hyperledger fabric supports LevelDB and CouchDB as ...READ MORE
It signs the transaction (eg. initiated by ...READ MORE
The sample config files in the Hyperledger ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE
To read and add data you can ...READ MORE
It signs the transaction with its private key ...READ MORE
The structure of block in Hyperledger Fabric ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.