标签: hyperledger-fabric

exec:"gcc":尝试go build时在%PATH%中找不到可执行文件

我正在使用Windows 10.当我尝试构建Chaincode时,它报告了此错误

# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11 
exec: "gcc": executable file not found in %PATH%
Run Code Online (Sandbox Code Playgroud)

我的链码导入:

import (
    "fmt"
    "strconv"

    "github.com/hyperledger/fabric/core/chaincode/shim"
    pb "github.com/hyperledger/fabric/protos/peer"
)
Run Code Online (Sandbox Code Playgroud)

它在Docker中运行良好.

windows build go cgo hyperledger-fabric

48
推荐指数
8
解决办法
5万
查看次数

Hyperledger Fabric和Sawtooth有什么区别?

无论Hyperledger面料Hyperledger锯齿是构建分布式应用程序台账,支持可插拔的共识机制和智能合同(chaincodes)平台.

那么主要区别是什么?什么时候选择一个来实现区块链解决方案?

blockchain hyperledger hyperledger-fabric

33
推荐指数
1
解决办法
1万
查看次数

hyperledger composer和hyperledger fabric之间的区别?

我是java开发人员,也是hyperledger的新手.我有兴趣学习它,需要知道从哪里开始.面料与作曲家?

hyperledger hyperledger-fabric hyperledger-composer

32
推荐指数
2
解决办法
1万
查看次数

MSP和Fabric CA有什么区别?

Fabric CA是MSP的实现吗?MSP本身是无用的吗?

MSP和Fabric CA有哪些功能?和那些功能的差异?

hyperledger hyperledger-fabric

22
推荐指数
1
解决办法
4971
查看次数

Hyperledger Fabric中的对等通道创建失败

我正在尝试使用订货人和2个对等设置一个示例超级结构化结构环境.我没有使用docker方法而是我正在运行实际的可执行文件.

Orderer和2个对等节点成功启动.但是,通道创建失败,并出现以下错误.任何帮助将不胜感激.

orrrer窗口出错

> 2017-08-17 07:28:22.338 IST [orderer/common/deliver] Handle -> WARN
> 029 Error reading from stream: rpc error: code = Canceled desc =
> context canceled 2017-08-17 07:31:08.044 IST [common/config/channel]
> CommitProposals -> WARN 02a Current configuration has no policy
> '/Channel/Application/Readers', this will likely cause problems in
> production systems 2017-08-17 07:31:08.050 IST [common/config/channel]
> CommitProposals -> WARN 02b Current configuration has no policy
> '/Channel/Application/Writers', this will likely cause problems in
> production systems 2017-08-17 07:31:08.050 IST …
Run Code Online (Sandbox Code Playgroud)

hyperledger hyperledger-fabric

21
推荐指数
2
解决办法
2万
查看次数

Blockchain和HyperLedger Fabric的区别

当我试图理解区块链技术时,我遇到了HyperLedger Fabric.根据文档,它是区块链技术的实现.

那是什么意思?块链只是一个概念和HyperLedger Fabric,这个概念的实现?

更新: 超级分层结构在哪里存储交易?我知道它是一个p2p体系结构,每个对等体都有一个事务副本,但通常这些事务是一个不断增长的集合.每个同行都有成长交易的副本吗?我还不清楚这一点.社区是否推荐任何数据库?

blockchain hyperledger-fabric

16
推荐指数
3
解决办法
4895
查看次数

Hyperledger织物的性能测试

在尝试使用Hyperledger Fabric实现性能时,IBM团队在他们的文章Hyperledger Fabric:Permissioned Blockchains的分布式操作系统中报告过,我遇到了一些问题和错误.我收集了所有有用的信息,并希望与HF社区分享.另外,我向Fabric开发人员提出了一些关于其性能的问题.

目标说明

在四个c5.9xlarge(36vCPU)aws实例上使用Cello部署Hyperledger Fabric v1.1.0网络:

