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

网友投稿 271 2022-11-12

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

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

未完待续......

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Spring @Cacheable注解中key的使用详解
下一篇:USB HUB定制厂家实现电脑在任何环境下都能满足需求
相关文章

 发表评论

暂时没有评论,来抢沙发吧~