Hyperledger fabric Hyperledger结构未能提交交易:错误:背书失败。1个OrderRog和1个对等服务器
我有一个组织和一个同行,我创建了渠道交易,甚至我可以从fabric节点客户端查询fabcar链码。但是,当我使用farbic sdk节点提交转换时,它会给我带来错误 提交交易失败:错误:背书失败 我使用下面的代码提交翻译Hyperledger fabric Hyperledger结构未能提交交易:错误:背书失败。1个OrderRog和1个对等服务器,hyperledger-fabric,Hyperledger Fabric,我有一个组织和一个同行,我创建了渠道交易,甚至我可以从fabric节点客户端查询fabcar链码。但是,当我使用farbic sdk节点提交转换时,它会给我带来错误 提交交易失败:错误:背书失败 我使用下面的代码提交翻译 Wallet path: F:\go_work\src\github.com\hyperledger\client\wallet 2020-11-25T09:17:18.802Z - warn: [DiscoveryEndorsementHandler]: _build_end
Wallet path: F:\go_work\src\github.com\hyperledger\client\wallet
2020-11-25T09:17:18.802Z - warn: [DiscoveryEndorsementHandler]: _build_endorse_g
roup_member >> G0:0 - endorsement failed - Error: 14 UNAVAILABLE: failed to conn
ect to all addresses
2020-11-25T09:17:18.807Z - error: [DiscoveryEndorsementHandler]: _endorse - endo
rsement failed::Error: Endorsement has failed
at DiscoveryEndorsementHandler._endorse (F:\go_work\src\github.com\hyperledg
er\client\node_modules\fabric-client\lib\impl\DiscoveryEndorsementHandler.js:185
:19)
at <anonymous>
Failed to evaluate transaction: Error: Endorsement has failed
钱包路径:F:\go\u work\src\github.com\hyperledger\client\Wallet
2020-11-25T09:17:18.802Z-警告:[DiscoveryEndorsementHandler]:(构建)批准(g)
组成员>>G0:0-背书失败-错误:14不可用:连接失败
所有地址的ect
2020-11-25T09:17:18.807Z-错误:[发现域处理程序]:_背书-endo
背书失败::错误:背书失败
在DiscoveryEndorsementHandler.\u背书(F:\go\u work\src\github.com\hyperledg
er\client\node\u modules\fabric client\lib\impl\DiscoveryEndorsementHandler.js:185
:19)
在
无法评估交易记录:错误:背书失败
配置发送
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
---
################################################################################
#
# Section: Organizations
#
# - This section defines the different organizational identities which will
# be referenced later in the configuration.
#
################################################################################
Organizations:
# SampleOrg defines an MSP using the sampleconfig. It should never be used
# in production but may be used as a template for other definitions
- &OrdererOrg
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: OrdererOrg
# ID to load the MSP definition as
ID: OrdererMSP
# MSPDir is the filesystem path which contains the MSP configuration
MSPDir: crypto-config/ordererOrganizations/example.com/msp
Policies:
Readers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Writers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Admins:
Type: Signature
Rule: "OR('OrdererMSP.admin')"
- &Org1
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org1MSP
# ID to load the MSP definition as
ID: Org1MSP
MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
Policies:
Readers:
Type: Signature
Rule: "OR('Org1MSP.member')"
Writers:
Type: Signature
Rule: "OR('Org1MSP.member')"
Admins:
Type: Signature
Rule: "OR('Org1MSP.member')"
AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: peer0.org1.example.com
Port: 7051
################################################################################
#
# SECTION: Application
#
# - This section defines the values to encode into a config transaction or
# genesis block for application related parameters
#
################################################################################
Application: &ApplicationDefaults
# Organizations is the list of orgs which are defined as participants on
# the application side of the network
Organizations:
################################################################################
#
# SECTION: Orderer
#
# - This section defines the values to encode into a config transaction or
# genesis block for orderer related parameters
#
################################################################################
Orderer: &OrdererDefaults
# Orderer Type: The orderer implementation to start
# Available types are "solo" and "kafka"
OrdererType: solo
Addresses:
- orderer.example.com:7050
# Batch Timeout: The amount of time to wait before creating a batch
BatchTimeout: 2s
# Batch Size: Controls the number of messages batched into a block
BatchSize:
# Max Message Count: The maximum number of messages to permit in a batch
MaxMessageCount: 10
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
# the serialized messages in a batch.
AbsoluteMaxBytes: 99 MB
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
# the serialized messages in a batch. A message larger than the preferred
# max bytes will result in a batch larger than preferred max bytes.
PreferredMaxBytes: 512 KB
Kafka:
# Brokers: A list of Kafka brokers to which the orderer connects
# NOTE: Use IP:port notation
Brokers:
- 127.0.0.1:9092
# Organizations is the list of orgs which are defined as participants on
# the orderer side of the network
Organizations:
################################################################################
#
# Profile
#
# - Different configuration profiles may be encoded here to be specified
# as parameters to the configtxgen tool
#
################################################################################
Profiles:
OneOrgOrdererGenesis:
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Consortiums:
LzConsortium:
Organizations:
- *Org1
OneOrgChannel:
Consortium: LzConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *Org1
#版权归IBM公司所有。保留所有权利。
#
#SPDX许可证标识符:Apache-2.0
#
---
################################################################################
#
#第节:组织
#
#-本节定义了不同的组织标识,这些标识将
#稍后将在配置中引用。
#
################################################################################
组织:
#SampleOrg使用sampleconfig定义MSP。永远不要使用它
#但可作为其他定义的模板
-&orderorg
#DefaultOrg定义sampleconfig中使用的组织
#fabric.git开发环境的
姓名:OrderOrg
#将MSP定义加载为的ID
ID:ordermsp
#MSPDir是包含MSP配置的文件系统路径
MSPDir:crypto-config/orderOrganizations/example.com/msp
政策:
读者:
类型:签名
规则:“或('ordermsp.member')”
作者:
类型:签名
规则:“或('ordermsp.member')”
管理员:
类型:签名
规则:“或('ordermsp.admin')”
-&Org1
#DefaultOrg定义sampleconfig中使用的组织
#fabric.git开发环境的
名称:Org1MSP
#将MSP定义加载为的ID
ID:Org1MSP
MSPDir:crypto-config/peerOrganizations/org1.example.com/msp
政策:
读者:
类型:签名
规则:“或('Org1MSP.member')”
作者:
类型:签名
规则:“或('Org1MSP.member')”
管理员:
类型:签名
规则:“或('Org1MSP.member')”
主持人:
#主持人定义可以使用的对等点的位置
#用于跨组织的闲聊交流。注意,此值仅为
#编码在应用程序部分上下文中的genesis块中
-主持人:peer0.org1.example.com
港口:7051
################################################################################
#
#第节:申请
#
#-本节定义要编码到配置事务或
#应用程序相关参数的genesis块
#
################################################################################
应用程序:&ApplicationDefaults
#Organizations是在上定义为参与者的组织列表
#网络的应用端
组织:
################################################################################
#
#章节:订购方
#
#-本节定义要编码到配置事务或
#订购方相关参数的genesis块
#
################################################################################
订购者:&订购者默认值
#订购者类型:要启动的订购者实现
#可用的类型有“独奏”和“卡夫卡”
订单类型:solo
地址:
-order.example.com:7050
#批处理超时:创建批处理之前等待的时间量
批处理超时:2秒
#批处理大小:控制批处理到块中的消息数
批量大小:
#最大邮件数:批处理中允许的最大邮件数
MaxMessageCount:10
#绝对最大字节数:允许的绝对最大字节数
#批处理中的序列化消息。
绝对最大字节数:99 MB
#首选最大字节数:允许的首选最大字节数
#批处理中的序列化消息。比首选项大的消息
#最大字节数将导致批处理大于首选最大字节数。
PreferredMaxBytes:512 KB
卡夫卡:
#代理:订购方连接到的卡夫卡代理列表
#注意:使用IP:port表示法
经纪人:
- 127.0.0.1:9092
#Organizations是在上定义为参与者的组织列表
#网络的订购方端
组织:
################################################################################
#
#侧面图
#
#-此处可对不同的配置配置文件进行编码,以供指定
#作为configtxgen工具的参数
#
################################################################################
简介:
单器官发生:
订购方: