首页 > 其他 > 详细

实战:区块链hyperledger fabric 初体验 - 2: 测试网络

时间:2018-02-09 14:40:40      阅读:395      评论:0      收藏:0      [点我收藏+]
1、make gen_config

generate the crypto-config and channel-artifacts.

$ hyperledger/docker-compose-files/hyperledger_fabric/v1.0.5 $ make gen_config

2、进入到cli容器里面

$ docker exec -it fabric-cli bash

3、Create Application Channel with default name of businesschannel.

# cd /tmp

# bash /tmp/scripts/test_channel_create.sh

技术分享图片


4、Join Peers into Application Channel

# bash scripts/test_channel_join.sh

技术分享图片


5、Intall Chaincode to All Peers

# bash scripts/test_cc_install.sh

  

技术分享图片

      

6、Instantiate Chaincode in the Application Channel

instantiate chaincode example02

# bash scripts/test_cc_instantiate.sh

    技术分享图片

And there will be new chaincode container generated in the system, looks like

技术分享图片


7、Test Chaincode

test chaincode example02 with invoke and query.

# bash scripts/test_cc_invoke_query.sh

技术分享图片


8、Test System Chaincode

test LSCC and QSCC

# bash scripts/test_lscc.sh

# bash scripts/test_qscc.sh

技术分享图片

技术分享图片


9、Test Fetch Blocks

test fetching blocks from channels.

# bash scripts/test_fetch_blocks.sh

技术分享图片

10、Test Configtxlator

test configtxlator to change the channel configuration.

# bash scripts/test_configtxlator.sh solo

技术分享图片

未完待续......

实战:区块链hyperledger fabric 初体验 - 2: 测试网络

原文:http://blog.51cto.com/yinweiai/2070525

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!