{
    fabric001: {
      cas: [],
      peers: ["anchor@peer1st.main"],
      orderers: ["orderer1st.orderer"],
      zookeepers: ["zookeeper1st"],
      kafkas: ["kafka1st"]
    },
    fabric002: {
      cas: [],
      peers: ["worker@peer2nd.main"],
      orderers: ["orderer2nd.orderer"],
      zookeepers: ["zookeeper2nd"],
      kafkas: ["kafka2nd"]
    },
    fabric003: {
      cas: [],
      peers: ["worker@peer3rd.main"],
      orderers: ["orderer3rd.orderer"],
      zookeepers: ["zookeeper3rd"],
      kafkas: ["kafka3rd"]
    },
    fabric004: {
      cas: ["ca1st.main"],
      peers: [],
      orderers: ["orderer4th.orderer"],
      zookeepers: ["zookeeper4th"],
      kafkas: ["kafka4th"]
    }
}
Run Code Online (Sandbox Code Playgroud)

TLS已禁用.

Fabric通道配置(所有其他参数是默认值):

BatchTimeout: 1s
BatchSize:
    MaxMessageCount: 500
    AbsoluteMaxBytes: 200 MB
    PreferredMaxBytes: 50 MB
Run Code Online (Sandbox Code Playgroud)

我将CouchDB和LevelDB的测试作为状态数据库进行了测试.我使用官方Fabcar链码(Golang实现)进行测试.我创建了简单的nodejs应用程序,它使用SDK与Fabric网络交互,并公开HTTP API进行负载测试.这个应用程序是无状态的,可以轻松扩展.对于负载测试,我使用的是YandexTank工具.我用高负载执行了两种测试:查询(当区块链为空时,通过peer001向Fabric状态请求)和插入(区块链内的事务).

结果 …

performance load-testing blockchain hyperledger-fabric

15
推荐指数
1
解决办法
4763
查看次数

"咖啡与区块链"如何将种植者与买家相匹配?

在IBM生产的"Coffee with Blockchain"应用程序中,它在Growers和Buyers之间进行价格匹配.我想知道如何实现匹配(在示例应用程序或实际实现中).

可在此处查看该应用示例:https://www.youtube.com/watch?v = suE5KHkESF4

"咖啡与区块链"如何将种植者与买家相匹配?

一些问题可以帮助指导答案:

这种匹配是否完全作为链码操作?如果是这样,那将如何实施?

例如,Grower会提交一个交易,他们有一批新的豆子准备装运,并触发链码中的匹配部分来查找/选择买家吗?

我怀疑这个过程是否具有确定性,否则种植者的新批次宣告失败,他们必须重试.也许在链码中有不同的方式吗?

或者匹配是否在链代码之外运行,在分类帐中监听更新,而是调用API调用链代码方法将bean从Grower-A转移到Buyer-B?

我对此表示怀疑,然后将匹配集中到一些可信赖的提供商,而不是经过验证/认可的链代码.

谢谢

blockchain hyperledger hyperledger-fabric

14
推荐指数
1
解决办法
541
查看次数

Hyperledger Fabric需要Docker吗?

这可能是一个愚蠢的问题.Hyperledger Fabric是否需要Docker来进行操作.

我只是想知道只有当我们需要在同一台物理机器上运行Fabric peer,orderer或couchDB作为虚拟机时才需要Docker.我认为如果我们在单独且相同的服务器上本地安装这些软件(peer,order,couchDB等),可能就没有必要使用Docker.

谢谢.

docker docker-compose hyperledger-fabric

14
推荐指数
2
解决办法
4028
查看次数

Getting error "Get http://localhost:9443/metrics: dial tcp 127.0.0.1:9443: connect: connection refused"

I'm trying to configure Prometheus and Grafana with my Hyperledger fabric v1.4 network to analyze the peer and chaincode mertics. I've mapped peer container's port 9443 to my host machine's port 9443 after following this documentation. I've also changed the provider entry to prometheus under metrics section in core.yml of peer. I've configured prometheus and grafana in docker-compose.yml in the following way.

  prometheus:
    image: prom/prometheus:v2.6.1
    container_name: prometheus
    volumes:
    - ./prometheus/:/etc/prometheus/
    - prometheus_data:/prometheus
    command:
    - '--config.file=/etc/prometheus/prometheus.yml'
    - '--storage.tsdb.path=/prometheus'
    - '--web.console.libraries=/etc/prometheus/console_libraries' …
Run Code Online (Sandbox Code Playgroud)

docker prometheus hyperledger-fabric

14
推荐指数
3
解决办法
2万
查看次数