Where does Hyperledger Fabric store the database for the Blockchain? [closed]

0 votes

I have hyperledger fabric network setup on my local machine with a single validating node. I am developing a chaincode and would like to clear my blockchain. I have read that the hyperledger fabric stores the database under /var/hyperledger. However, I do not see this hyperledger directory under /var. Is there another location for this directory? My development platform is MAC and I am using docker-compose to start my hyperledger fabric network.

Jul 13, 2018 in Blockchain by sabby
• 4,350 points

closed May 2 by Omkar 814 views
0 votes

The Hyperledger Fabric stores the database in /var/hyperledger/production/db within the file system for the validating peer. Navigation to the validating peer file system can be done by using a command like docker exec -it substitute_container_name bash.  You can follow the instructions at https://hub.docker.com/r/ibmblockchain/fabric-peer/ for using Hyperledger Docker images, then the database location should be /var/hyperledger/production/db.

answered Jul 13, 2018 by Perry
• 17,020 points

Related Questions In Blockchain

+1 vote
4 answers
0 votes
1 answer

Where can I find the reference format for crypto-config.yaml and configtx.yaml Hyperledger Fabric files?

The sample config files in the Hyperledger Fabric main ...READ MORE

answered Jun 27, 2018 in Blockchain by ariaholic
• 7,340 points
440 views
+1 vote
1 answer
+1 vote
5 answers

Where does the smart contracts stored and executed on blockchain?

Ethereum smart contracts are executed on EVM ...READ MORE

answered May 2, 2018 in Blockchain by Shashank
• 10,350 points
1,074 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,550 points
83 views
+1 vote
1 answer
+4 votes
4 answers

How does the blockchain verification process work?

First of all, when someone creates a ...READ MORE

answered Mar 26, 2018 in Blockchain by Perry
• 17,020 points
229 views
+16 votes
4 answers