实战:区块链hyperledger fabric 初体验 - 2: 测试网络
2018-02-09 10:46
711 查看
1、make gen_config
generate the crypto-config and channel-artifacts.
2、进入到cli容器里面
3、Create Application Channel with default name of businesschannel.
4、Join Peers into Application Channel
5、Intall Chaincode to All Peers
6、Instantiate Chaincode in the Application Channel
instantiate chaincode example02
And there will be new chaincode container generated in the system, looks like
7、Test Chaincode
test chaincode example02 with invoke and query.
8、Test System Chaincode
test LSCC and QSCC
9、Test Fetch Blocks
test fetching blocks from channels.
10、Test Configtxlator
test configtxlator to change the channel configuration.
未完待续......
generate the crypto-config and channel-artifacts.
$ hyperledger/docker-compose-files/hyperledger_fabric/v1.0.5 $ make gen_config |
$ docker exec -it fabric-cli bash |
# 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 初体验 - 1:安装部署
- 使用Hyperledger Composer将业务网络部署到单个组织的Hyperledger Fabric区块链上
- 面向区块链网络的 Hyperledger Fabric 的 6 大技术优势
- 使用Hyperledger Composer将业务网络部署到单个组织的Hyperledger Fabric区块链上
- 区块链基础知识系列 第四课Hyperledger fabric 1.0网络组成及构建流程
- 区块链基础知识系列第5课 Hyperledger fabric1.0网络中transaction产生以及流转过程
- 从零开始配置Hyperledger Fabric区块链网络所需组件及Hyperledger Composer开发工具的安装
- 自己动手部署区块链-hyperledger/fabric-02
- 区块链、Hyperledger-Fabric框架Win10环境搭建
- 区块链学堂(第三课):以太坊生产网络/测试网络/私有网络+Geth 搭建私有网络实战
- 区块链 hyperledger fabric1.0 环境搭建
- 区块链之Hyperledger(超级账本)Fabric v1.0 的环境搭建(超详细教程)
- 在HyperLedger Fabric中启用CouchDB作为State Database(区块链数据库)
- 学习Hyperledger Fabric 实战联盟链
- 阿里云容器服务区块链解决方案全新升级 支持Hyperledger Fabric v1.1
- 阿里云容器服务区块链解决方案全新升级 支持Hyperledger Fabric v1.1
- Centos7 区块链 HyperLedger Fabric1.0.0安装
- Hyperledger Fabric 1.0 实战开发系列 第二课 Fabric环境搭建
- Java为Hyperledger Fabric(超级账本)开发区块链链代码智能合约之环境部署
- 区块链在中国(1):IBM HyperLedger fabric