partitioncc

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorForbiddenAccess = "Forbidden access"
View Source
const MainChainKey = "MainChain"
View Source
const PartitionChainPrefix = "PC"

Variables

This section is empty.

Functions

This section is empty.

Types

type PartitionMgr

type PartitionMgr struct {
}

func (*PartitionMgr) GetMainChain added in v1.0.3

func (p *PartitionMgr) GetMainChain(stub shim.ChaincodeStubInterface) (*dm.MainChain, error)

func (*PartitionMgr) Init

func (*PartitionMgr) Invoke

func (*PartitionMgr) ListPartition added in v1.0.3

func (p *PartitionMgr) ListPartition(stub shim.ChaincodeStubInterface) ([]*dm.PartitionChain, error)

func (*PartitionMgr) RegisterPartition added in v1.0.3

func (p *PartitionMgr) RegisterPartition(stub shim.ChaincodeStubInterface, genesisHeaderRlp, forkUnitHash,
	forkUnitHeight, gasToken, status, syncModel, networkId, version, stableThreshold, crossChainToken string,
	peers []string) pb.Response

func (*PartitionMgr) SetMainChain added in v1.0.3

func (p *PartitionMgr) SetMainChain(stub shim.ChaincodeStubInterface, genesisHeaderHex, gasToken, status, syncModel,
	networkId, version, stableThreshold, crossChainToken string, peers []string) pb.Response

func (*PartitionMgr) UpdatePartition added in v1.0.3

func (p *PartitionMgr) UpdatePartition(stub shim.ChaincodeStubInterface, genesisHeaderRlp, forkUnitHash,
	forkUnitHeight, gasToken, status, syncModel, networkId, version, stableThreshold, crossChainToken string,
	peers []string) pb.Response

Jump to

Keyboard shortcuts

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