hyperledger

cannot find package github.com/hyperledger/fabric-chaincode-go/shim in any of: /usr/local/go/src/

人盡茶涼 提交于 2020-07-28 10:37:12
问题   Fabric版本:2.0.1   在使用Java SDK 安装go语言链码时报错:failed to invoke backing implementation of ‘InstallChaincode’: could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "/chaincode/input/src/github.com/chaincode/pcurd.go:37:2: cannot find package “github.com/hyperledger/fabric-chaincode-go/shim” in any of: /usr/local/go/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOROOT) /chaincode/input/src/github.com/hyperledger/fabric-chaincode-go/shim (from $GOPATH) /go/src/github.com/hyperledger/fabric-chaincode-go/shim

Orderer node exits within few seconds after execution of “network.sh up” command

北城以北 提交于 2020-07-21 07:10:22
问题 I am learning hyperledger fabric from the authorized documentation and following the steps given here. I followed following steps as per documentation to install and run sample applications. Installed all prerequisites as per the documentation. Cloned github respository from https://github.com/hyperledger/fabric-samples. Ran bootstrap.sh script as per commands mentioned in the readme.md file (without giving any specific version as command-line parameters thinking that it will install correct

Hyperledger fabric facing difficult setting up intermediate CA

廉价感情. 提交于 2020-07-10 10:27:24
问题 I am trying to create intermediate CA for my project, I have one root CA and one intermediate CA with Intermediate CA config file as shown below. I am facing issue to create keypairs/MSP and tls cert for intermediate CA & unable to pass the config file to intermediate CA. Steps I followed Running the Root CA container with bootstrapping admin. Enrol the admin which generate the MSP for CA admin for org1 fabric-ca-client enroll -u https://admin:adminpw@localhost:7054 --caname ca-org1 --tls

Why is it highly discouraged to be an application and orderer organization at the same time?

无人久伴 提交于 2020-07-09 14:51:06
问题 Let's take the scenario of 3 equitable organizations, i.e., each organization runs peers and should be equally involved in the ordering process. For me, it feels quite natural to configure those 3 organizations to have an orderer node and some peers, each. However, this setup is highly discouraged . Quote from the FAQ: Question: Can I have an organization act both in an ordering and application role? Answer: Although this is possible, it is a highly discouraged configuration. By default the

Hyperledger Fabric join channel return positive but does not work

此生再无相见时 提交于 2020-06-29 06:44:25
问题 I am running HyperledgerFabric 2.1 and I would like to deploy a 2 organizations network in a multi-hostenvironment. Following the tutorial I am running the following: I generate all the articats with the following: cryptogen generate --config=./crypto-config.yaml configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block --channelID system-channel configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/mychannel.tx -channelID mychannel

How Hyperledger Sawtooth take care of infinite/endless loops?

与世无争的帅哥 提交于 2020-06-13 05:28:30
问题 I could not find anything concrete about how Hyperledger Sawtooth handles the problem of infinite loops created by mistake or voluntarily by the developer (Only some issues regarding the IntKey transaction family Intkey workload command run in endless loop with wrong URL). I am sure that on Hyperledger Fabric the concept of the timeout of chain code execution avoids the creation of infinite loops, but which mechanism is used in Hyperledger Sawtooth ? Thanks! 回答1: The best thing to do is to

How to listen to the event(commit event) in Hyperledger Fabric?

元气小坏坏 提交于 2020-06-12 06:14:24
问题 We set up a fabric server, and put some transaction into it. And we have some applications those will cooperate with the fabric server. Here is a situation. Application send a transaction with fabric-sdk-java or fabric-sdk-node The fabric excute the chaincode The fabric notify the application about the result / The application listen to the event of the transaction (commit transaction, generate blockchain, append the blockchain, update the world state, etc.) Application notify the custom

'.' is not recognized as an internal or external command,

ⅰ亾dé卋堺 提交于 2020-05-17 06:22:32
问题 npm start > server@1.0.0 start C:\Users\07\OneDrive\Desktop\Final Try\fabcar-blockchain-sample\web-app\server > ./node_modules/nodemon/bin/nodemon.js src/app.js '.' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! server@1.0.0 start: `./node_modules/nodemon/bin/nodemon.js src/app.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the server@1.0.0 start script. npm ERR! This is probably not a problem

Error: Failed to connect before the deadline URL:grpc://localhost:7051

南笙酒味 提交于 2020-05-16 01:19:08
问题 :~/Documents/test/education/LFS171x/fabric-material/tuna-app/$ node query.js Store path:/home/*******/Documents/test/education/LFS171x/fabric-material/tuna-app/hfc-key-store Successfully loaded user1 from persistence 2020-02-11T05:56:10.423Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpc://localhost:7051 Query has completed, checking results error from query = Error: Failed to connect before the deadline URL:grpc://localhost:7051 at checkState (/home/******

Error: Failed to connect before the deadline URL:grpc://localhost:7051

↘锁芯ラ 提交于 2020-05-16 01:16:08
问题 :~/Documents/test/education/LFS171x/fabric-material/tuna-app/$ node query.js Store path:/home/*******/Documents/test/education/LFS171x/fabric-material/tuna-app/hfc-key-store Successfully loaded user1 from persistence 2020-02-11T05:56:10.423Z - error: [Remote.js]: Error: Failed to connect before the deadline URL:grpc://localhost:7051 Query has completed, checking results error from query = Error: Failed to connect before the deadline URL:grpc://localhost:7051 at checkState (/home/******