blockchain

How is running the asset_management.go different from running a simple chaincode like chaincode_example02.go

梦想的初衷 提交于 2019-12-19 10:48:29
问题 The simple workflow for deploying/invoking a chaincode (to my knowledge) is : Deploy a chaincode(smart contract) on the blockchain This brings up a docker container on all peers that has the chaincode running in it Invoke some function This type of function changes the values of variables in chaincode state For asset_management.go, the chaincode can be tested by running go test in the asset_management chaincode directory . But this does not really bring up a docker container(or does it ?)

Add Org or peer in Org dynamically in Hyperledger fabric

空扰寡人 提交于 2019-12-18 10:36:32
问题 I am using http://hyperledger-fabric-doc.readthedocs.io/en/latest/getting_started.html for Hyperledger Fabric setup in Ubuntu VM. As per tutorial (fabric-samples/first-network) which have two organizations with two peers have been created. I wanted to add new organization or new peer in already existing Organization dynamically. Kindly help me know the steps to add dynamically. 回答1: It isn't to the point of being "dynamic" just yet. However, the reconfiguration is done using the configtxlator

unable to Instantiate any chaincodes on peers of newly Added org

北城余情 提交于 2019-12-13 20:30:14
问题 I added org3 to existing network for balance transfer example once I added I am trying to install new chaincode on peers of org1 and org3 while instantiating I am getting this error cannot get package for chaincode (marbles02:v0) recoveryParam: 0 } error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: chaincode error (status: 500, message: cannot get package for chaincode (marbles02:v0)) at /home/ubuntu/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client

How to get notifications in user applications?

蹲街弑〆低调 提交于 2019-12-13 20:23:34
问题 In blockchain I have emitted an event which is linked with a particular transaction. I have also subscribed the event in my transaction API. But what do I do after I subscribe the event in the API? I do not know how to generate notifications in my front-end or user application using this subscribed event which was emitted by the blockchain end. Kindly help. 回答1: You can use WebSocket to get events occurs on URL by using WebSocket in JS. class Events { constructor() { // Listen for events this

'peer' command not found hyperledger

别等时光非礼了梦想. 提交于 2019-12-13 18:12:41
问题 I'm working on this tutorial: http://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html At the section "Create & Join Channel" at the command : peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/cacerts/ca.example.com-cert.pem I received this error: No command 'peer' found

Composer network install: ERROR no valid responses from any peers

一曲冷凌霜 提交于 2019-12-13 17:06:13
问题 I'm working on the hyperledger blockchain on Ubuntu 18-04 LTS via this tuto hyperledger.github.io/composer/latest/tutorials/developer-tutorial . I have installed all the pre-requisites and in this step of running "composer network install", I faced this issue and tried some solutions but still not working. Any help please ? Thanks ! ~/tutorial-network$ composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna ✖ Installing business network. This may take a minute

Can we add new node in running blockchain network developed using Hypeledger?

☆樱花仙子☆ 提交于 2019-12-13 10:06:43
问题 Can we add new node in running blockchain network developed using Hyperledger? 回答1: If I understand your question the right way, the answer is: Yes Just in case you want to add a new Organization into a running network, you can follow this tutorial. Briefly, It's 5 steps: Step 1: Prepare new Organization's configuration files ( new-org-crypto.yaml and configtx.yaml , which contains only the config of the new Organization). Step 2: Generate crypto materials for new organization base on the

Blockchain currency on disconnected nodes

半世苍凉 提交于 2019-12-13 09:05:43
问题 Good afternoon! I have a conceptual question regarding maintaining blockchain currency on disconnected nodes... What happens to transaction currency (as in, the blockchain kept current) in situations where (for example) a large network is disconnected from the public network for an extended period of time (or blocked)? Let's use the example of a country disconnecting itself from the public internet (for all intents and purposes; yes I know that's almost impossible but go with me), but

How to connect to Ethereum URLs created using AWS blockchain template

白昼怎懂夜的黑 提交于 2019-12-13 08:55:58
问题 I've just finished setting up a Ethereum Stack using the AWS Blockchain Template according to the docs here I've sshed to the EC2 instance (bastion host) from my local machine and I can hit the EthStats URL via curl from the bastion host but when I try to go tot he url from chrome, it gives 'This site can’t be reached' error, even though I've setup a FireProxy as per the instructions in the docs. How do I connect to the Ethereum URLs given in outputs of my Ethereum stack in the AWS

Getting grpc timeout while setting up Hyperledger development environment and network

核能气质少年 提交于 2019-12-13 05:14:10
问题 I followed the docs provided by the hyperledger/fabric documentation. I have setup a network with two validating peers and not CA. I try to run the "peer node status" and "peer network list" command and keep getting the following error: "Error: Error trying to connect to local peer: grpc: timed out trying to connect" I also tried changing the "maxprocs" to 2 in the core.yaml file, but it still didn't fix the issue. Any help is appreciated. 回答1: The “Error: Error trying to connect to local