///////////////////////////////////////////////////////////////////////
:End2endAndBackAgainIT

1.CreateChaincodID
ChaincodeID.newBuilder()....

2.check config

2.1 reset config

2.1.1 Use reflection to reset the static variable config as null
2.1.2 Build new config

2.2 Customize Config of fabric sdk

2.3 GetIntegrationTestsSampleOrgs
2.3.1 orgname
2.3.2 orgmspid
2.3.3 users--list
2.3.4 peerLocations--list
2.3.5 ordererlocations--list
2.3.6 eventHubLocations--list

2.3.7 domainName
2.3.8 peerAdmin
2.3.9 caLocation
2.3.10 Admin User
2.3.11 ca properties
2.3.12 create HFCAClient with ca location for every org

2.4 Setup

2.4.1 Store for persistence
2.4.2 setup peerAdmin,user,admin user

2.5 run fabirc test

2.5.1 new HFClient
2.5.2 set cryptosuite to HFClient
2.5.3 get one org from org list

2.5.4 reconstructchannel
2.5.4.1 channel name,HFClient,org
2.5.4.2 HFClient setUserContext
2.5.4.3 set client TLSProperties with client cert bytes
2.5.4.4 set client TLSProperties with client key bytes
2.5.4.5 use HFClient to new channel with name
2.5.4.6 use HFClient to new orderer with name, location and properties including sert bytes & key bytes
2.5.4.7 add all orderer of org into channel
2.5.4.8 add all peer of org into channel with peer name, peer location, peer properties,
2.5.4.9 for 1.0 add all event hub into channel with event hub name,location
2.5.4.10 for 1.1 peers should hava all roles,Do some sanity checks that they domainName

2.5.5 run channel with channel name & org with orderer,peers,users
2.5.5.1 set user context to HFClient

2.5.5.2 queryChaincodeForExpectedValue
2.5.5.2.1 newQueryProposalRequest from HFClient to get QueryByChaincodeRequest
2.5.5.2.2 use QueryByChaincodeRequest set args,Fcn,chaincodeID
2.5.5.2.3 use to channel to query proposals with QueryByChaincodeRequest
2.5.5.2.4 check every proposal response with isVerified,getpeer,payload,message,

2.5.5.3 moveAmount for v1.1
2.5.5.3.1 new newTransactionProposalRequest from HFClient
2.5.5.3.2 set TransactionProposalRequest with chaincodeID,Fcn,Args,ProposalWaitTime
2.5.5.3.3 set TransactionProposalRequest for user context
2.5.5.3.4 call HFClient to send TransactionProposalRequest
2.5.5.3.5 retrieved all ProposalResponse, check every one with transactionID,peer,status
2.5.5.3.6 if all is good, send transaction to orderer with HFClient

Hyperledger Fabric SDK use case 1的更多相关文章

  1. HyperLedger/Fabric SDK使用Docker容器镜像快速部署上线

    HyperLedger/Fabric SDK Docker Image 该项目在github上的地址是:https://github.com/aberic/fabric-sdk-container ( ...

  2. hyperledger fabric超级账本java sdk样例e2e代码流程分析

     一  checkConfig  Before     1.1  private static final TestConfig testConfig = TestConfig.getConfig() ...

  3. 使用Node.JS访问Hyperledger Fabric的gRPC服务

    在即将正式发布的Hyperledger Fabric SDK 1.0中,Hyperledger Fabric通过gRPC提供服务接口以取代现有的REST API.本文介绍了如何使用Node.JS访问H ...

  4. Hyperledger Fabric 1.0 从零开始(十二)——fabric-sdk-java应用【补充】

    在 Hyperledger Fabric 1.0 从零开始(十二)--fabric-sdk-java应用 中我已经把官方sdk具体改良办法,即使用办法发出来了,所有的类及文件都是完整的,在文章的结尾也 ...

  5. Hyperledger Fabric 1.0 从零开始(十二)——fabric-sdk-java应用

    Hyperledger Fabric 1.0 从零开始(十)--智能合约 Hyperledger Fabric 1.0 从零开始(十一)--CouchDB 上述两章,最近网上各路大神文章云集,方案多多 ...

  6. Hyperledger Fabric 实战(十): Fabric node SDK 样例 - 投票DAPP

    Fabric node SDK 样例 - 投票DAPP 参考 fabric-samples 下的 fabcar 加以实现 目录结构 . ├── app │ ├── controllers │ │ └─ ...

  7. Hyperledger Fabric Node SDK和应用开发

    Hyperledger Fabric 提供了多种语言的SDK版本,其中提出比较早.比较稳定而全面的是Node.js版本的SDK. 前面提到的fabric示例(如first-network和e2e-cl ...

  8. HyperLedger Fabric基于zookeeper和kafka集群配置解析

    简述 在搭建HyperLedger Fabric环境的过程中,我们会用到一个configtx.yaml文件(可参考Hyperledger Fabric 1.0 从零开始(八)--Fabric多节点集群 ...

  9. 区块链Hyperledger Fabric 学习记录(一)开发环境搭建(ubuntu16.04/ubuntu18.04)

    目录 Fabric开发环境搭建 更新说明 教程环境及软件版本 Docker 安装Docker 配置用户组 配置Aliyun Docker加速器 安装docker-compose Go 下载源码 安装源 ...

随机推荐

  1. 利用CountDownLatch和Semaphore测试案例

    package com.cxy; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CountDo ...

  2. Android GPS应用(获取定位信息)

    1.介绍 2.使用方法 3.在AndroidManifest.xml文件中添加 <uses-permission android:name="android.permission.AC ...

  3. c3m快速入门

  4. mysql 命令连接

    远程登陆MySQL,同时指定对应的端口和ip. 假设远程的ip为:10.154.0.43 端口为:1341 输入如下命令: mysql -h 10.154.0.43 -P 1341 -u root - ...

  5. 洛谷 P2048 BZOJ 2006 [NOI2010]超级钢琴

    题目描述 小Z是一个小有名气的钢琴家,最近C博士送给了小Z一架超级钢琴,小Z希望能够用这架钢琴创作出世界上最美妙的音乐. 这架超级钢琴可以弹奏出n个音符,编号为1至n.第i个音符的美妙度为Ai,其中A ...

  6. vbs SendKeys技术 vbs SendKeys

    简单说,这个命令就是模拟键盘操作,将一个或多个按键指令发送到指定Windows窗口来控制应用程序运行,其使用格式为:object.SendKeys string"object":表 ...

  7. jar 启动关闭

    1.后台启动 startTest.sh #设置工程路径project_path=/root/testcd $project_path#nohup后台启动,输出日志到test.lognohup java ...

  8. python 爬虫系列09-selenium+拉钩

    使用selenium爬取拉勾网职位 from selenium import webdriver from lxml import etree import re import time from s ...

  9. Angular4+NodeJs+MySQL 入门-05 接口调用

    接口调用 今天讲一下,如果在前端页面上通过调用后台接口,返回来的数据.把前面的几章结合起来. 这里所有用的代码在 https://github.com/xiaotuni/angular-map-htt ...

  10. BNU29139——PvZ once again——————【矩阵快速幂】

    PvZ once again Time Limit: 2000ms Memory Limit: 65536KB 64-bit integer IO format: %lld      Java cla ...