hyperledger-chaincode

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/******

Error in running byfn: failed to endorse chaincode install, rpc error code unavailable

妖精的绣舞 提交于 2020-04-16 20:57:30
问题 I am on CentOS 7, installed all prerequisites, cloned the fabric-samples git repository. I am referring to the tutorial "Building Your First Network", found here. At this point I have successfully run the command ./byfn.sh generate Now I want to execute the Java chaincode, so I run ./byfn.sh up -l java Right after the START sign, I see the following output: Build your first network (BYFN) end-to-end test + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts

Error in running byfn: failed to endorse chaincode install, rpc error code unavailable

僤鯓⒐⒋嵵緔 提交于 2020-04-16 20:54:31
问题 I am on CentOS 7, installed all prerequisites, cloned the fabric-samples git repository. I am referring to the tutorial "Building Your First Network", found here. At this point I have successfully run the command ./byfn.sh generate Now I want to execute the Java chaincode, so I run ./byfn.sh up -l java Right after the START sign, I see the following output: Build your first network (BYFN) end-to-end test + peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts

Error in running byfn: chaincode installation failed due to gradle issue?

心已入冬 提交于 2020-03-05 06:05:37
问题 This is a continuation of my question found here. It seems like the nature of the error has changed hence I am asking a new question. A kind soul pointed out that the Java version mismatch in my previous run, so I ran docker container ls -a : CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4bb779ce6b71 hyperledger/fabric-javaenv:2.0 "/bin/sh -c ./build.…" 2 minutes ago Up 2 minutes fervent_pare d23e83c3cde5 hyperledger/fabric-javaenv:2.0 "/bin/sh -c ./build.…" 2 days ago Exited (0) 2

could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1

☆樱花仙子☆ 提交于 2020-01-26 04:37:13
问题 I have created chain code package Then I have installed ccpack.out peer chaincode install ccpack.out when I instantiate that time I got Error:could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 CLI query: peer chaincode instantiate -o orderer.example.com:7050 -C logistic -n tradecc -l node -v 0 -c '{"Args":[]}' -P 'AND('Org1MSP.member','Org2MSP.member')' can any one please tell me packaged

Hyperledger Fabric Chaincode Development Language - NodeJS, Java, or Go?

家住魔仙堡 提交于 2020-01-14 10:48:29
问题 With consideration of existing functionality, developer productivity (assuming minimal experience in each language), support within the Fabric community, and roadmap for enhancements, is there any chaincode development language that should be preferred as the short-term and, perhaps separately, as the long-term choice? Prior question Node.js or Go for Hyperledger Fabric's chaincode development? did not address Java as an option, and does not account for recent Fabric 1.4 platform release. 回答1

How to get the parameters passed to the transaction for the historical states

旧街凉风 提交于 2020-01-05 04:18:35
问题 I am trying to get the operation which is responsible for the new state. In simple words, I want to get the function name passed to the invoke method. When I am looking into the historical states I am able to fetch its value, timestamp, transaction ID, etc. but not the parameters which are responsible for that transaction. I know we can get the parameters from the block history, but I need it for the states. Is there any way to achieve this from the chaincode side? 回答1: Yes, from the

Hyperledger private data dynamic access

自闭症网瘾萝莉.ら 提交于 2020-01-04 02:41:27
问题 Is it possible to dynamically set access to private data in Hyperledger fabric 1.4? Unlike the collections file where we have to add the organizations that can have access to a particular "collection", is it possible to add access through chaincode? 回答1: Had to do some research on this myself, but since Fabric v1.4 it is possible to dynamically add peers to private data collections. Private data reconciliation ensures that all private data state in that collection, which was created prior to