///////////////////////////////////////////////////////////////////////
: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. Hive内置函数和自定义函数的使用

    一.内置函数的使用 查看当前hive版本支持的所有内置函数 show function; 查看某个函数的使用方法及作用,比如查看upper函数 desc function upper; 查看upper ...

  2. behave 测试框架,了解一下

    # behave测试框架 [behave](https://pythonhosted.org/behave/)是python的1个bdd测试框架实现. ### 安装 ```pip install be ...

  3. FPGA基础学习(4) -- 时序约束(理论篇)

    在FPGA 设计中,很少进行细致全面的时序约束和分析,Fmax是最常见也往往是一个设计唯一的约束.这一方面是由FPGA的特殊结构决定的,另一方面也是由于缺乏好用的工具造成的.好的时序约束可以指导布局布 ...

  4. Ubuntu Server 中实际内存与物理内存不相等的问题

    记录 来源 v2ex,提到了一个平时不是很起眼的问题,Ubuntu Server 中系统默认会占用 128M 内存,用于 CVM 内部的 kdump 服务. 科普 查看 CVM 所拥有的物理内存 通过 ...

  5. Javascript 中 的坑..

    ### 1. 0 == '' 返回 true 0 === '' 返回false......... 切记...

  6. C++_标准模板库STL概念介绍5-其他库与总结

    C++还提供了其他一些类库,这些类库更加专用. 例如,头文件complex为复数提供了类模板complex,包含用于float.long和long double的具体化. 这个类提供了标准的复数运算以 ...

  7. 1076 Wifi密码 (15 分)

    下面是微博上流传的一张照片:“各位亲爱的同学们,鉴于大家有时需要使用 wifi,又怕耽误亲们的学习,现将 wifi 密码设置为下列数学题答案:A-1:B-2:C-3:D-4:请同学们自己作答,每两日一 ...

  8. Git的深入理解与GitHub托管服务的使用

    [转自] http://www.cnblogs.com/cocowool/archive/2012/02/17/2356125.html 源代码管理系统(SCM)与版本控制 版本控制是一种记录若干文件 ...

  9. hash & heap - 20181023 - 20181026

    129. Rehashing /** * Definition for ListNode * public class ListNode { * int val; * ListNode next; * ...

  10. 完全原生javascript简约日历插件,js、html

    效果图: 效果如图所示,尽管看上去并不是很美观,但是,基本上的功能还是已经完成了,码了一天多的时间,权当做复习一下js吧. 整个做下来差不多码了500多行代码~其实只是很多的样式也包括了在其中了,虽然 ...