I've installed Hyperledger fabric 2.0. I'm running the fabcar example in the fabric samples directory. The fabcar chaincode is using test-network as fabric-network. I want to know which stateDB is being used by fabcar example.
When I run command docker ps -a
I'm getting output as couchdb as shown below.
bdf6370d6f5d hyperledger/fabric-couchdb "tini -- /docker-ent…" 16 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb0
660ba3f7d2a4 hyperledger/fabric-couchdb "tini -- /docker-ent…" 16 minutes ago Up 16 minutes 4369/tcp, 9100/tcp, 0.0.0.0:7984->5984/tcp couchdb1
But the chaincode is storing data in the form of key-value pair in fab-car chaincode. Key-value pair storage is for level-db
await ctx.stub.putState(carNumber, Buffer.from(JSON.stringify(car)));
I'm really confused about whether I'm using level-db or state-db for fabcar example.