hyperledger

Hyperledger Composer v0.19.8 Error When Upgrading Business Network

筅森魡賤 提交于 2019-12-11 06:05:13
问题 I am trying to upgrade hyperledger fabric business network and I get this error composer archive create -t dir -n . && \ composer network install -a $BNA_FILE -c PeerAdmin@hlfv1 && \ composer network upgrade -c PeerAdmin@hlfv1 -n NETWORK-NAME -V 0.1.23 The version number corresponds to that one in the package.json like the documentation says it should. I get the below error when I run the upgrade command Error: Error trying to upgrade business network. Error: No valid responses from any peers

Anchor peer vs CORE_PEER_GOSSIP_EXTERNALENDPOINT?

做~自己de王妃 提交于 2019-12-11 06:04:28
问题 Why should one use Anchor peers when the cross org communication can be acheived by setting CORE_PEER_GOSSIP_EXTERNALENDPOINT in every peer? Can anyone explain the correct way one should be used? 回答1: Let me clearly explains you In the hyperledger fabric there are total Three Types of peers Endorsing Peers Committing Peers Orderer Peer (Orderer is also a Peer) Something Hidden is: Anchor Peers Leader Peers Anchor Peers are for cross-organization peer-to-peer communication, to setup Anchor

Extra dev peers in hyperledger fabric

*爱你&永不变心* 提交于 2019-12-11 06:03:11
问题 I am following the two org hyperledger fabric example. After starting the network I can see 4 extra dev peers running along with 4 peers(2 peers per org) in docker containers. But in configuration I gave only 4 peers. I am not understanding how the other 4 dev peers got created and whats their purpose. 回答1: A specific 'Chain Code Container' gets created for each peer running the Business Network. E.g. dev-peer0.org1.example.com-tutorial-network-0.16.3... . These containers are started and

HyperLedger-Fabric ChainCode Deployment - Base64 error

安稳与你 提交于 2019-12-11 05:49:41
问题 I was trying to setup the Hyperledger blocchain on my laptop by following the Windows setup , was able to bring the docker images up and running, but when I try to deploy the examples provided, it always throws back the error in the JSON input as shown below. peer chaincode deploy -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 -c '{"Function":"init", "Args": ["a","100", "b", "200"]}' response: sug@sri-ub:~/go/$ docker exec -it aa413f4c4289 bash root@aa413f4c4289:

How does Hyperledger composer handle endorsements

走远了吗. 提交于 2019-12-11 05:17:29
问题 I have been reading about endorsement policies e.g.here and do understand that they determine which transactions are saved in the block chain in Hyperledger Fabric v1. I am wondering how I can be able to transfer an asset across multiple stages e.g. as shown here. Is it one transaction that goes through multiple stages in order to be approved i.e. using endorsement policies? Or there are many transactions, each with its own policies. Either way, I would like to have a transaction approved by

How are Hyperledger transactions ordered in a block?

↘锁芯ラ 提交于 2019-12-11 05:11:08
问题 In Bitcoin blockchain a node/peer will order transactions, create a block, does the PoW and "announces" this block to the other miners. Once the other miners agree (by hashing the block+nounce+etc...) that the block is valid it is part of the blockchain. But in Hyperledger (as far as I understood) the VPs don't do mining (and hence don't spread the mined block). So how does the individual VPs order them so that all VPs have the same ordered transactions of blocks? 回答1: For the Fabric

Where to include core.yaml in Hyperledger Fabric?

a 夏天 提交于 2019-12-11 04:49:23
问题 I am working on Hyperledger fabric and trying to retrieve historical transaction records from the network. So, i found core.yaml config to enable ledger historic database. But, i don't find where to include the " core.yaml " in the application source repository. I found few clues to add the file in docker-compose.yaml as CORE_VM_ENDPOINT=core.yaml So, is it the correct way of adding the " core.yaml " in the docker-compose.yaml file.? docker-compose.yaml version: '2' services: ca.org1.example

Error while generating REST api using hyperledger composer-rest-server in centOS

自古美人都是妖i 提交于 2019-12-11 04:26:41
问题 I'm able to deploy business network using hyperledger composer in CentOS linux server but while generating REST apis using composer-rest-server i'm getting connection error? [root@bctlpblockchain03 ~]#composer network ping -c admin@tutorial-network The connection to the network was successfully tested: tutorial-network version: 0.15.2 participant: org.hyperledger.composer.system.NetworkAdmin#admin Command succeeded [root@bctlpblockchain03 ~]# composer-rest-server ? Enter the name of the

Event Hub has been Shutdown on Fabric Writing your first Application

北城以北 提交于 2019-12-11 02:38:02
问题 I am currently trying to run through the example first application for Hyperledger Fabric here -> http://hyperledger-fabric.readthedocs.io/en/release-1.1/write_first_app.html I am unable to get past calling node invoke.js Originally I was getting the same error as this question Error invoking chaincode using Node.js SDK [TypeError: Cannot read property 'getConnectivityState' of undefined] But after reverting to grpc@1.9.1 I get the following result: I am able to do everything up to the node

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? inside a Dockerfile

限于喜欢 提交于 2019-12-11 02:02:11
问题 I have the following Dockerfile: FROM ubuntu ENV NPM_CONFIG_LOGLEVEL warn ENV admin_user="PeerAdmin" network_name=$1 version=$2 hversion=hlfv1 fabrik_path=/fabric-tools project_dir=$(pwd) ENV card_store_dir=$project_dir/.card-store stage_dir=$project_dir/.stage env_dir=$project_dir/env is_ok=1 FABRIC_VERSION=hlfv1 WORKDIR /app COPY . /app USER root # RUN chown -R ubuntu:ubuntu . WORKDIR /app RUN apt-get update && \ mkdir "$fabrik_path" && \ cd "$fabrik_path" && \ export FABRIC_VERSION=hlfv1 &