cscc

package
v0.0.0-...-fbe82ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

包cscc chaincode configer提供用于管理的功能 正在重新配置网络时的配置事务。这个 配置事务从订购服务到达提交者 谁叫这个链码。链码还提供了对等配置 连接链或获取配置数据等服务。

Index

Constants

View Source
const (
	JoinChain                string = "JoinChain"
	GetConfigBlock           string = "GetConfigBlock"
	GetChannels              string = "GetChannels"
	GetConfigTree            string = "GetConfigTree"
	SimulateConfigTreeUpdate string = "SimulateConfigTreeUpdate"
)

这些是来自invoke first参数的函数名

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerConfiger

type PeerConfiger struct {
	// contains filtered or unexported fields
}

PeerConfiger实现对等机的配置处理程序。对于每一个 来自订购服务的配置事务 提交者调用此系统链码来处理事务。

func New

新建创建CSCC的新实例。 通常,每个对等实例只创建一个。

func (*PeerConfiger) Chaincode

func (e *PeerConfiger) Chaincode() shim.Chaincode

func (*PeerConfiger) Enabled

func (e *PeerConfiger) Enabled() bool

func (*PeerConfiger) Init

从scc的角度来看,init基本上是无用的。

func (*PeerConfiger) InitArgs

func (e *PeerConfiger) InitArgs() [][]byte

func (*PeerConfiger) InvokableCC2CC

func (e *PeerConfiger) InvokableCC2CC() bool

func (*PeerConfiger) InvokableExternal

func (e *PeerConfiger) InvokableExternal() bool

func (*PeerConfiger) Invoke

调用以下对象: 处理加入链(由应用程序作为交易建议调用) 获取当前配置块(由应用程序调用) 更新配置块(由提交者调用) Peer用2个参数调用此函数: args[0]是函数名,必须是joinchain、getconfigblock或 更新配置块 args[1]是配置块,如果args[0]是joinchain或 updateConfigBlock;否则它是链ID TODO:改进SCC接口以避免封送/取消封送参数

func (*PeerConfiger) InvokeNoShim

func (e *PeerConfiger) InvokeNoShim(args [][]byte, sp *pb.SignedProposal) pb.Response

func (*PeerConfiger) Name

func (e *PeerConfiger) Name() string

func (*PeerConfiger) Path

func (e *PeerConfiger) Path() string

Directories

Path Synopsis
伪造者生成的代码。
伪造者生成的代码。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL