Where is the transactions stored in IBM Blockchain Marble's Demo?

天大地大妈咪最大 提交于 2019-12-20 07:09:26

问题


I am running blockchain demo which is provided by IBM mentioned in below link :

https://github.com/IBM-Blockchain/marbles

I have run Hyper ledger Fabric network on one linux system and 3 more clients on another 3 virtual instance on which my marbles client is running. It is working proper.

If we do any transactions then it will affect all the 3 client, So, now if I want to see the all the transactions details, from where I can see it?

Is there any database or any files on client side?

Please provide me answer or reference link if any.

Thanks in advance.


回答1:


When using the Marbles tutorial, there is a “Story Mode” option that will display more details about the transaction process. See point 10 under the “Use Marbles” heading.

Transactions are stored on a ledger which is associated with each peer. Refer to the Hyperledger Fabric documentation on the ledger. The linked Transaction Flow section might also be helpful. The ledger itself is not propagated to a client-side application. However, queries initiated from client applications can be run against the ledger to return information.

The Hyperledger Fabric Writing Your First Application documentation topic could also help to explain how querying the ledger works.




回答2:


The marbles demo starts and uses a CouchDB docker container. You might be able to query it, but I don't know how the image was built. See line 187 in docker-compose-marblesv3.yaml.

It's easy to install CouchDB. You tell the peers about their CouchDB in the core.yaml file. But I don't see anything in the docker-compose-marblesv3.yaml so it is probable set in the image.



来源:https://stackoverflow.com/questions/48187808/where-is-the-transactions-stored-in-ibm-blockchain-marbles-demo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!