Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParaChainStatusStart = 0 ParaChainStatusStop = 1 )
View Source
const (
ConfigName = "engine.yaml"
)
View Source
const (
ParaChainKernelContract = "$parachain"
)
Variables ¶
View Source
var ( ErrGroupNotFound = errors.New("group not found") ErrUnAuthorized = errors.New("unAuthorized") ErrChainNotFound = errors.New("chain not found") ErrBcNameEmpty = errors.New("block chain name is empty") ErrBcDataEmpty = errors.New("first block data is empty") ErrAdminEmpty = errors.New("no administrator") )
Functions ¶
Types ¶
type Ctx ¶
type Group ¶
type Group struct { GroupID string `json:"name,omitempty"` // group name which is the same as its parachain name Admin []string `json:"admin,omitempty"` // admin addresses Identities []string `json:"identities,omitempty"` // accessible addresses Status int `json:"status,omitempty"` // parachain status }
Group 平行链群组
func GetParaChainGroup ¶
func GetParaChainGroup(reader kledger.XMSnapshotReader, bcName string) (Group, error)
func (*Group) IsParaChainEnable ¶
IsParaChainEnable returns true when status is `start`
type Manager ¶
type Manager struct {
Ctx *Ctx
}
Manager
func NewParaChainManager ¶
NewParaChainManager create instance of ParaChain
Click to show internal directories.
Click to hide internal directories.