hyperledger-chaincode

Hyperledger Fabric - Error while Instantiating chaincode (error trying to connect to local peer: context deadline exceeded)

被刻印的时光 ゝ 提交于 2019-12-10 00:32:42
问题 I am using Hyperledger Fabric v 1.3.0 and trying to deploy using swarm network on multiple hosts. I am facing an issue when trying to instantiate the chaincode. The error i get is below in the image Chaincode Instantiate Error : I keep getting "Error trying to connect to local peer: context deadline exceeded" From some discussions, i added these 2 environment variables in the peer yaml CORE_PEER_ADDRESSAUTODETECT=true CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 But still i get the same

Hyperledger Fabric - Error while Instantiating chaincode (error trying to connect to local peer: context deadline exceeded)

北战南征 提交于 2019-12-04 21:12:27
I am using Hyperledger Fabric v 1.3.0 and trying to deploy using swarm network on multiple hosts. I am facing an issue when trying to instantiate the chaincode. The error i get is below in the image Chaincode Instantiate Error : I keep getting "Error trying to connect to local peer: context deadline exceeded" From some discussions, i added these 2 environment variables in the peer yaml CORE_PEER_ADDRESSAUTODETECT=true CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 But still i get the same error. Any pointers regarding the same? I've seen this issue before when the peer is trying to stand up a

Hyperledger Fabric- HistoryQueryIterator using nodejs

谁说胖子不能爱 提交于 2019-12-02 12:33:04
问题 I am trying to create hyperledger chaincode using nodejs and fabric-shim is new to me. I am trying to fetch history of an asset using getHistoryForKey() . I tried iterating through HistoryQueryIterator using while but i was not successful. @Transaction() public async getAllHistory(ctx:Context,key:string):Promise<void>{ const history = await ctx.stub.getHistoryForKey(key); while(history.next()){ history.next().then(value =>{ console.info("================>",value.toString()); }) .catch(err =>{