///////////////////////////////////////////////////////////////////////
: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. [Microsoft] 微软技术平台的Cloud Building平台AppVeyor

    Link: http://www.tuicool.com/articles/uMBZba http://www.appveyor.com/ 随着云技术的不断完善,基于云的应用越发丰富起来.AppVey ...

  2. 012 Android Palette颜色选择器的使用

    1.页面总体使用线性布局(LinearLayout) 2.将Toolbar(顶部菜单栏)拖入design模式下的设计界面中 3.颜色选择器需要在build.gradle中手动的添加 compile ' ...

  3. QQ在线状态的使用

    在网页中显示QQ在线状态并点击后发起对话,是很多门户网站常见的一个功能,这两天就碰到这样一个.原以为很简单,结果还是折腾了半天,虽然是个小问题,但也值得记录一下. 按以前的经验,网上有很多QQ在线代码 ...

  4. LeetCode记录之28——Implement strStr()

    Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle ...

  5. vi vim 查找替换

    #查找# / 光标向下查找 ?光标向上查找 按键盘n,继续查找 #替换# :s/hello/test/ 替换光标所在行第一个hello为test :s/hello/test/g  替换光标所在行所有h ...

  6. 分享一个大型进销存供应链项目(多层架构、分布式WCF多服务器部署、微软企业库架构)

    项目源码下载:  WWW.DI81.COM 分享一个大型进销存供应链项目(多层架构.分布式WCF多服务器部署.微软企业库架构) 这是一个比较大型的项目,准备开源了.支持N家门店同时操作.远程WCF+企 ...

  7. ul模拟select,位置,数据,是否可输入及输入提示效果都可作为参数直接传入

    转发请注明出处,虽然转发几率不大... HTML <span class="theContainer"></span> CSS body {padding: ...

  8. jQuery随笔-自定义属性获取+tooltip

    1.Jquery自定义属性获取 1) 通过自定义属性值获取document console.log($('[data-id='+item_id+']',listWrap)); $('[data-id= ...

  9. PIE SDK SFIM融合

    1.算法功能简介 SFIM 融合方法全称为基于平滑滤波的亮度变换.基本原理是将高分辨率影像通过低通滤波抑制其高频空间信息保留低频信息,再将原高分辨率影像与通过低通滤波的高分辨率影像进行比值运算,以抵消 ...

  10. Android系统概述

    一.Android的诞生 Android这一词最先出现在法国作家利尔亚当在1886年发表的科幻小说<未来夏娃>中,作者将外表像人类的机器起名为Android,这也就是Android小人名字 ...