///////////////////////////////////////////////////////////////////////
: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. Cboard 实现看板里面图表仪表盘之间的联动

    首先要了解Cboard的概念, 1.看板 2.图表 看Cborad的菜单知道了,首先先设计图表,可以展现未柱状图或者其它图片形式或者数据表格式.然后看板可以由多个图表组合而成. 需求如下: 看板包含两 ...

  2. Python web前端 05 JavaScript

    Python web前端 05 JavaScript 一.获取元素 1.初识JavaScript /* .. */ #这是多行注释 // #这是单行注释 #JavaScript是一种脚本语言,是一种动 ...

  3. ubuntu画面延迟问题解决

    新配的电脑,安装ubuntu16.04以后,出现画面延迟的问题,尤其浏览网页的时候画面十分卡顿.用free命令查看过可用内存6.多G,经过询问大概是显卡问题,然后在https://ubuntuforu ...

  4. 【算法笔记】B1007 素数对猜想

    1007 素数对猜想 (20 分) 让我们定义d​n​​为:d​n​​=p​n+1​​−p​n​​,其中p​i​​是第i个素数.显然有d​1​​=1,且对于n>1有d​n​​是偶数.“素数对猜想 ...

  5. [转] docker基础知识之挂载本地目录

    [From] https://blog.csdn.net/huludan/article/details/52641090 https://my.oschina.net/piorcn/blog/324 ...

  6. 方格填数--蓝桥杯---dfs

    答案:1580 相似题目:N皇后问题 注意要枚举的是什么 #include<iostream> #include<string.h> using namespace std; ...

  7. 剑指offer——面试题14:剪绳子

    // 面试题14:剪绳子 // 题目:给你一根长度为n绳子,请把绳子剪成m段(m.n都是整数,n>1并且m≥1). // 每段的绳子的长度记为k[0].k[1].…….k[m].k[0]*k[1 ...

  8. 转 LIST INCARNATION OF DATABASE

    incarnation在英文中是“化身”的意思. 那么在oracle中,它又是什么意思呢?有什么作用呢? 我们看一些基本概念 Current Incarnation(当前化身):数据库当前正在使用的化 ...

  9. spark第六篇:Spark Streaming Programming Guide

    预览 Spark Streaming是Spark核心API的扩展,支持高扩展,高吞吐量,实时数据流的容错流处理.数据可以从Kafka,Flume或TCP socket等许多来源获取,并且可以使用复杂的 ...

  10. myEclipse注册码地址2019年最新

    myEclipse注册码地址2019年最新 https://www.sojson.com/myeclipse8.5/