# Functions
CacheConfiguration computes and caches commonly-used constants and computed constants as package variables.
CreateChainFromBlock creates a new chain from config block.
CreatePeerServer creates an instance of comm.GRPCServer This server is used for peer communications.
GetChannelsInfo returns an array with information about all channels for this peer.
GetCurrConfigBlock returns the cached config block of the specified chain.
GetLedger returns the ledger of the chain with chain ID.
GetLocalAddress returns the peer.address property.
GetLocalIP returns the non loopback local IP of the host.
GetMSPIDs returns the ID of each application MSP defined on this chain.
GetPeerEndpoint returns peerEndpoint from cached configuration.
GetPeerServer returns the peer server instance.
GetPolicyManager returns the policy manager of the chain with chain ID.
GetSecureConfig returns the secure server configuration for the peer.
Take care to initialize chain after peer joined, for example deploys system CCs.
Initialize sets up any chains that the peer has from the persistence.
MockCreateChain used for creating a ledger for a chain for tests without havin to join.
MockInitialize resets chains for test env.
NewChannelPolicyManagerGetter returns a new instance of ChannelPolicyManagerGetter.
NewPeerClientConnection Returns a new grpc.ClientConn to the configured local PEER.
NewPeerClientConnectionWithAddress Returns a new grpc.ClientConn to the configured local PEER.
SecurityEnabled returns the securityEnabled property from cached configuration.
SetCurrConfigBlock sets the current config block of the specified chain.
SyncBlocksChannelSize returns the peer.sync.blocks.channelSize property.
SyncStateDeltasChannelSize returns the peer.sync.state.deltas.channelSize property.
SyncStateSnapshotChannelSize returns the peer.sync.state.snapshot.channelSize property.
ValidatorEnabled returns the peer.validator.enabled property.
# Structs
DuplicateHandlerError returned if attempt to register same chaincodeID while a stream already exists.