Fabric_sdk_go:(已解决)event service creation failed: could not get chConfig cache reference: QueryBlockConfig failed: QueryBlockConfig failed: target(s) required
错误日志:
配置文件config_test:channel名称为mychannel,demo里是orgchannel。
[解决方法]config_test里注释orgchannel:
# Mychannel overrides initialBackoff for discovery
mychannel:
policies:
discovery:
retryOpts:
#[Required for override] number of retry attempts
attempts: 4
initialBackoff: 1s
# multi-org test channel
# orgchannel: //去掉
# orderers:
# - orderer.example.com
peers:
peer0.org1.example.com:
endorsingPeer: true
chaincodeQuery: true
ledgerQuery: true
eventSource: true
peer0.org2.example.com:
endorsingPeer: true
chaincodeQuery: true
ledgerQuery: true
eventSource: true
问题解决: