leaderelect

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMsgAccountIsNull     = errors.New("不合法的账户:空账户")
	ErrValidatorsIsNil      = errors.New("验证者列表为空")
	ErrValidatorNotFound    = errors.New("验证者未找到")
	ErrMsgExistInCache      = errors.New("缓存中已存在消息")
	ErrNoMsgInCache         = errors.New("缓存中没有目标消息")
	ErrParamsIsNil          = errors.New("参数为nil")
	ErrSelfReqIsNil         = errors.New("缓存中没有self请求")
	ErrPOSResultIsNil       = errors.New("POS结果为nil/header为nil")
	ErrLeaderResultIsNil    = errors.New("leader共识结果为nil")
	ErrCDCOrSignHelperisNil = errors.New("cdc or signHelper is nil")
)

Functions

This section is empty.

Types

type ControllerManager

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

func NewControllerManager

func NewControllerManager(matrix Matrix, logInfo string) *ControllerManager

func (*ControllerManager) ReceiveMsg

func (cm *ControllerManager) ReceiveMsg(number uint64, msg interface{}) error

func (*ControllerManager) ReceiveMsgByCur

func (cm *ControllerManager) ReceiveMsgByCur(msg interface{})

func (*ControllerManager) StartController

func (cm *ControllerManager) StartController(number uint64, superBlkSeq uint64, msg *startControllerMsg)

type LeaderIdentity

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

func NewLeaderIdentityService

func NewLeaderIdentityService(matrix Matrix, extraInfo string) (*LeaderIdentity, error)

type Matrix

type Matrix interface {
	BlockChain() *core.BlockChain
	SignHelper() *signhelper.SignHelper
	DPOSEngine() consensus.DPOSEngine
	Engine() consensus.Engine
	HD() *msgsend.HD
	FetcherNotify(hash common.Hash, number uint64, addr common.Address)
}

type StateReader

type StateReader interface {
	vm.StateDBManager
}

Jump to

Keyboard shortcuts

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