hyperledger 2.2 fabcar交易问题
Failed to submit transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: calling orderer '127.0.0.1:7050' failed: Orderer Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection on target [127.0.0.1:7050]: connection is in TRANSIENT_FAILURE
如何解决这个问题?
解决方法是将通道添加到connection-org1.yaml中:
channels:
mychannel:
orderers:
- orderer.example.com
peers:
peer0.org1.example.com:
endorsingPeer: true
chaincodeQuery: true
ledgerQuery: true
eventSource: true