hyperledger

What Admin peer can do in hyperledger composer?

我的未来我决定 提交于 2019-12-11 16:16:02
问题 I am following the tutorials of hyperledger composer at composer playground. In defining a business network, at some point after starting fabric, a PeerAdminCard is created by ./createPeerAdminCard.sh After that it can be seen in the card name and when imported for a specific business network, it can be seen to what Business Network it has been assigned. Based on my undestanding this peer is the admin of the network, and when you run composer-playground, this is what you see in ID Registry on

Error while sending query request from client : No peer available to query

风流意气都作罢 提交于 2019-12-11 16:07:36
问题 I am getting the following error while sending query request from my client. FabricError: No peers available to query. Errors: ["Failed to connect before the deadline URL:grpcs://localhost:12051","Failed to connect before the deadline URL:grpcs://localhost:11051"]. Following is my the part of my connection-org3.json connection profile file "organizations": { "Org3": { "mspid": "Org3MSP", "peers": [ "peer0.org3.bc4scm.de", "peer1.org3.bc4scm.de" ], "certificateAuthorities": [ "ca.org3.bc4scm

composer identity issue Authorization failure error hyperldeger composer v0.15.0

醉酒当歌 提交于 2019-12-11 15:56:46
问题 I had the same issue which discussed here, and based on comments I fixed the problem by removing .composer-credentials directory and deploying my network again. Now I am using the new version of composer(v0.15.0). I already removed two directories ( .composer-credentials and .composer-connection-profiles ), but again when I run composer identity issue -c admin@test-network -f membercard -u member -a "resource:org..." I get the same error --> fabric-ca request register failed with errors [[{

Need clarification in documentation of Hyperledger Sawtooth Architecture Guide : Validator Peer to Peer (P2P) Network

安稳与你 提交于 2019-12-11 15:56:07
问题 I would like to understand the below statementS from this documentation. Part 1: The network component continues to perform a peer search if its number of peers is less than the minimum connectivity. The network component rejects peering attempts if its number of peers is equal to or greater than the maximum connectivity. Part 2: Even if maximum peer connections is reached, a network service should still accept and respond to a reasonable number of connections (for the purposes of other node

Addition of an organization to existing network without using CLI container

余生颓废 提交于 2019-12-11 15:46:04
问题 Hi I have been following the tutorials in youtube it uses CLI container to add an org. Since using CLI container is not recommended to have in production environment how to add an org into the existing network withput using cli container 回答1: the following tutorial from the IBM developer works, should help you further for the moment: IBM Developer works description of configtxlator tool At short: extract current config from genesis block Convert to human readable format Modify and do your

Composer rest server entity too large

♀尐吖头ヾ 提交于 2019-12-11 15:45:11
问题 I'm storing images in fabric blockchain as base64 strings. Here, whenever I try to interact(update or add assets including base64 strings) with the blockchain through the composer rest server, it throws below error, Error: request entity too large How to increase the request size limit or what are other possible approaches to handle this issue? 回答1: I was able to edit the maximum request size of the REST server by editing the server.js located in path_to_rest_server/server/ . I edited below

Hyperledger Fabric System Chaincode Plugin - missing sample

笑着哭i 提交于 2019-12-11 14:27:42
问题 according to the system chaincode documentation located at: https://hyperledger-fabric.readthedocs.io/en/latest/systemchaincode.html there should be a sample at the repository: "Every system chaincode must implement the Chaincode Interface and export a constructor method that matches the signature func New() shim.Chaincode in the main package. An example can be found in the repository at examples/plugin/scc." yet the folder examples/plugin/scc is not present anywhere on github fabric

Hyperledger Composer ping on REST multi-user mode: ECONNREFUSED for issued identities from single user REST

家住魔仙堡 提交于 2019-12-11 14:26:21
问题 Following: https://hyperledger.github.io/composer/v0.19/tutorials/google_oauth2_rest I have the same problem of: Hyperledger Composer multi-user mode: ECONNREFUSED for issued identities Basically, i have two rest server and when i issue a id from port 3001 (admin card single user) then import and try to ping on port 3000 (multi-user), the same error appears. Seems like the card are being imported with the wrong hostname. But i can't do the same that the user says: " I changed the URLs over

Function in logic.js works in playground but not in REST server

百般思念 提交于 2019-12-11 14:11:34
问题 I have a function in my logic.js file that retrieves the latitude and longitude of a plane from an api: function getLocation(){ var url = 'https://opensky-network.org/api/states/all?time=1458564121&icao24=3c6444' return fetch(url) // Call the fetch function passing the url of the API as a parameter .then(function(resp){ data = resp.json() // Transform the data into json return data }).then(function(data) { lat = data.states[0][5] long = data.states[0][6] lat = lat.toString() long = long

Hyperledger Fabric can't find go files when building chaincode

最后都变了- 提交于 2019-12-11 11:24:56
问题 Problem I'm getting the following error on a fabric-peer: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package chaincodes/simple: no buildable Go source files in /chaincode/input/src/chaincodes/simple . Context I'm trying to instantiate a chaincode package after having successfully installed it. Both the install and instantiate proposals are created by the Fabric NodeJS SDK (fabric-client). Steps leading up to the problem Package a go