hyperledger

Hyperledger Composer Incompatible versions error and the versions are the same

眉间皱痕 提交于 2019-12-10 15:13:04
问题 Executing: composer network ping -n calma-network -p hlfv1 -i admin -s adminpw I receive the following error: Error: Error trying to ping. Error: Composer runtime (0.8.0) is not compatible with client (0.11.0) Command failed The versions look the same: composer -v composer-cli v0.11.0 composer-admin v0.11.0 composer-client v0.11.0 composer-common v0.11.0 composer-runtime-hlf v0.11.0 composer-runtime-hlfv1 v0.11.0 回答1: Rebooting Hyperledger Fabric (stopFabric.sh, teardownFabric.sh and

/bin/bash: ./scripts/script.sh: No such file or directory when running ./byfn.sh -m up Hyperledger fabric

家住魔仙堡 提交于 2019-12-10 14:57:16
问题 I am new to blockchain and i was going through the tutorial http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html and doing it. I completed the pre-requisites and download of the samples and binaries. I was able to run ./byfn.sh -m generate successfully. But when I was running ./byfn.sh -m up I got the error: /bin/bash: ./scripts/script.sh: No such file or directory Below is the complete log proceeding ... Starting peer0.org2.example.com ... Starting peer0.org1.example.com ...

hyperledger fabric java chaincode error

对着背影说爱祢 提交于 2019-12-10 12:24:26
问题 i used peer chaincode deploy to run go src example, i got the right result, then i tried the java src example, enter image description here i got a chaincode,but when i used this chaincode for query,it showed me: Error: Error querying chaincode: rpc error: code = 2 desc = "Error:Failed to launch chaincode spec(Could not get deployment transaction a3a350ff98660bcade4570acd507d0b380f374ea9399194b39e0301135849feb0732 - LedgerError - ResourceNotFound: ledger: resource not found)" i use docker

How can I make a communication between several docker containers on my local network

冷暖自知 提交于 2019-12-10 11:58:17
问题 I'm currently working on hyperledger blockchain that use several docker containers : dev-peer0.org1.example.com-marbles-v5.9 peer0.org1.example.com couchdb orderer.example.com cli ca.example.com On the default configuration they are all running on the same machine. What I'm trying to achieve is to divide them on two different computers : Computer 1 : dev-peer0.org1.example.com-marbles-v5.9 peer0.org1.example.com couchdb Computer 2 : orderer.example.com cli ca.example.com Can I use the host

Cannot put state in query context

无人久伴 提交于 2019-12-10 11:29:36
问题 Im trying to use a ticker in my chaincode to update the chaincode state periodically, based on some condition: func (t *SimpleChaincode) Invoke(stub *shim.ChaincodeStub, function string, args []string) ([]byte, error) { ticker := time.NewTicker(time.Millisecond * 10000) go func() { for t := range ticker.C { fmt.Println("Tick at", t) a = a+5 err:= stub.PutState("a", []byte(strconv.Itoa(a))) fmt.Println(err.Error()) } }() return nil, nil } I am sending the invoke transaction using the chaincode

Hyperledger Fabric How to set up Auditor in non-permission Network and permission network

蓝咒 提交于 2019-12-10 10:32:36
问题 I've been working around hyperledger fabric for a while. I'm successful in install and form network of Fabric without using docker with 5 peers. Now I try to Setup Auditor and non-validationg peers within the network. I surf around ,but cannot find any clear document in this. Can anyone help? 回答1: The notion of a validating peer is no longer existent in Hyperledger Fabric v1.x architecture(s). Every peer node is both a validating and committing peer; the distinction is between the roles of

Difference between users created through cryptogen and enrolled through Fabric CA Server

烂漫一生 提交于 2019-12-10 10:20:28
问题 While doing Hyperledger fabric setup, we create crypto material and mention users for organizations and and correspondingly user crypto material gets generated which is used to invoke chaincode while logging through CLI. Also, when we try to connect network through SDK we also need to enroll and register user to connect to network. So, what is the difference between these two users? 回答1: Cryptogen utility used for generating Hyperledger Fabric key material is mainly meant to be used for

How to change Endorsement policies

笑着哭i 提交于 2019-12-10 09:25:10
问题 I changed the endorsement policy from "OR" to "AND" with BYFN and instantiate the Chaincode. But, the data in the ledger is not changed even after the Invoke is executed. I confirmed "OR" condition is working.(data in the ledger is changed) Kindly let me know how I can solve it. peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp

Hyperledger Fabric - Error while Instantiating chaincode (error trying to connect to local peer: context deadline exceeded)

被刻印的时光 ゝ 提交于 2019-12-10 00:32:42
问题 I am using Hyperledger Fabric v 1.3.0 and trying to deploy using swarm network on multiple hosts. I am facing an issue when trying to instantiate the chaincode. The error i get is below in the image Chaincode Instantiate Error : I keep getting "Error trying to connect to local peer: context deadline exceeded" From some discussions, i added these 2 environment variables in the peer yaml CORE_PEER_ADDRESSAUTODETECT=true CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 But still i get the same

区块链100讲:Hyperledger Explorer简介

旧城冷巷雨未停 提交于 2019-12-10 00:18:24
上一篇我们介绍了面向运维的Cello项目,可以帮助运维快速部署与监控各个区块链节点。今天我们将介绍另一个类似的项目 —— Hyperledger Explorer。 1 项目简介 Hyperledger Explorer是一个区块链的图形化explorer,具有使用简便,功能强大,易维护等特点。同样也是Hyperledger众多项目下的一个子项目,目前还处于孵化中。 如果说Cello是一个面向于运维的图形化工具,那么Hyperledger Explorer就是一个面向于开发人员和普通用户的一个图形化工具,提供web界面,用户可以容易的看到区块链上的活动,有点类似于以太坊项目中的 https://etherscan.io/ 2 环境依赖 由于需要fabric, docker等一系列依赖,我们依旧选用Ubuntu 16.04系统,主要依赖如下: 软件运行依赖: nodejs 8.11.x (Node 9.x暂不支持) PostgreSQL 9.5 or greater 要工作在Hyperledger Fabric 1.1以上网络中,需要运行以下依赖管理fabric网络: docker 17.06.2-ce [ https://www.docker.com/community-edition ] docker-compose 1.14.0 [ https://docs.docker