Tag: hyperledger fabric

Hyperledger Fabric链式代码实例化返回超时过期

我几个月来一直在使用Fabric,并且一直在试图运行一个有点复杂的虚拟机,一个链式代码中的以太坊虚拟机。 它是用JavaScript编写的,所以我使用了nodeJS chaincode版本。 我用我的chaincode把VM打包在一个我安装并实例化到同级的目录中。 安装完成并退出没有任何错误,但挂起几分钟后的实例返回错误: Error: Error endorsing chaincode: rpc error: code = Unknown desc = timeout expired while starting chaincode mychaincode:1.0(networkid:dev,peerid:peer0.org1.example.com,tx:…. 它应该运行至less几分钟,至less添加的软件包是〜15MB,根据示例nodejs chaincode至less运行一分钟。 示例nodejs chaincode(chaincode_example02)可以在教程和我已经开始的基础networking上的BYFNnetworking上完美运行。 我的环境根据fabric-samples存储库(v1.1.0)中的文档(v1.1.0)进行设置。 即使我只用require方法向示例链接代码添加一个包,它也会挂起,而不是返回错误。 我一直在寻找一个标志或configuration,我可以设置chaincode实例的超时值,但没有运气。 我在哪里可以增加超时值? 我应该提供哪些日志以便向前推进search? 谢谢你,Balint

找不到模块; Hyperledger结构教程

我正在尝试运行超级教程应用程序(fabcar)。 我已经遵循安装并尝试运行node query.js 。 我在terminal上得到这个错误: module.js:529 throw err; ^ Error: Cannot find module '/Users/pro/Documents/Code/HyperLegderFabric/fabric-samples/fabcar/node_modules/grpc/src/node/extension_binary/node-v57-darwin-x64/grpc_node.node' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:476:23) at Module.require (module.js:568:17) at require (internal/module.js:11:18) at Object.<anonymous> (/Users/pro/Documents/Code/HyperLegderFabric/fabric-samples/fabcar/node_modules/grpc/src/node/src/grpc_extension.js:30:15) at Module._compile (module.js:624:30) at Object.Module._extensions..js (module.js:635:10) at Module.load (module.js:545:32) at tryModuleLoad (module.js:508:12) at Function.Module._load (module.js:500:3) 我会很欣赏在debugging这个指针

npm无法安装fabric-ca-client

我们在CentOS 7.3和RHEL 7.3上都遇到了问题,试图安装最新的NodeJs fabric-ca-client 这是一个完整的清单: sudo npm install -g fabric-ca-client@1.0.0 > x509@0.3.2 install /usr/lib/node_modules/fabric-ca-client/node_modules/x509 > node-gyp rebuild gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' gyp ERR! stack at Error (native) gyp ERR! System Linux 3.10.0-514.el7.x86_64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/lib/node_modules/fabric-ca-client/node_modules/x509 gyp ERR! node -v […]

在Hyperledger Fabric中创build订购者节点

我是Hyperledger Fabric的新手,正在开始一个将资产从一个人转移到另一个人的新项目。 这里是我认为我需要遵循的步骤来完成项目,告诉我,如果我错了,或者我错过了一些东西: 创build一个订购者节点。 创build一个频道。 创build同级和代言节点。 将每个对等和代理节点连接到通道。 写链代码和批准政策。 创build交易来更新分类账状态。 如果我是对的,有人可以帮助我创build定位节点,或者给我一个链接帮助。 也想要问使用节点SDK可以创build订购者节点。

hyperledger-fabric“编写你的第一个应用程序”query.js步骤失败

步骤“git克隆…”,“startFabric.sh”和“npm.install”完成,没有错误。 “node query.js”的结果是: Set wallet path, and associate user PeerAdmin with application error: [Client.js]: Failed to load user "PeerAdmin" from local key value store. Error: TypeError: this is not a typed array. at Function.from (native) at importKey (/home/peter/fabric-samples/fabcar/node_modules/fabric-client/lib/impl/CryptoSuite_ECDSA_AES.js:180:26) at fromString (/home/peter/fabric-samples/fabcar/node_modules/fabric-client/lib/User.js:228:28) at /home/peter/fabric-samples/fabcar/node_modules/fabric-client/lib/Client.js:968:22 error: [Client.js]: Failed to load an instance of requested user "PeerAdmin" from […]