Fetch the repository succeeded.
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package fab
// The Peer class represents a peer in the target blockchain network to which
// HFC sends endorsement proposals or query requests.
type Peer interface {
ProposalProcessor
// MSPID gets the Peer mspID.
MSPID() string
//URL gets the peer address
URL() string
// Properties returns properties of the peer.
Properties() Properties
// TODO: Name, EnrollmentCertificate (if needed)
}
// PeerState provides state information about the Peer
type PeerState interface {
BlockHeight() uint64
}
// Properties defines the properties of a peer
type Properties map[Property]interface{}
// Property is the key into the Properties map
type Property = string
// Following is a well-known list of properties of a peer, although this list may be extended.
const (
// PropertyChaincodes defines the chaincodes that are deployed on the peer. Value type:[]*github.com/hyperledger/fabric-protos-go/gossip.Chaincode
PropertyChaincodes Property = "Chaincodes"
// PropertyLedgerHeight defines the ledger height property. Value type: uint64
PropertyLedgerHeight Property = "LedgerHeight"
// PropertyLeftChannel defines the "left-channel" property which indicates whether the peer left the channel. Value type: bool
PropertyLeftChannel Property = "LeftChannel"
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。