
Fabric
macrocan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
fabric2.0 orderer broadcast and deliver service
broadcastserverHandlergrpcserverStandarChannelConsensusBroadcast()Handle()loop[ wait msg ]ProcessMessage()ProcessNormalMsg() / ProcessConfigUpdateMsg()processor.WaitReady()Order() / Configure()Handle...原创 2020-04-02 16:13:09 · 826 阅读 · 0 评论 -
fabric2.0 cluster framework
catalog1、rpc2、commrpcOrderer will start grpc server for service and connect to gprc server of other orderer as client. That means that there are 2 connections about cluster between 2 orderers.It...原创 2020-04-02 11:30:53 · 472 阅读 · 0 评论 -
fabric2.0 establish a 3 raft nodes cluster that need not docker
forewordI am study orderer of fabric2.0 recently, which need at least 3 node to constitute a cluster and TLS is also mandatory.operation locationmkdir multiNodeConfigcd multiNodeConfigexport FABR...原创 2020-04-01 10:34:07 · 522 阅读 · 0 评论 -
fabric2.0 orderer core structure
structure chartRegistrarRegistrar is core structure of orderer, which holds all chain, consenters and ledger. It is the only entrance to operate chain.chains stores all chains;consenters store 3 ...原创 2020-03-27 23:02:41 · 279 阅读 · 0 评论 -
fabric2.0 raft code analyse
code version: fabric 2.0.1fabric use ectd-io/etcd as raft library, which is located in vendor, but the library only implements the Raft algorithm; both network and disk IO are left to the user. Libr...原创 2020-03-27 15:48:30 · 942 阅读 · 0 评论 -
run client with fabric2.0 sdk go
development envfirstmkdir -p ~/fabriccd ~/fabricexport FABRIC_CFG_PATH=$PWDcp $GOPATH/src/github.com/hyperledger/fabric/integration/chaincode $GOPATH/src/github.com/hyperledger/fabric/integratio...原创 2020-03-20 17:31:47 · 1056 阅读 · 4 评论 -
让fabric 2.0 external builder在windows上跑起来
前言fabric2.0 可以使用external builder跑chaincode源码,方便chaincode调试,但是external builder编译和启动chaincode等操作使用的是4个bash脚本,而windows原生不支持bash。折腾经过一番研究(折腾),我发现只要完成以下3个步骤,即可在windows上run external chaincode。1、安装git-wi...原创 2020-03-20 14:14:28 · 625 阅读 · 0 评论 -
fabric2.0 chaincode handler register
code version: fabric 2.0.1registerchaincode need to register in peer before work, it start after stream is established, end with receiving REGISTERED meessage from peer. After registered, both chain...原创 2020-03-20 12:04:54 · 791 阅读 · 0 评论 -
How to write fabric chaincode and How it work
code version: fabric 2.0.1shim package is located in vendor/github.com/hyperledger/fabric-chaincode-go. It is a little old, we can get newer code in hyperledger/fabric-chaincode-go repo, which includ...原创 2020-03-18 17:16:11 · 232 阅读 · 0 评论 -
fabric应用grpc解读
fabric应用grpc解读++本代码解读基于fabric v1.4.4版本++fabric proto文件主要集中在protos目录下,实现grpc服务的proto全在protos目录下,其中实现grpc服务的有:一、discovery / 服务发现discovery服务定义于discovery/protocol.proto:17,主要用于peer向cli/sdk提供查询服务,具体如下:...原创 2020-03-04 18:18:31 · 2374 阅读 · 0 评论 -
使用chaincode dev mode调试智能合约
本文使用fabric 1.4版本,记录的是使用chaincode dev mode调试智能合约遇到的问题原创 2019-06-24 21:35:36 · 2406 阅读 · 0 评论